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

Issue in names that contain comma(,) and has more than 3 words. #143

Open
da-sbarde opened this issue Dec 15, 2022 · 1 comment
Open

Issue in names that contain comma(,) and has more than 3 words. #143

da-sbarde opened this issue Dec 15, 2022 · 1 comment

Comments

@da-sbarde
Copy link

Hi Derek,
I have a usecase where I need to parse names containing comma(,), but the library seems to work differently in this case.
from nameparser import HumanName as hm
#1) here first name should be-E ANNE and lastname should be-LEONARDO
hm("E Anne D,Leonardo")
<HumanName : [
title: ''
first: 'Leonardo'
middle: ''
last: 'E Anne D'
suffix: ''
nickname: ''
]>

#2) here first name should be-Marry Ann and lastname should be-Luther
hm("Mary Ann H,Luther")
<HumanName : [
title: ''
first: 'Luther'
middle: ''
last: 'Mary Ann H'
suffix: ''
nickname: ''
]>

Even if I removed the comma from the name, it has different output.

hm("Mary Ann H Luther")
<HumanName : [
title: ''
first: 'Mary'
middle: 'Ann H'
last: 'Luther'
suffix: ''
nickname: ''
]>

@derek73
Copy link
Owner

derek73 commented Dec 15, 2022

Firstname secondfirstname M,Lastname is not a supported name format. First name is always one single name.

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

2 participants