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: 1 addition & 1 deletion docs/design/decisions/3-0-reevaluations.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Not standing: the harness bullet, that the snapshot and `compare.py` cannot show

Elsewhere: the explicit-comma line narrowed to a description for CJK script — decisions/cjk-comma-demotion's 2026-09-01 #469, SCOPES the FAMILY_COMMA bullet entry; the 1.4 gate the harness-baseline bullet expected 3.0 to dissolve, already retired, `compare.py --baseline 1.4.0` answering the question when asked — decisions/differential-ledger's 2026-10-13 #664 entries; the vocabulary model packs are to narrow, a strict pack dropping other languages' readings — decisions/vocabulary-model's 2026-10-15/16 entry; what the shim's filter kept and dropped until #357 — decisions/R4's 2026-10-02 #541 and 2026-10-02 #582 entries.

Open: #753 (phase 3, language packs; the three pack bullets carried out by its 3b, 2026-10-29, and 3.0's packs shipped after it, from `locales.NE` to `locales.ES_AR`; a pack past 3.0, as `is` is in #1074, is the issue's).
Open: [#1074](https://github.com/derek73/python-nameparser/issues/1074), an `is` pack, a pack past 3.0. #753 (phase 3, language packs) closed on 2026-11-08, its three pack bullets carried out by its 3b, 2026-10-29, and 3.0's packs shipped after it, from `locales.NE` to `locales.ES_AR`.

## Log

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- A word of the ambiguous class its capitals settle carries no report wherever it stands in the part after the comma (`Doe, MA PhD`, `John Smith, MA MA`, `Smith, MA PhD`, `John Smith, PhD MA`, `John Smith, MA` are silent), a word the capitals do not settle reporting as before (`Doe, Ma PhD`, `JOHN SMITH, MA`) — 2026-10-25 #785, superseding the 2026-10-01 report on an opening word; no `suffix-or-name` report lands past the second comma (`Smith, John, MA`, `John Smith, Jr., MA`) — 2026-10-01.
- The part after a suffix comma reports each word a credential in front of it reads as the run although it may be a name word (`John Smith, PhD van der Berg` → `suffix-or-name` on 'van', 'der' and 'Berg'), and C2's no-name-reading clause means only a word read as a name — 2026-10-11 #641.

Elsewhere: no particle chain reaches such a part at all, which replaced #544's withheld report list: the part after a suffix comma is bound before any join — decisions/C1's 2026-10-06 (Derek), #613 entry — and a part past the second comma makes no chain — decisions/C7's 2026-10-11 (Derek), #636 entry; `pair_only` asks `is_title_piece` — decisions/C5's 2026-10-19 (Derek), follow-up to PR #738 entry; the listed-member report names the role its word is bound to ("a title" for `John, Si.`, "a credential" for `John, MA`) — decisions/suffix-acronym-collisions' 2026-10-21 (#793) entry and decisions/A1's 2026-10-21 #793 entry; a maiden marker past the second comma being an ordinary word, so `Smith, John, Jr nee Jones MA` reads suffix 'Jr nee Jones MA' where the 2026-10-01 entry read a maiden clause — decisions/M2's 2026-10-04 (Derek), #601 entry.
Elsewhere: no particle chain reaches such a part at all, which replaced #544's withheld report list: the part after a suffix comma is bound before any join — decisions/C1's 2026-10-06 (Derek), #613 entry — and a part past the second comma makes no chain — decisions/C7's 2026-10-11 (Derek), #636 entry; `pair_only` asks `is_title_piece` — decisions/C5's 2026-10-19 (Derek), follow-up to PR #738 entry; the listed-member report names the role its word is bound to ("a title" for `John, Si.`, "a given name" for `John, Ma`) — decisions/suffix-acronym-collisions' 2026-10-21 (#793) entry and decisions/A1's 2026-10-21 #793 entry; a maiden marker past the second comma being an ordinary word, so `Smith, John, Jr nee Jones MA` reads suffix 'Jr nee Jones MA' where the 2026-10-01 entry read a maiden clause — decisions/M2's 2026-10-04 (Derek), #601 entry.

Open: none in this file.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- A suffix word opening the part is a name word to the count where a name word follows it, so the part reads as it does alone under every order: the first word behind any titles, a dual counting as the title it also is, a title behind it no name word, a split credential's member excepted: `Md Rahman, PhD` → given 'Md', family 'Rahman'; `JP Clancy, MD` → given 'JP'; `Dr. Md Rahman, Ing` → given 'Md'; `Md Prof., PhD` → family 'Md Prof.'; `MB ChB, PhD` → family 'MB ChB' — 2026-11-02 #1017.
- A numeral of two or more letters ending the part, or standing before the suffix words it ends with, that the trailing fork reads as the generation is no name word, as a listed one is not, and P3's three-word count asks the same of a name ending in one: `Dumas VI, Jr.` → family 'Dumas', suffix 'VI, Jr.', as `Dumas III, Jr.` reads, and `Dumas VI MD, Ed` → given 'Ed', family 'Dumas'; `Ortega y Gasset VI` and `Ortega y Gasset VI MD` → family 'Gasset'. A one-letter numeral keeps S10's words-to-spare count (`Dumas X, Jr.` → given 'Dumas', family 'X'), and a chained salutation's connectives keep counting (`Mr. and Mrs. and Dr., Jr.`) — 2026-11-04 (Derek), #893.

Elsewhere: the count runs once, in `_comma.decide` over classify's tags, with `name_word_count`'s vocabulary view held equal to them; a connective surname counts its words (`Ortega y Gasset, Dr.` → title 'Dr.', given 'Ortega', middle 'y', family 'Gasset' under the default order; `Ortega y Gasset, Ed` → suffix 'Ed'); and a part before the comma that is one name word with a suffix in it counts as the listing form's one word (`Smith Jr., Esq.` → family 'Smith', suffix 'Jr., Esq.'; `Smith Jr., V` → given 'V', family 'Smith', suffix 'Jr.') — decisions/C1's 2026-10-06 (Derek), #613 entry, its decisions (1) and (4); what keeps `Freiherr` in the family is the particle stop, not the rank's history, so `Graf Lambsdorff, Otto` reads title 'Graf' — decisions/H6's 2026-10-17 (Derek), #701 entry; a given-name title alone after the comma makes a lone surname the given name (`Cruz, Sir` and `Smith Jr., Sir` → given 'Cruz', 'Smith') while a particle surname keeps the family (`van der Berg, Sir` → family 'van der Berg') — decisions/H1's 2026-10-18 #720 entry; a listed title opening the part before a family comma peels (`Prof. Cruz, Ed` → title 'Prof.', given 'Ed', family 'Cruz'), which this file's #575 entry had read as part of the family — decisions/H6's 2026-10-17 #701 entry.
Elsewhere: the count runs once, in `_comma.decide` over classify's tags, with `name_word_count`'s vocabulary view held equal to them; a connective surname counts its words (`Ortega y Gasset, Dr.` → title 'Dr.', given 'Ortega', middle 'y', family 'Gasset' under the default order; `Ortega y Gasset, Ed` → suffix 'Ed'); and a part before the comma that is one name word with a suffix in it counts as the listing form's one word (`Smith Jr., Esq.` → family 'Smith', suffix 'Jr., Esq.'; `Smith Jr., V` → given 'V', family 'Smith', suffix 'Jr.') — decisions/C1's 2026-10-06 (Derek), #613 entry, its decisions (1) and (4); what keeps `Freiherr` in the family is the particle stop, not the rank's history, so `Herzog Lambsdorff, Otto` reads title 'Herzog', while `Graf`, a rank particle since decisions/vocabulary-collisions (#709), keeps the family `Graf Lambsdorff` — decisions/H6's 2026-10-17 (Derek), #701 entry; a given-name title alone after the comma makes a lone surname the given name (`Cruz, Sir` and `Smith Jr., Sir` → given 'Cruz', 'Smith') while a particle surname keeps the family (`van der Berg, Sir` → family 'van der Berg') — decisions/H1's 2026-10-18 #720 entry; a listed title opening the part before a family comma peels (`Prof. Cruz, Ed` → title 'Prof.', given 'Ed', family 'Cruz'), which this file's #575 entry had read as part of the family — decisions/H6's 2026-10-17 #701 entry.

Open: none in this file.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
- Where the comma's decision reports paired initials opening the part after it (rules/C11), the report stands on a run this rule reads as the title (`Smith, U.S. Senator John`) — 2026-11-09 #490.
- Only the titles that abbreviate several words are marked, so initials spelling a title of one word stay a name with a title word behind them (`D.R. Judge Smith` → given names 'D.R. Judge' (rules/T7 parting the run)); the cost kept is a person whose initials spell a marked title and whose next name is a title word (`P.D. Judge Smith` → title 'P.D. Judge') — 2026-11-09 #490, DECIDED.

Open: [#1296](https://github.com/derek73/python-nameparser/issues/1296), whether `E.T. Smith` reads given 'E.', middle 'T.', the other half of #490, left out of #490's fix as its 2026-10-02 comment proposed. Which vocabulary reads a degree acronym written this way at the front of a name in the `es` pack (`L.C.P.`) is [#979](https://github.com/derek73/python-nameparser/issues/979)'s, which can now mark its titles `dotted` or ask for more.
Open: which vocabulary reads a degree acronym written this way at the front of a name in the `es` pack (`L.C.P.`) is [#979](https://github.com/derek73/python-nameparser/issues/979)'s, which can now mark its titles `dotted` or ask for more.

Elsewhere: why a run of single letters joined by full stops stays one word and is never divided, decisions/period-joined-words.
Elsewhere: why a run of single letters joined by full stops stays one word while the name is read, decisions/period-joined-words; its parting into initials once roles are final where it is the given name (`U.S. Grant` → given 'U.', middle 'S.'), decisions/T7's 2026-11-10 #1296 entry, which also answered the other half of #490, left out of #490's fix as its 2026-10-02 comment proposed (`E.T. Smith` → given 'E.', middle 'T.').

## Log

Expand Down
5 changes: 3 additions & 2 deletions docs/design/decisions/H2-leading-abbreviation-title.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
- The shape declines a period-marked word carrying a letter of the ten Brahmic scripts from Devanagari to Sinhala (U+0900 to U+0DFF), an Except of rules/H2, so a Latin initial spelled there with no vowel sign is no title: `एम. एस. वर्मा` → given 'एम.', middle 'एस.' — 2026-11-08 #1191.
- The shape declines a period-marked word carrying a script that writes no period abbreviations (Han, kana, hangul; Thai and Burmese write no initials but are not among them, decisions/script-properties): `田中. 太郎` → family '田中.', where `Smith. John` keeps title 'Smith.' — 2026-09-10.
- C13 wins for a credential opening the part after a family comma (`Smith, Esq. John` → suffix 'Esq. John'), and the shape still reads a title there for a word that starts no S8 run (`Smith, Insp. John`, `Smith, Do. John` → title) — 2026-10-20 #761; its `Smith, Ma. John` example moved to the given name on 2026-10-26 #789.
- A given name written short outranks the shape: a word the vocabulary lists with a `given` reading whose `same_as` is the full name, period-marked where the shape would fire, is the given name and the name reads as it would with the full name there (`Chas. Smith` → given 'Chas.', `Mrs Ma. Liza Cruz` → title 'Mrs', given 'Ma.'). The shipped set is the traditional English abbreviations, the Filipino `ma` and `jo`, and since #1115 Muhammad, Achmad and Francisco written short (`mohd`, `mhd`, `muh`, `moh`, `moch`, `ach`, `fco`; decisions/H6's 2026-11-06 entry); a listed title still wins, and the reading acts nowhere else — 2026-10-26 #789.
- A given name written short outranks the shape: a word the vocabulary lists with a `given` reading whose `same_as` is the full name, period-marked where the shape would fire, is the given name and the name reads as it would with the full name there (`Chas. Smith` → given 'Chas.', `Mrs Ma. Liza Cruz` → title 'Mrs', given 'Ma.'). The shipped set is the traditional English abbreviations, the Filipino `ma` and `jo`, since #1115 Muhammad, Achmad and Francisco written short (`mohd`, `mhd`, `muh`, `moh`, `moch`, `ach`, `fco`; decisions/H6's 2026-11-06 entry), Sheikh written short (`sk`, #1129) and since #1383 `md`; a listed title still wins — 2026-10-26 #789.
- A transliteration digraph declines the shape, an Except of rules/H2: the Latin spellings of one Cyrillic letter that are no title in any corpus read, `Yu`, `Ya`, `Ye`, `Yo`, `Zh`, `Kh`, `Shch` and `Dzh`, in any case, so `Yu. A. Chibrikova` → given 'Yu.', middle 'A.', as `Ю. А. Чибрикова` reads; `Ts`, `Ch` and `Sh`, each also a title written short, keep the shape, and a digraph of another alphabet or a Latin given name written short (`Th.`) is outside the set — 2026-11-09 #1136.

Elsewhere: #316's question 2, a symmetric leading rule reading `Esq. Smith` as a suffix, is declined and the trailing slot reads vocabulary, decisions/H5's 2026-09-08 #316 entry (the undated `Decided 2026-09-08` paragraph below records the hook it closed here); the shape does not fire before a family comma, decisions/H6's 2026-10-17 #701 and 2026-10-18 #710 entries; a letter typed decomposed is the same letter to the shape, decisions/nfd-shapes' 2026-10-12 #652 entry, and the script veto reads the composed spelling, its 2026-10-13 #665 entry; halfwidth katakana is classified since #594 (decisions/W4).
Elsewhere: #316's question 2, a symmetric leading rule reading `Esq. Smith` as a suffix, is declined and the trailing slot reads vocabulary, decisions/H5's 2026-09-08 #316 entry (the undated `Decided 2026-09-08` paragraph below records the hook it closed here); the shape does not fire before a family comma, decisions/H6's 2026-10-17 #701 and 2026-10-18 #710 entries; a letter typed decomposed is the same letter to the shape, decisions/nfd-shapes' 2026-10-12 #652 entry, and the script veto reads the composed spelling, its 2026-10-13 #665 entry; halfwidth katakana is classified since #594 (decisions/W4); a given name written short opening the given part after a family comma (`Rahman, Md` → given 'Md'), decisions/C13's 2026-11-14 #1393 entry; one glued to the next word at its full stop, divided there (`Md.Karim Uddin` → given 'Md.'), decisions/T8.

Open: none in this file.

Expand All @@ -37,3 +37,4 @@ Decided 2026-09-08 (was Open: [#316](https://github.com/derek73/python-nameparse
- **Measured** against master b89c5482: the committed snapshot moves no name (the eight it gains are the rule's examples); `snapshot.py --local <corpus> --base <master checkout>` matches the base for nepal-candidates, ctgov-officials and patentsview-inventors; `local_agreement.py --base <master checkout>` matches it for psc-individuals and changes 2 orcid-researchers records, both toward the boxes their filers typed. opensanctions-parliaments was not re-measured, its cache predating the tool's dataset list; the scan above found no digraph of the set opening a name there.
- **The glued word**, decisions/period-joined-words' entry of this date: the set is also what that file counts as a chunk read on its own.
- **Its signal.** The clause reads neither the shape nor the script but a closed list of spellings, held in code (`_vocab._DIGRAPH_INITIALS`) rather than in the vocabulary, so a caller cannot remove a member from the set, but restores the title reading by listing the word as a title, which outranks the shape (`Lexicon.default().add("yu", kind="title")` reads `Yu. A. Chibrikova` title 'Yu.'), and a caller's `given` reading with `same_as` still reaches any word. It is a third reading beside the shape and the two script vetoes the #1191 entry names, which adds to the question a split of H2 would settle; a reading property in the TOML marking an initial was not weighed against it, only `same_as`.
- 2026-11-16 #1393 — THE READING ACTS BEYOND THE HEAD OF A NAME. The 2026-10-26 #789 line said a given name written short acts nowhere but where H2's shape would fire; decisions/C13's 2026-11-14 #1393 entry reads one opening the given part after a family comma (`Rahman, Md` → given 'Md', reported), and rules/T8 divides one glued to the next word at its full stop (`Md.Karim Uddin` → given 'Md.', decisions/T8). The Standing line drops the clause and names `sk` (#1129) and `md` (#1383) in the shipped set. Found by the 3.1 release sweep.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- A lone name unit that is a join carrying title vocabulary reports `title-or-name` too (`John of Bishop`, `Smith and Bishop`; `prince` was the example until it left TITLES on 2026-10-27, decisions/H9), stated since 2026-10-20 as rules/H7 — 2026-09-07 #491.
- The join clause (rules/H7's, recorded here) stands beside the peel clause, so a peeled title, a maiden name or a claimed word does not silence it (`Dr. Smith and Bishop`, `van and Bishop`, `Attorney General of Minnesota` report) — 2026-09-08 #518.

Elsewhere: the title run's floor that leaves `Pope` standing in `Dr Pope Jr` and `Dr. Pope MD`, both reporting here, is decisions/H3's 2026-09-08 entry; the suffix and join halves' `detail` naming the field the word lands in, which moves with the order (`Rinpoche` 'a given name' by default, 'a family name' family-first), is decisions/A1's 2026-10-08 #626 entry; the join clause's move into a rule of its own is decisions/H7's 2026-10-20 #761 entry.
Elsewhere: the title run's floor that leaves `Pope` standing in `Dr Pope Jr` and `Dr. Pope MD`, both reporting here, is decisions/H3's 2026-09-08 entry; the suffix and join halves' `detail` naming the field the word lands in, which moves with the lone name word's convention (`Rinpoche` 'a given name' under every order, 'a family name' under `Policy(lone_name_word=Role.FAMILY)`, decisions/O5), is decisions/A1's 2026-10-08 #626 entry; the join clause's move into a rule of its own is decisions/H7's 2026-10-20 #761 entry.

Open: none in this file.

Expand Down
Loading
Loading