python-nameparser icon indicating copy to clipboard operation
python-nameparser copied to clipboard

Problem parsing name with , V

Open pusateri opened this issue 3 years ago • 0 comments

nameparser version 1.1.1

When I use HumanName with the string "John W. Ingram, V", it can't parse correctly but if I remove the comma, it works. Also, if I try using IV (4th) instead of V (5th), then it works with the comma so I think even though V seems to be recognized in the documentation, it isn't fully working.

from nameparser import HumanName
>>> name = HumanName("John W. Ingram, V")
>>> name
<HumanName : [
	title: '' 
	first: 'V' 
	middle: '' 
	last: 'John W. Ingram' 
	suffix: ''
	nickname: ''
]>
>>> name = HumanName("John W. Ingram V")
>>> name
<HumanName : [
	title: '' 
	first: 'John' 
	middle: 'W.' 
	last: 'Ingram' 
	suffix: 'V'
	nickname: ''
]>

pusateri avatar Aug 31 '22 20:08 pusateri