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
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- 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: 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. A build listing the three-letter Mexican degrees with their stops was declined on 2026-11-20 (below).

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.').

Expand All @@ -18,3 +18,4 @@ Elsewhere: why a run of single letters joined by full stops stays one word while
THE MECHANISM. classify tags the run (`vocab:dotted-title`) where its folded spelling without stops is in the set and its text is a run of two or more single letters joined by stops, the last stop optional (`_vocab.is_dotted_title`). `_pieces.leading_titles`, the given part's leading run, counts a tagged piece as a title word, applies H3's floor, then gives back a tagged piece the run ends on, and asks the one before it again (`Hon. U.S. Grant` keeps title 'Hon.'). H6's run before a family comma, which reads by vocabulary only, does the same, so `U.S. Senator Smith, John` reads as `US Senator Smith, John` does; it now counts its run before setting roles. The run is read as the title it spells by the other readers of the head too: by H9's phrase test, so a gated title behind it has its partner (`U.S. Marshal John Smith` reads as `US Marshal John Smith`), and by C4's count of name words before a comma, which counts it as a title only where it opens the part (behind any titles) and a title, listed or by H2's shape, follows it with a word behind (a word of any kind, so `U.S. Senator Jr., Ed` counts it, and the floor then gives 'Senator' back and the run after it, reading as master did), so `U.S. Senator Smith, Ed` keeps given 'Ed' as its undotted twin does (both found by the code review: the first build read `U.S. Marshal` as given 'U.S.' and `U.S. Senator Smith, Ed` as title 'U.S. Senator', suffix 'Ed', no given name). A run a connective joins to another (`U.S. and U.K. Ambassador`) is one unit of several words and stays a name, an accepted gap. H9's phrase test reads the run as the modifier it spells wherever it stands, as it reads the undotted twin, so `John Smith U.S. Dean.` reads title 'Dean.', family 'U.S.' as `John Smith US Dean.` does (master and 1.4.0 read family 'Dean.'), the run then reporting `suffix-or-name` as rules/S3's unlisted dotted shape ending the name, which its undotted twin cannot raise, and `U.S. Vice Smith`, two modifiers with no head, keeps given 'U.S.' (both found by the review of the fix commit; accepted as the twin's reading, rules/H10's Accepted clause). The fold runs only where the name holds a word H9 reads, so a name with a run and no such word (`U.S. Grant`) pays no phrase test for it. Where the count reads the run as a title and H6 then gives it back (`U.S. Insp. Smith, Ed`, H6 reading by vocabulary only, and `U.S. St. Smith, Ed`, a title-particle stopping H6's run), the comma decision is the one the undotted twin makes and the run lands in the family, as H10 reads it with no title kept behind it. The run is read as a title only at the head of a part: at the end of a name H5's chain takes neither the run nor its spelling without stops (`John Smith US Senator` keeps family 'Senator').
THE SWEEP (2026-11-09, re-run after the code review and again after the review of its fix). Twenty-two bases (`{D} District Judge Marc Treadwell`, `{D} Senator John Smith`, `{D} Grant`, `Hon. {D} Grant`, `{D} Senator`, `{D} Senator Jr`, `Mr {D} Ambassador Jane Smith`, `{D} Senator John Smith Jr.`, `{D} Senator John de la Vega`, `{D} Senator Smith`, `Freiherr {D} Senator Smith`, `St {D} Senator Smith`, `Rev. Sr. {D} Senator Smith`, `(Bob) {D} Senator Smith`, `{D} Senator Smith PhD`, `{D} Dr. Smith`, `{D} Marshal John Smith`, `{D} Marshal`, `{D} Dean Smith`, `{D} Senator Smith V`, `{D} Vice Smith`, `John Smith {D} Dean.`) in six comma shapes (none, `Doe Ray, ` and `Doe, ` and `, ` before the base, and `, Mary` and `, Ed` after it) and four spellings (`U.S.`, `U.S`, `u.s.`, `P.D.`), under all three orders, 1,584 rows, each compared with its twin written without stops. Fields differ on 351, every one a row where nothing the run keeps follows it (`{D} Grant`, a lone `{D} Senator` or `{D} Marshal`, `{D} Senator Jr`, where the floor gives 'Senator' back, and `P.D.` before `Marshal`, `Dean` or `Vice`, which take no academic title as their partner or head), which the run's spelling without stops reads as a title where the dotted run stays initials. Every other difference is the `suffix-or-name` report the comma's decision gives paired initials opening the part after it (rules/C11, C5's shape), which master gave the same run read as the given name. It stands now on a run this rule reads as the title, the report naming the title field and the credential as its other reading: accepted rather than dropped, since the comma decides before the title run is read and dropping it would have the comma predict H10's run (rules/H10's Accepted clause). The same sweep made rules/H10 state its precedence over rules/C5, whose given part the run opens.
THE CORPORA (measured 2026-11-09 against master b89c5482, py3.11). The snapshot moves one name, the Treadwell row. Local corpora by `snapshot.py --local <source> --base`: ukec-individuals, govuk-people, dof-signatures, fec-individuals and nepal-candidates match the base; ctgov-officials moves the two Privatdozent rows the simulation found, each from given 'P.D.' to title 'P.D. Dr.' (`Edgar Santos-Marcial, P.D. Dr. med` and `Martin Beiderlinden, P.D. dr. - med.`, whose given names, 'med' and '-', were no better before). opensanctions-parliaments was not read: its cached fetch predates the datasets the tool now reads, and refreshing it rewrites the cache every session shares.
- 2026-11-20 #979 — THE DOTTED MEXICAN DEGREES ARE NOT LISTED IN 3.2. A build listed `l.c.p`, `l.a.e`, `m.a.p` and `l.e.m` in `es.toml` as default `academic` readings, so that, as rules/T7's vocabulary Except, `L.C.P. Ana Ruiz Paz` read title 'L.C.P.' where it reads given 'L.', middle 'C.P. Ana Ruiz'. It was declined before merging. Its cost falls on initials, a run of single letters joined by full stops being how initials are written, which T7 reads right today: `Perez, M.A.P.` would read title 'M.A.P.' and no given name, `M.A.P. Perera` and `L.E.M. Smith` would lose their given initials, and `Perez M.A.P.` under `FAMILY_FIRST` would read the degree. Those are initials-only and citation shapes, and the fielded corpora that would count them (orcid-researchers, patentsview-inventors, psc-individuals) compose each name given first from its filed boxes, so none writes initials after a family comma or after a single surname: their count, measured against master `cb5088a9` with `uv run python tools/differential/measure.py --base <export>`, was 1 name moved (a Sri Lankan name whose initials are `M.A.P.`) against dof-signatures' 34 gaining the degree, and a fixed-against-broken count over those corpora does not measure the cost. Shipping them `default = false` under `locales.ES` would narrow who pays, not remove it, Spanish names being written as initials too (`Perez, M.A.P.`, `L.C. García`). #979 stays open.
Loading