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

Suffix not capitalized when all upper case #4

Closed
derek73 opened this issue Apr 2, 2014 · 1 comment
Closed

Suffix not capitalized when all upper case #4

derek73 opened this issue Apr 2, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@derek73
Copy link
Owner

derek73 commented Apr 2, 2014

https://code.google.com/p/python-nameparser/issues/detail?id=22

What steps will reproduce the problem?

  1. from nameparser import HumanName
  2. k = HumanName("WOOT ALFRED DOUGHERTY III")
  3. k.capitalize()

What is the expected output? What do you see instead?
Expected :

<HumanName : [
        Title: '' 
        First: 'Woot' 
        Middle: 'Alfred' 
        Last: 'Dougherty' 
        Suffix: 'III'
]>

Output that I see instead :

<HumanName : [
        Title: '' 
        First: 'Woot' 
        Middle: 'Alfred' 
        Last: 'Dougherty' 
        Suffix: 'Iii'
]>

This seemed to work.

>>> k = HumanName(("WOOT ALFRED DOUGHERTY III").lower())
>>> k.capitalize()
>>> k
<HumanName : [
        Title: '' 
        First: 'Woot' 
        Middle: 'Alfred' 
        Last: 'Dougherty' 
        Suffix: 'III'
]>
@derek73 derek73 added the bug label Apr 2, 2014
@derek73 derek73 self-assigned this Apr 2, 2014
@derek73
Copy link
Owner Author

derek73 commented Aug 6, 2015

This is fixed in v0.3.5

@derek73 derek73 closed this as completed Aug 6, 2015
@derek73 derek73 added this to the v0.3.5 milestone Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant