Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/release_log.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Release Log
- **Fix Dutch Oude, which read as a middle name.** ``parse("Piet Oude Luttikhuis")`` gives family ``Oude Luttikhuis``, where 1.4.0 through 3.1.0 gave middle ``Oude``, family ``Luttikhuis``; ``Oude`` opening a name stays the given name, reported, being a rare Dutch given name too. :issue:`1455`
- **Add locales.NL, which reads ten as a family-name particle.** ``parser_for(locales.NL).parse("Jan ten Brink")`` gives family ``ten Brink``, where the default, as 1.4.0 through 3.1.0, gives middle ``ten``; a ``Ten`` opening a name stays the given name, reported, save under ``strict=True``. It also takes a Chinese given-name syllable inside a name into the family (``Kheng Ten Choo`` gives family ``Ten Choo``), and choosing Dutch reads ``VD`` as ``van der`` rather than the credential (``John Smith, VD`` gives family ``John Smith VD``). See :ref:`dutch-particles`. :issue:`1455`
- **Fix MD inside a name written in capitals, which read as the degree and took the name behind it.** ``parse("SITI NORA MD YUSRI")`` gives middle ``NORA MD``, family ``YUSRI``, as 1.4.0 through 2.3.0 did, where 2.4.0 through 3.1.0 gave family ``NORA``, suffix ``MD YUSRI``; a name in lower case reads the same way, and both report ``suffix-or-name``, the degree being the other reading. The degree written before a family name in capitals reads so too (``JOHN SMITH MD JONES`` gives family ``JONES``, reported), where ``John Smith MD Jones`` and ``JOHN SMITH M.D. JONES`` keep it. :issue:`1394`
- **Fix Emeritus, which read as a given name.** ``parse("Professor Emeritus John Smith")`` gives title ``Professor Emeritus``, given ``John``, where 1.4.0 through 3.1.0 gave title ``Professor``, given ``Emeritus``, middle ``John``; ``Emeritus Professor`` and ``Professor Emerita`` read the same way. ``Emerita`` alone stays the given name, reported, being a given name too. A title other than ``Professor`` or ``Prof`` before it still leaves it a name word (``Bishop Emeritus John Smith`` gives given ``Emeritus``). :issue:`1471`
- **Change locales.ES_AR's given-name list, rewritten from its tool.** ``parser_for(locales.ES_AR).parse("Juan Gerhard Lopez")`` gives family ``Gerhard Lopez``, where 3.0.0 through 3.1.0 gave middle ``Gerhard``; six words leave the list (``Gerhard``, ``Emerita``, ``Zuleyma`` among them) and six join it (``Azhar``, ``Houari``), each joining reading as a middle name where it read as the first family name. :issue:`1471`

* 3.1.0 - November 16, 2026

Expand Down
8 changes: 8 additions & 0 deletions nameparser/config/_compiled.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
'effendi',
'ekegbian',
'elerunwon',
'emeritus',
'eminence',
'emperor',
'empress',
Expand Down Expand Up @@ -1479,6 +1480,7 @@
'cheikh',
'deacon',
'dean',
'emerita',
'gen',
'grace',
'gyani',
Expand Down Expand Up @@ -1557,6 +1559,8 @@
'division',
'docket',
'edmi',
'emerita',
'emeritus',
'english',
'excellent',
'exec',
Expand Down Expand Up @@ -2168,6 +2172,10 @@
'princess consort',
'princess royal',
'pro chancellor',
'prof emerita',
'prof emeritus',
'professor emerita',
'professor emeritus',
'queen consort',
'queen mother',
'rt hon',
Expand Down
6 changes: 4 additions & 2 deletions nameparser/config/_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,8 @@
('els', (('en', 'credential', ()), ('en', 'given', ()), ('en', 'family', ()))),
('em', (('en', 'familiar', (('short_for', ('emily',)),)),)),
('emd', (('en', 'credential', ()),)),
('emerita', (('en', 'modifier', ()), ('en', 'given', ()))),
('emeritus', (('en', 'modifier', ()),)),
('eminence', (('en', 'style', ()),)),
('emma', (('en', 'familiar', (('short_for', ('emmanuelle',)),)),)),
('emmanuella', (('mul', 'spelling', (('spelling_of', ('emmanuela',)),)),)),
Expand Down Expand Up @@ -2223,14 +2225,14 @@
('prm', (('en', 'credential', ()),)),
('pro', (('en', 'academic', (('attaches', ('chancellor',)),)),)),
('producer', (('en', 'occupation', ()),)),
('prof', (('mul', 'academic', ()),)),
('prof', (('mul', 'academic', (('attaches', ('emerita', 'emeritus')),)),)),
('prof.ssa', (('it', 'academic', (('cased', 'Prof.ssa'),)),)),
('profa', (('pt', 'academic', (('same_as', 'professora'),)),)),
('profesor', (('es', 'academic', ()), ('pl', 'academic', ()), ('ro', 'academic', ()))),
('profesora', (('es', 'academic', (('same_as', 'profesor'),)),)),
('professeur', (('fr', 'academic', ()),)),
('professeure', (('fr', 'academic', (('same_as', 'professeur'),)),)),
('professor', (('mul', 'academic', ()),)),
('professor', (('mul', 'academic', (('attaches', ('emerita', 'emeritus')),)),)),
('professora', (('pt', 'academic', (('same_as', 'professor'),)),)),
('profr', (('es', 'academic', (('same_as', 'profesor'),)),)),
('proua', (('et', 'salutation', (('after_given', True),)),)),
Expand Down
Loading