Skip to content

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

Closed

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: ''
]>

Activity

  1. ybressler commented on Oct 16, 2020

    @ybressler

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

  2. evrial commented on Nov 17, 2020

    @evrial

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

  3. nickynicolson commented on Nov 19, 2020

    @nickynicolson
    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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