yhydhx / python-nameparser

Automatically exported from code.google.com/p/python-nameparser
Other
0 stars 0 forks source link

Suffix not being properly capitalized. #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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'
]>

What version of the product are you using? On what operating system?

nameparser 0.2.0, latest release. Ubuntu 12.04.

Please provide any additional information below.

Original issue reported on code.google.com by kirankon...@gmail.com on 22 Aug 2012 at 4:40

GoogleCodeExporter commented 9 years ago
This seemed to work. 

>>> k = HumanName(("WOOT ALFRED DOUGHERTY III").lower())
>>> k.capitalize()
>>> k
<HumanName : [
        Title: '' 
        First: 'Woot' 
        Middle: 'Alfred' 
        Last: 'Dougherty' 
        Suffix: 'III'
]>

Original comment by kirankon...@gmail.com on 24 Aug 2012 at 2:28

GoogleCodeExporter commented 9 years ago

Original comment by dere...@gmail.com on 7 Oct 2012 at 10:40