Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nickynicolson opened this issue Aug 14, 2020 · 3 comments
Closed

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

nickynicolson opened this issue Aug 14, 2020 · 3 comments

Comments

@nickynicolson
Copy link

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: ''
]>
@ybressler
Copy link

I've noticed the same issue with Mz. --> I'm going to create a separate issue for it.

@evrial
Copy link

evrial commented Nov 17, 2020

You can add to constants and the titles in the nonbinary universe

@nickynicolson
Copy link
Author

@evrial its perfectly reasonable to request that this is implemented in the package itself, rather than as a local modification, as detailed here https://github.com/derek73/python-nameparser#contributing

@derek73 derek73 closed this as completed in 0c037cb Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants