Skip to content

Smith, J.R. #29

Closed
Closed
@bertramr

Description

@bertramr

Version = 0.3.4

>> nameparser.HumanName('Smith, J.R.')
<HumanName : [
    title: '' 
    first: 'Smith' 
    middle: '' 
    last: '' 
    suffix: 'J.R.'
    nickname: ''
]>

Expected would be something which happens when J.R. is split

>> nameparser.HumanName('Smith, J. R.')
<HumanName : [
    title: '' 
    first: 'J.' 
    middle: 'R.' 
    last: 'Smith' 
    suffix: ''
    nickname: ''
]>

Seems to be related to JR. Other first and second names without space are put to first field:

>> nameparser.HumanName('Smith, A.B.')
<HumanName : [
    title: '' 
    first: 'A.B.' 
    middle: '' 
    last: 'Smith' 
    suffix: ''
    nickname: ''
]>

My first workaround for now is to replace J.R. with J. R., but support of this rare case would be nice.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions