Skip to content

Smith, J.R. #29

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.

Activity

  1. self-assigned this
    on Sep 3, 2015
  2. added this to the v0.3.9 milestone on Sep 5, 2015
  3. derek73 commented on Sep 5, 2015

    @derek73
    Owner

    fixed in v0.3.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions