If I have a name in the format last_name, first_name suffix-list, for example: SAHNI, ARU MD PHD, nameparser produces the following:
<HumanName : [
Title: ''
First: 'ARU'
Middle: ''
Last: 'SAHNI'
Suffix: 'MD, PHD'
Nickname: ''
]>
If I then run capitalize on the name, I get:
<HumanName : [
Title: ''
First: 'Aru'
Middle: ''
Last: 'Sahni'
Suffix: 'Md,, Phd'
Nickname: ''
]>
Notice the extra comma after the "Md" title. This seems to be due to the fact that the suffix_list is being concatenated with a comma, but being split on whitespace in the capitalize function. I'll submit a pull-request for this shortly.
If I have a name in the format last_name, first_name suffix-list, for example: SAHNI, ARU MD PHD, nameparser produces the following:
If I then run capitalize on the name, I get:
Notice the extra comma after the "Md" title. This seems to be due to the fact that the suffix_list is being concatenated with a comma, but being split on whitespace in the capitalize function. I'll submit a pull-request for this shortly.