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

Capitalizing Suffixes #141

Open
DLu opened this issue Nov 1, 2022 · 0 comments
Open

Capitalizing Suffixes #141

DLu opened this issue Nov 1, 2022 · 0 comments
Labels

Comments

@DLu
Copy link

DLu commented Nov 1, 2022

I believe acronym-based suffixes are being incorrectly capitalized.

> python3
Python 3.8.10 (default, Jun 22 2022, 20:18:18) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nameparser
>>> nameparser.__version__
'1.1.1'
>>> n = nameparser.HumanName('GREGORY HOUSE M.D.')
>>> n
<HumanName : [
	title: '' 
	first: 'GREGORY' 
	middle: '' 
	last: 'HOUSE' 
	suffix: 'M.D.'
	nickname: ''
]>
>>> n.capitalize()
>>> n
<HumanName : [
	title: '' 
	first: 'Gregory' 
	middle: '' 
	last: 'House' 
	suffix: 'M.d.'
	nickname: ''
]>
>>> 

I believe the suffix should be 'M.D.'

@derek73 derek73 added the bug label Nov 13, 2022
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

2 participants