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
10 changes: 5 additions & 5 deletions AGENTS.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ want a reading often changes how it is built. Put that in an issue. A few
real examples are worth more than a fix.

Open issues are not a list of tasks waiting for a volunteer. Every issue is
assigned to the maintainer, and most are already being worked on.
assigned to the maintainer. Add what you found to the issue, and if you have
a fix, push it to a branch on your fork and link it there.

Why the maintainer makes the changes
--------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion docs/design/decisions/P10-given-name-a-particle-completes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- `valle` stays on by default though it breaks more Portuguese names than it fixes (7 fixed to 32 broken, mostly `do Valle` surnames), since it passes pooled (379 to 95, 80%): the pooled reading was chosen over requiring every language's countries to pass, which would also have taken `jesús`, `rosario` and `rocio` from the default: among Spanish-speaking countries' names the four fix 4,236 and break 113, among Portuguese-speaking countries' 47 and 52, so the stricter bar would have given up about 4,100 Spanish names for a net 5 Portuguese ones — 2026-11-06 #1122, decided in chat.
- A word passing in one country's names alone, scored by the bar above over that country's records in the whole ORCID extract, under the country's pack, is marked `default = false` in the country's file, read under that country's choice and not under its language's or another country's: `rosário` (with `rosario`), `carmo`, `conceição` (with `conceicao`) and `luz` in `pt-PT.toml`, under `locales.PT_PT`. Nothing is marked for Brazil — 2026-11-19 #1189.

