You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initial refactoring of the constants and configurations system to make it easier to modify (#1). You can now adjust the parser's configuration like so:
>>> from nameparser import HumanName
>>> from nameparser.config import CONSTANTS
>>> CONSTANTS.titles.add('dean', 'Chemistry')
>>> hn = HumanName("Assoc Dean of Chemistry Robert Johns")
>>> hn
<HumanName : [
Title: 'Assoc Dean of Chemistry'
First: 'Robert'
Middle: ''
Last: 'Johns'
Suffix: ''
Nickname: ''
]>
New instructions for customizing the parser are included in the new documentation.