Skip to content

v2.6.0

Latest

Choose a tag to compare

@derek73 derek73 released this 25 Oct 08:21
· 18 commits to master since this release
53a65db

nameparser 2.6 ships the default vocabulary as per-word data files, adds an opt-in reading for names with two family names, and fixes words read as a credential or a title that are part of the name. Highlights:

  • An opt-in reading for names with two family names. Policy(two_family_names=True) reads Gabriel García Márquez with family García Márquez. (#754)
  • Surnames that are also credentials read as surnames. Luo Si and Maria de Sa give family Si and de Sa, where 2.5 read Si and Sa as credentials. (#791, #796, #857)
  • Wm and Md read as the given names they abbreviate. Wm Smith and Mr Md Karim Uddin give first Wm and Md, where 2.5 read both as titles. (#789, #853)
  • More credentials after a comma read as suffixes. John Smith, MBChB gives suffix MBChB, where 2.5 gave first MBChB, last John Smith. (#797, #848)

One default is removed: sa is no longer a post-nominal acronym, so John Smith SA gives last SA. Add it back with Lexicon.default().add(suffix_acronyms={"sa"}). (#857)

A Lexicon, Policy or Parser pickled by an earlier release no longer loads; re-pickle after upgrading. ParsedName and HumanName pickles still load. (#754, #835)

Full list of changes: https://nameparser.readthedocs.io/en/latest/release_log.html