Open: Catalan `dels` (`Maria dels Àngels Puig`). decisions/O7 kept it out of `ca.toml` because the property moved nothing with the switch off; under this rule a `dels` particle beside `àngels` written `after_particle` reads middle 'dels Àngels', family 'Puig' by default, today's reading, so the reason no longer holds and the words want their own measurement — #1059.
Open: none in this file. Catalan `dels` was declined on 2026-11-20 (#1059, the Log below).

## Log

Expand Down Expand Up @@ -68,3 +68,4 @@ Open: Catalan `dels` (`Maria dels Àngels Puig`). decisions/O7 kept it out of `c

Portugal's parliament (`config_diff.py diff --local opensanctions-parliaments --group pt_parliament`, 2,256 spellings): 13 move, each putting the phrase in the given part, where the issue found Portugal's deputies keep it (the 2026-11-08 count on #1189).
- Recompute: the whole-extract rows, for a country, over the records of `local_orcid.extract_path()` with that `country` and both boxes filled whose `given family` holds the word behind `da`, `de`, `do`, `das`, `des` or `dos`, each kept and scored as `config_diff.score` keeps and scores one (`config_diff.kept`, `score_rows` with `local_agreement.FIELDED` for ORCID), under `plain:PT_PT` (Portugal) or `plain:PT_BR` (Brazil) and the same pack with `.add(w, kind='given', after_particle=True)` on its lexicon for each spelling of the word; the other rows with `config_diff.py score plain:PT_PT <spec> --group PT --group Portuguese --cap 20000 --min 50 --json <file>` (the fixed and broken of every configuration are in the JSON; the printed table names only the best), `<spec>` being `expr:parser_for(Locale(code='x', lexicon=locales.PT_PT.lexicon.add(w, kind='given', after_particle=True), policy=locales.PT_PT.policy, languages=frozenset({'pt-PT'})))` with one `.add` per spelling, the four together for the last column; each on a checkout of `1ca93b25`.
- 2026-11-20 #1059 — CATALAN `dels` STAYS UNLISTED. Decided 2026-11-20. Measured on master 0d8c6fa8: no local corpus writes `dels` as a surname particle, and ORCID's boxes hold it 10 times in 25M records, 8 of them in the given-names box as the given name `dels Àngels`, which already reads right (middle 'dels Àngels'); listing it moved 0 records fixed and 0 broken over ORCID's Spanish and Andorran researchers and PatentsView's Spanish inventors, the figures as #1059's closing comment gives them, which names no command; a reopening re-scores with `config_diff.py score` over those groups. A caller whose Catalan data writes it adds it: `Lexicon.default().add("dels", kind="article")`, with `.add("àngels", kind="given", after_particle=True)` to keep the given name whole. `ca.toml`'s `del` is a preposition, not an article as #1059 said. The Open line this closes stood above.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
## Standing

- A bound given-name word past the first name word joins the word after it where its reading lists that word in `completed_by`, the pair one name unit that position places: `طارق عبد العزيز` gives family 'عبد العزيز' — 2026-11-04 #694.
- For Arabic-script `عبد` the license is a closed list on the bound word's reading, not a shape of the word after it: `عبد` lists 239 spellings of 139 words (217 on 2026-11-04), the 97 one-word names of God, `الله`, 27 other divine epithets and 14 devotional completions, each with its hamza-less and Persian spellings, and `الله` with the Urdu heh too — 2026-11-04 #694; each word ending in `ي` with its `ى` spelling too, and `المولى` with its `ي` spelling, so `سامر عبد القوى` gives family 'عبد القوى' — 2026-11-20 #1337.
- For Arabic-script `عبد` the license is a closed list on the bound word's reading, not a shape of the word after it: `عبد` lists 239 spellings of 139 words on 2026-11-20 (217 on 2026-11-04; `readings_of('عبد')`'s `completed_by`), the 97 one-word names of God, `الله`, 27 other divine epithets and 14 devotional completions, each with its hamza-less and Persian spellings, and `الله` with the Urdu heh too — 2026-11-04 #694; each word ending in `ي` with its `ى` spelling too, and `المولى` with its `ي` spelling, so `سامر عبد القوى` gives family 'عبد القوى' — 2026-11-20 #1337.
- The Latin `abd`, `abdel`, `abdal` and `abou` are written `completes_any`: past the first name word each joins any plain name word after it, one the vocabulary reads no other way, the pair placed by position, the family where it ends the name and one middle name inside it (`Tariq Abdel Aziz` → family 'Abdel Aziz') — 2026-11-19 #1464, reversing 2026-11-04 #694's decline.
- `abdul` is written `long_names_only` beside it, joining only in a name the parse reads as four name words or more: the words it reads as given, middle and family names that hold a letter, the two parts of a family comma counted together, so a title, a suffix, a nickname, a maiden name and a lone mark are no name words and a word the parse reads as a name is one whatever else its vocabulary says (`Tariq Abdul Aziz` → middle 'Abdul'; `Nadia Ali Abdul Rahim` → family 'Abdul Rahim'): the writers of a three-word `X Abdul Y` split it both ways by population — 2026-11-19 #1464; counted by the parse rather than by classify since 2026-11-22 #1531.
- `abu` keeps its particle and teknonymic readings and no `completes_any`; Arabic-script `عبد` keeps its list — 2026-11-19 #1464.
- A pair is read from its second word too: a `bound_second` reading (Arabic-script `الدين` and `الله`, Persian `الدین` and `اله`, Urdu `اللہ`) joins the plain word before it, one carrying no vocabulary and holding a letter, at the first name word too, the pair placed by position, under the default order the given name where it opens the name and the family where it ends it (`نور الدين سامر حداد` → given 'نور الدين'; `سامر عز الدين` → family 'عز الدين'); P5's join of a bound word opening the name wins over a pair read from the word after it (`أبو نور الدين سامر` → given 'أبو نور'); `الغنى` and `الفقار` are written `completes = ["ذو"]`, joining behind `ذو` alone; where the pair holds every name word the name is read as having it is split back into two names, as P5's reserve keeps a bound word's, save after a family comma and behind a given-name title, where P5 joins too; the pair is one unit wherever UNIT-PARTITION counts units (P1's fold, rules/O6's take and its division) — 2026-11-19 #1072.
- A pair P12 joined counts as one family word for rules/O6 (two family names): under `two_family_names` `سعيد حسن عبد الله` gives family 'حسن عبد الله'; P5's pair at the start and a pair a particle chain took count as two — 2026-11-04 #694; a Latin pair the join makes past the first name word counts as one, as the Arabic-script pair does (`Ana abdul Rahman López` under `two_family_names` gives family 'abdul Rahman López'), where one at the start still counts as two — 2026-11-19 #1464.

Open: `locales.MS` (#1179) could turn `abdul`'s three-word join on, its Malaysian writers filing the pair as the family 183 times to 2 in ORCID; as shipped it reads `abdul` as the default does, and a strict choice of it reads no Latin bound word at all, `ar.toml` not being chosen (2026-11-19 #1464).
Open: `locales.MS` (shipped by #1179; no issue filed for this) could turn `abdul`'s three-word join on, its Malaysian writers filing the pair as the family 183 times to 2 in ORCID; as shipped it reads `abdul` as the default does, and a strict choice of it reads no Latin bound word at all, `ar.toml` not being chosen (2026-11-19 #1464).

Open: the Latin spellings of a pair read from its second word stay out (2026-11-19 #1072): `Uddin`, the commonest, is a surname alone in South Asian names (PSC 25 records fixed and 432 broken, ORCID's Bangladesh 15 and 99, the prototype scored against the boxes on 2026-11-19), and without the `u-` forms (`Eddine`, `Eldin`, `Aldeen` and the like, and `Allah` behind a word other than `Abd`) ORCID gains 155 and loses none, but PSC 16 and 11 and PatentsView 6 and 8.

Expand Down
2 changes: 1 addition & 1 deletion docs/design/decisions/R9-patronymic-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Elsewhere: why the view leaves `family` and `middle` as they are, and the fielded-corpora measurements behind it, decisions/vocabulary-model's 2026-10-28 #754 entry, item 3; the rotations the two ending rules are named for, decisions/O1 and decisions/O2; the `clan`/`patronymic` line in the particle kinds, decisions/vocabulary-model's 2026-10-19 #749 entry; a father's name nothing in the text marks, which fills no view, and a view that overlaps the family, decisions/family-without-an-inherited-name.

Open: the Icelandic ending rule, which an `is` pack would turn on (the RFC's work order: 3b, 4c and 4f); whether the East Slavic endings should take the Belarusian spellings (`-авіч`, `-аўна`) and the Latin `-ivna`/`-ovych` of the Ukrainian ones, which would move O1's rotation too ([#1212](https://github.com/derek73/python-nameparser/issues/1212); the Ukrainian Cyrillic endings are read since 2026-11-20, decisions/O1); and a Ukrainian ending typed with a Latin `i` in a Cyrillic word (`Петрiвна`), which is not read. Whether `a/k`, written once among Malaysia's election candidates for `anak`, and `a/l` written spaced (`A / L`), which no list measured writes, should read as `a/l` does (#1468); India's and Pakistan's `S/O`, `D/O` and `W/O`, which name a parent or a husband outside the legal name (#1165).
Open: the Icelandic ending rule, which an `is` pack would turn on (the RFC's work order: 3b, 4c and 4f); whether the East Slavic endings should take the Belarusian spellings (`-авіч`, `-аўна`) and the Latin `-ivna`/`-ovych` of the Ukrainian ones, which would move O1's rotation too ([#1212](https://github.com/derek73/python-nameparser/issues/1212); the Ukrainian Cyrillic endings are read since 2026-11-20, decisions/O1); and a Ukrainian ending typed with a Latin `i` in a Cyrillic word (`Петрiвна`), which is not read. Whether `a/k`, written once among Malaysia's election candidates for `anak`, and `a/l` written spaced (`A / L`), which no list measured writes, should read as `a/l` does (left by #1468, closed 2026-11-19; no issue filed); India's and Pakistan's `S/O`, `D/O` and `W/O`, which name a parent or a husband outside the legal name (#1165).

## Log

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

Elsewhere: an ambiguous member alone in the brackets staying a nickname, reported, is decided under decisions/suffix-acronym-collisions (its Standing line ending 2026-09-25 #540; 2026-10-21) and decisions/ma-do's 2026-07-17 entry; a member after the name whose writing settles it reading as the suffix is decisions/S13 (2026-10-26 #810).

Open: [#1268](https://github.com/derek73/python-nameparser/issues/1268) — whether a comma glued between two words of a clause should part them; this file's 2026-11-11 entry records the two designs declined.
Open: none in this file. Whether a comma glued between two words of a clause should part them was closed as an accepted limit on 2026-11-17 ([#1268](https://github.com/derek73/python-nameparser/issues/1268)), the glued comma left in the word's text (the Standing line above; the 2026-11-11 entry records the two designs declined).

## Log

Expand Down
2 changes: 1 addition & 1 deletion docs/design/decisions/S8-credentials-trailing-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Examples name each field as the default order reads it; under the family-first o

- An unambiguous suffix word of two or more letters, in any script, standing after two name words with no comma or before a suffix comma, or after the given word in the part after a family comma, starts a run to the end of its part: every later word reads as a suffix except a title word, which reads as a title, and an absorbed name word reports `suffix-or-name` (`John Smith PhD Jones` → suffix 'PhD Jones'; `Eric H. Holder Jr. Attorney General` → suffix 'Jr.', title 'Attorney General') — 2026-10-04 #602; 2026-10-14 #679.
- A roman numeral of two or more letters that reads as the generation starts the run as a listed one does (`John Smith VI Jones` → suffix 'VI Jones', as `John Smith III Jones`), its shape alone reported — 2026-10-25 #784.
- What never starts the run: a title word (`Mary Jane Pope Smith` keeps family 'Smith'), a member of the ambiguous class but a credential split across a space (below) and a listed member its capitals settle (below), a single letter, a connective (`Josep Carod i Rovira` keeps family 'Carod i Rovira'), and a word that is also particle or bound given-name vocabulary (`Mohamed Ali Abd Allah` → family 'Allah'); a title/suffix dual does start it — 2026-10-04 #602.
- What never starts the run: a title word (`Mary Jane Pope Smith` keeps family 'Smith'), a member of the ambiguous class but a credential split across a space (below) and a listed member its capitals settle (below), a single letter, a connective (`Josep Carod i Rovira` keeps family 'Carod i Rovira'), and a word that is also particle or bound given-name vocabulary (`Mohamed Ali Abd Allah` → family 'Abd Allah', no suffix, since rules/P12 joins the Latin `abd`, 2026-11-19 #1464); a title/suffix dual does start it — 2026-10-04 #602.
- An honorific or generational word starts the run as a credential does, whatever its script (`राम शर्मा साहब मोहन` → suffix 'साहब मोहन'); the one-character honorifics stay out by the two-letter minimum — 2026-10-14 #679.
- With no family comma, a generation word written out, a numeral aside, with a name word behind it does not start the run: the family name is the word behind it (`Guy Andre Junior Francois` → middle 'Andre Junior', family 'Francois'; `John Smith Jr. Jones` → middle 'Smith Jr.', family 'Jones', the reading of 1.4.0 through 2.3.0). A name word there is a word that is no suffix word, numeral S10 reads as the generation, initial, connective, title word or maiden marker, and is a particle or is written in Title case, in a script with no case, or in a name of one case (so a particle that is also title or suffix vocabulary is none: `John Smith Jr. Mc Donald` keeps suffix 'Jr. Mc Donald'); the family-first orders are not asked, so `Smith John Jr. Jones` under `FAMILY_FIRST` reads middle 'Jr. Jones' where `Smith, John Jr. Jones` reads suffix 'Jr. Jones'; so the run still starts before a credential (`John Smith Jr. PhD Jones`), before capitals or lower case in a name of mixed case (`John Smith Jr. CF`), before a title (`Eric H. Holder Jr. Attorney General`), and after the given word in the part after a family comma (`Smith, John Jr. Jones` → suffix 'Jr. Jones') — 2026-11-02 #1023.
- A lone particle counts toward the two name words only where the credential stands right behind it (`John von PhD Jones` → family 'von', suffix 'PhD Jones', under the family-first orders given 'von'); a particle run counts once, and a particle the run took is not asked (`Freiherr von vd PhD Jones` keeps middle 'PhD') — 2026-10-10 #627.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Elsewhere: which words divide at all, and what a divided word reads as, decisions/period-joined-words' 2026-11-09 #1255 entries; a run of single letters, which stays one word, decisions/T7.

Open: [#1306](https://github.com/derek73/python-nameparser/issues/1306), which field a Mongolian glued initial takes under the default order or a Mongolian choice (moved from #1235, which this division closed): the pack question the spaced `Ц. Сандаг-Очир` already raises.
Open: a chunk, or a name after the stop, that writes a vowel sign other than Thai's or a mark of the Arabic script's (counted since #1149, in the gate as on both sides of the stop: `أ.محمد` and `أ.د.أحمد` divide in NFD as in NFC; a zero-width joiner or non-joiner between two letters of the name is counted too, one right after the stop is not), a name of plain letters dividing in any script (`ড.করম খান`) (`डा.राम शर्मा` keeps title 'डा.राम', where `डा. राम शर्मा` reads title 'डा.', given 'राम'; `ড.রহিম` keeps title 'ড.রহিম', the listed `ড` found but রহিম's U+09BF not, #1166): the shape's letter class counts no such mark (decisions/nfd-shapes), and #1166 added Thai's on the name side alone, so no division is found there, moved here from decisions/period-joined-words' Open line. The local corpora hold almost no such title (nepal-candidates' glued Devanagari words are runs of initials, `के.सी.`, which stay whole anyway, and `मो.`, which, with the Latin `Mo.` (10 words glued to the next in the local corpora, #1178's third comment), no issue holds once #1178 closes, answered for `Ab` and `Md`), so no issue is filed.
Open: a chunk, or a name after the stop, that writes a vowel sign other than Thai's or a mark of the Arabic script's (counted since #1149, in the gate as on both sides of the stop: `أ.محمد` and `أ.د.أحمد` divide in NFD as in NFC; a zero-width joiner or non-joiner between two letters of the name is counted too, one right after the stop is not), a name of plain letters dividing in any script (`ড.করম খান`) (`डा.राम शर्मा` keeps title 'डा.राम', where `डा. राम शर्मा` reads title 'डा.', given 'राम'; `ড.রহিম` keeps title 'ড.রহিম', the listed `ড` found but রহিম's U+09BF not, #1166): the shape's letter class counts no such mark (decisions/nfd-shapes), and #1166 added Thai's on the name side alone, so no division is found there, moved here from decisions/period-joined-words' Open line. The local corpora hold almost no such title (nepal-candidates' glued Devanagari words are runs of initials, `के.सी.`, which stay whole anyway, and `मो.`, which, with the Latin `Mo.` (10 words glued to the next in the local corpora, #1178's third comment), no issue holds since #1178 closed on 2026-11-22, answered for `Ab` and `Md`), so no issue is filed.
Open: a word glued at a full stop other than the ASCII one, in Latin names, as the ideographic stop in `Wenzhao Zhong, Ph。D` (one name in the local corpora, 2026-11-10). The fullwidth stop between Han names was #1312, which rules/T3 reads as the transcription dot.
Open: [#1311](https://github.com/derek73/python-nameparser/issues/1311), a glued word after a family comma, the given part the comma names (`ARTHUR, L.MICHAEL`, 111 in fec-individuals), which the division would reach only once the comma's decision is asked first.
Open: [#1313](https://github.com/derek73/python-nameparser/issues/1313), a particle glued to its surname at its full stop (`Alaa A. El.Baz` reads suffix 'El.Baz'), which the division does not read as a chunk.
Expand Down
Loading