Skip to content

v0.3.0

Compare
Choose a tag to compare
@derek73 derek73 released this 04 Jul 22:17
· 295 commits to master since this release

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.

Install:

pip install nameparser