Skip to content

{first} {last}, {suffix} is incorrectly recognized as {first}, {title} #62

Closed
@Darayavaush

Description

@Darayavaush
>>> name = "John Smith, Dr."
>>> nameparser.HumanName(name)
<HumanName : [
        title: 'Dr.'
        first: 'John Smith'
        middle: ''
        last: ''
        suffix: ''
        nickname: ''
]>

But if I insert a comma, it is recognized as per documentation:

>>> name = "John, Smith, Dr."
>>> nameparser.HumanName(name)
<HumanName : [
        title: ''
        first: 'Smith'
        middle: ''
        last: 'John'
        suffix: 'Dr.'
        nickname: ''
]>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions