Thanks to visit codestin.com
Credit goes to github.com

Skip to content

First and middle names as initials after last with space separator #158

@balbirthomas

Description

@balbirthomas

It is not clear how python-nameparser can be made to handle name strings like this - "Gebhart GF" . The expected name parts for this string are { "last": "Gebhart", "first": "GF", "middle": ""} or even better { "last": "Gebhart", "first": "G", "middle": "F"}.

Is this something python-nameparser can handle or plans to handle in a future version ?

Note currently what happens by default is shown below

>>> from nameparser import HumanName
>>> name = HumanName("Gebhart GF")
>>> name.as_dict()
{'title': '', 'first': 'Gebhart', 'middle': '', 'last': 'GF', '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