Skip to content

v2.3.0

Latest

Choose a tag to compare

@derek73 derek73 released this 12 Sep 20:07
· 136 commits to master since this release
1c89e2e

Parsing fixes and new honorific vocabulary; nothing in the API is removed or renamed.

The fixes cluster around post-nominals and titles. A space-separated run of post-nominals keeps the spacing the writer typed (John Smith MD PhD → suffix MD PhD, not MD, PhD), and the acronyms that are also surnames — Rai, Cha, Ba — no longer take a name's family name. A run of titles addresses by its last, and a trailing abbreviated title reads as a title. CJK names and honorifics written with a full stop of any width now parse. The additions are renunciate and royal given-name titles, Devanagari and the first Bengali honorifics, and two AmbiguityKind members that report a reading nothing in the name decided.

Incompatibility: a Lexicon pickled by 2.1.x or 2.2.x with a caller-added entry written with a fullwidth or ideographic full stop, or in NFD, no longer loads (ValueError: incompatible Lexicon pickle: entries are not normalized). The shipped vocabulary is unaffected; rebuild the Lexicon from its source rather than unpickling it.

Full release notes: https://nameparser.readthedocs.io/en/latest/release_log.html