Skip to content

Title "Mx" not recognised, parsed as first name #114

@nickynicolson

Description

@nickynicolson

The "Mx" title (https://en.wikipedia.org/wiki/Mx_(title)) is not recognised, it is instead parsed as a first name. Example below:

In [1]: from nameparser import HumanName

In [2]: HumanName('Ms A.J. Smith')
Out[2]: 
<HumanName : [
        title: 'Ms'
        first: 'A.J.'
        middle: ''
        last: 'Smith'
        suffix: ''
        nickname: ''
]>

In [3]: HumanName('Mx A.J. Smith')
Out[3]: 
<HumanName : [
        title: ''
        first: 'Mx'
        middle: 'A.J.'
        last: 'Smith'
        suffix: ''
        nickname: ''
]>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions