python-nameparser icon indicating copy to clipboard operation
python-nameparser copied to clipboard

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

Open da-sbarde opened this issue 2 years ago • 1 comments

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

da-sbarde avatar Dec 15 '22 08:12 da-sbarde

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

derek73 avatar Dec 15 '22 15:12 derek73