Skip to content
Merged
4 changes: 3 additions & 1 deletion docs/design/decisions/M1-delimited-maiden-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- A pair declared for both maiden and nickname names reads maiden, the overlap canonicalized out of the effective nickname set before parsing and through `apply_patch` too, silently — 2026-07-18.
- The marker word inside a declared clause is dropped where the clause holds a word past the marker run (`Jane Smith (née Jones)` → maiden 'Jones'), and a clause of nothing but its marker keeps its words, Nee being an attested surname (`Jane Smith (Nee)` → maiden 'Nee') — 2026-08-04 #329; 2026-08-26 #434.
- Clauses are independent, each dropping or keeping its own marker (`Jane Smith (Nee) (Jones)` → maiden 'Nee Jones' under a declared pair), and the contentless `(née —)` alone parses to every field empty and `bool()` False — 2026-08-04 #329.
- A bracket in the family part before a family comma is not read as the maiden name by default (`Smith (Jones), Jane` reads nickname 'Jones'); a caller declares the pair in `maiden_delimiters` — 2026-11-20 #1375.
- Neighbour-scoping the drop is declined: it would read `Jane Smith nee Nee Jones` as maiden 'Jones' where it reads 'Nee Jones' — 2026-08-04 #329.
- A clause of nothing but a phrase marker keeps its words too, so `Maria Kowalska (z domu)` under a declared pair reads maiden 'z domu', a name nobody bears, emitted deliberately because the parser cannot know the pair did not enclose an unfamiliar surname — 2026-08-26 #434.

Expand Down Expand Up @@ -37,4 +38,5 @@ Declined:
- 2026-10-28 #357 — THE V1 FACADE'S NICKNAME-WINS READING GOES WITH THE FACADE (decisions/3-0-reevaluations' 2026-10-28 #357, REMOVAL entry). The facade subtracted the maiden pairs from the nickname pairs on its side to keep v1's precedence for a pair declared in both; with `HumanName` and `Constants` removed there is no v1 side, and every caller gets the 2026-07-18 entry's maiden reading. SUPERSEDES: the 2026-07-18 entry's v1 facade half, its nickname-wins subtraction.

The decision the rewrite forces, stated so a later PR has something to weigh against. Under a configured maiden pair, "Maria Kowalska (z domu)" emits maiden "z domu" — the marker itself as the whole maiden name. That is not what the phrase argument under #M2 says about those words: "z domu" is borne as no name in any position, which is exactly why shipping it as a phrase is safe. So the value is a name nobody has. It is emitted anyway, and deliberately: M1's carve-out is that a clause holding nothing past its marker keeps its WORDS, and the parser has no way to know a caller's configured pair did not enclose an unfamiliar surname — the same ignorance that makes "(Nee)" keep its word. The alternative readings, an empty maiden or a nickname, both require the parser to judge its own vocabulary's words unnameable, which nothing else in the library does. Cheap to revisit: the shape is one rules.md example and one case row away from a decision either way, and no corpus name has it.

- 2026-11-20 #1375 — DECLINED: A BRACKET IN THE FAMILY PART BEFORE A FAMILY COMMA IS NO MAIDEN NAME BY DEFAULT (`Smith (Jones), Jane` reads nickname 'Jones', not maiden 'Jones'). No universal convention writes a maiden name in brackets, so a bracket the writer does not announce is a nickname, unless the caller declares the pair in `maiden_delimiters`, which already reads every shape the issue listed. The comma's position does not settle it: of the 94 FEC names with a bracket before the comma (the 2026 cycle, 1,893,964 distinct names, measured 2026-11-12), about 30 held another surname, about 30 a filer's note or an organization, and the rest nicknames, titles and credentials. A maiden marker is the contrast: a convention the writer states in the name, so it reads as maiden without a declared pair (M3). docs/policy.rst ("Routing a pair to maiden names") and docs/shapes.rst already say so.
- Recompute: the distinct names of the local corpus `fec-individuals` (tools/differential/local_corpora.py) holding `(` before their first comma, counted and each read by hand, as the measurement in #1375's body (2026-11-12) did; the classes are that reading's, not a tool's.
32 changes: 31 additions & 1 deletion docs/design/decisions/O6-two-family-names.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/design/decisions/group-suggestion.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- A name word in a script that writes no initials followed by a letter of it casts no trailing-initial vote, since no byline writes such a name before an initial, as rules/T5 and the order report read it: a group of Thai or Burmese names, each a word and a letter, suggests nothing — 2026-11-12 #1256.
- A group of Arabic-script names, each a word and a letter, casts no trailing-initial vote either, the Arabic script writing no initials (decisions/script-properties) — 2026-11-19 #1149.
- A group of Lao names, each a word and a letter, casts no trailing-initial vote, as Thai does (decisions/script-properties) — 2026-11-20 #1380.
- Declined, for now: reading a name past what the base parse reads as a title or suffix rather than past the suggester's own predicates; the suggester keeps its predicates, so a name ending in a bare capitals credential or opening with a given name and a full stop may vote by the wrong word — 2026-11-19 #1401.
- A caller with a large list is told a sample of a few hundred names from each source is enough: nearly every kind of list measured is read right from 200 names, a longer list is rarely better (bylines written given first under a family-first base are the one kind measured that kept improving), and since the 1% floor no list measured in its base's own order is read worse at 2,000 names — 2026-11-16 #1442, 2026-11-16 ORDER FLOOR.

Open: the other four settings count their shares among the names with evidence on them, never the group, so a few stray names decide `patronymic_rules`, `initials_as_family`, `capitals_as_family` or `two_family_names` (whose share is of the names the switch would change) in a long silent list (2026-11-16 ORDER FLOOR, its bullet on the other settings; 2026-11-19 #1452); no measured population moves on any of them, and no issue is filed. Suggesting `two_family_names` for Portuguese and Brazilian lists (the switch reading Brazil's ORCID holders better and its PatentsView inventors worse), and for the countries #1452 left out (Croatia, Slovenia, Iran, DR Congo, Cameroon), whose ORCID holders' names the bare switch reads better and their PatentsView inventors' a little worse, is open (2026-11-19 #1452, its Open bullet). A group gate for the short capitals words, under which one votes where another name of the list writes a longer capitals word at the same end, measured and not taken for 3.1 (2026-11-14 #1355, its Declined bullet), to weigh beside #1402, which was decided 2026-11-19, left as it reads (decisions/O9). For a list mixing East Slavic and Turkic patronymics (uz_senate, kz_senate), suggesting both rules, and reading the Kazakh `-uly` and `-kyzy` endings as a Turkic signal, are not taken for 3.1 and not decided against (2026-11-15 #1356, its Not taken bullet). `_MIN_PATRONYMIC_VOTES`, five names, was set to keep small Russian groups written family first from moving a family-first base to given-first (2026-11-10 THRESHOLDS); since 2026-11-15 #1356 a `FAMILY_FIRST` base keeps its order on such a group, and that entry measured what relaxing the count did then: no same-order cell moved, and groups written given-first moved a family-first base sooner; since 2026-11-19 #1447 two names written given first decide given-first by their position votes without the rule, so that measurement predates the vote and is not re-taken. The threshold is unchanged and has no issue. #1308, the tracking issue, is closed; its other open item, the given names the given-name table's family-share filter drops, was #1357, settled for `John`, `David` and `Robert` by 2026-11-15 #1357, which leaves `James`, `Paul`, `George`, `Charles`, `Thomas` and `Martin` out. #1364's ORCID surname table at a given-box share of 12%, which helps Portuguese and Brazilian lists written given first and costs those written family first at 10 and 20 names, and which would also add Portuguese surnames to the `two_family_names` vote, and so could reach Lusophone lists the switch costs (Angola, Mozambique; 2026-11-19 #1452; not measured) as well as Brazil and Portugal, so it is measured on that setting's rows too, and the census table for English it held, are open (2026-11-19 #1364, its Declined and Open bullets; 2026-11-15 #1357 holds what a gate measured for the census table); so is the cost that table's `pv-listed-given` shows, English given names ORCID's holders rarely type as one (`Cooper`, `Burke`). Not measured, and without an issue: the table's 20-use floor (`MIN_USES`), and a family share between 10% and 15%.
Expand Down Expand Up @@ -560,4 +561,10 @@ Open: the other four settings count their shares among the names with evidence o
- Declined: the shared-surname signal (above); a share above 0.3 (above); a veto inside `suggest` on a list a pack would read better, the issue deciding the bare switch.
- Open: Portuguese and Brazilian lists, which the switch reads better on ORCID (Brazilian inventors on PatentsView worse) and nothing proposed here reaches without bringing Pakistani and Bangladeshi lists with it; the countries left out, whose ORCID holders' names the switch reads better too and their PatentsView inventors' a little worse (HR, SI, IR, CD, CM above); `middle_as_family` and `two_given_names` as suggested settings, each a later issue.
- 2026-11-19 #1149 — ARABIC LETTERS ARE NO INITIALS TO THE TRAILING-INITIAL VOTE. The script-property table's Arabic row writes no initials (decisions/script-properties), and the vote reads `_vocab.is_initial`, so five Arabic-script names each a word and a letter, which suggested `name_order=FAMILY_FIRST` by five trailing-initial votes on master, suggest nothing. `tools/differential/suggest_measure.py --base <a checkout of 667828ae>` moves no cell of its populations, which hold no such group.
- 2026-11-19 #1401 — DECLINED, FOR NOW: THE SUGGESTER KEEPS READING A NAME PAST ITS TITLES AND POST-NOMINALS BY ITS OWN PREDICATES, NOT BY THE BASE PARSE (option C of the issue): not in 3.2, the issue left open. Where the two disagree on which words are the name, the suggester may vote by a word the parse reads as a credential, or skip one it reads as a name: four invented names each ending in `MENG` with no comma suggest `GIVEN_FIRST` under a `FAMILY_FIRST` base.
- **Measured** 2026-11-15 on master `17bc6123` with `tools/differential/suggest_measure.py` and scratch variants of `_suggest.py` (a dated snapshot; the variants are not in the tree). The parse and the suggester disagree on 1,217 of the tool's 916,610 names in both written orders (0.13%), 89 of a 100,000-name sample of ClinicalTrials.gov officials, 38 of 15,214 UK donors, 246 of a 100,000-name sample of Czech candidates and 388 of 6,021 GOV.UK people (6.4%, mostly `The Rt Hon`); the larger classes are gated suffix words (`Junior`, `Filho`), bare capitals honours (`KC`, `CBE`) and title styles at the head, the issue's gated acronym a handful.
- **Option A**, asking the base parse at both ends with the suggester's guard for trailing initials kept: on a made-up grid it mends 64 of master's 71 cells where a base read right is moved wrong; on the tool's real populations it moves 20 of 960 cells, 5 up and 15 down, none by more than 2.4 points, no same-order row moving. It costs a second parse a name (`suggest` on 10,000 names about four times as long), the votes of a real surname the parse reads as a credential in capitals (`Wei MA`, 20 right given-name votes fewer in ORCID's short-surname population), and 36 grid cells master reads right by accident.
- **Option B**, the gated acronyms out of the surname table: 74 cells move, 56 down.
- **Left as they are:** the name-like suffixes the 2026-11-15 #1357 entry took out of the given-name table (`asa`, `ace`, `ed`, `cem`), measured safe to return only with option A in place.
- **What would reopen it:** a real list given a wrong order for this reason; GOV.UK's people, where the two disagree most, is the one to watch. #1364 and #1447 changed the suggester since, so the figures are re-taken if it returns.
- 2026-11-20 #1380 — LAO LETTERS ARE NO INITIALS TO THE TRAILING-INITIAL VOTE. The script-property table's Lao row (decisions/script-properties) writes no initials, and the vote reads the same predicate, so a Lao name word followed by a letter casts none: five invented names written so (`ສົມຊາຍ ສ.`, `ບຸນມີ ຄ.` and three more) suggested `FAMILY_FIRST` at master cb5088a9 by five trailing-initial votes and suggest nothing now, as the Thai and Burmese groups have since 2026-11-12. `suggest_measure.py --base` moves no Lao cell, its populations holding no Lao names; the per-name row is in tests/v2/test_suggest.py beside the Thai, Burmese and Arabic ones.
2 changes: 1 addition & 1 deletion docs/release_log.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Release Log
- **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.PT_BR to read two family names, and add locales.PT_PT, which reads names from Portugal the same way.** ``parser_for(locales.PT_BR).parse("Ana Souza Lima")`` gives family ``Souza Lima``, where 3.0.0 through 3.1.0 gave middle ``Souza``, family ``Lima``; a second given name on the packs' Portuguese given-name list stays where it stands (``Ana Beatriz Costa`` keeps family ``Costa``), and ``locales.PT``, chosen for Portuguese names from any country, is unchanged. ``locales.PT_PT`` also reads four given names Portugal writes behind a particle and Brazil does not (``Maria do Rosário Pinto`` gives middle ``do Rosário``, as ``do Carmo``, ``da Conceição`` and ``da Luz`` do). :issue:`1453`, :issue:`1189`
- **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`
- **Change the Spanish given-name lists, rewritten from their 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``; nine words leave locales.ES_AR's list (``Gerhard``, ``Zuleyma`` among them) and nine join it (``Azhar``, ``Houari``, ``Grace``), each joining reading as a middle name where it read as the first family name, and locales.ES's gains ``Lahcen`` and drops ``Rim``. :issue:`1471`, :issue:`1476`

* 3.1.0 - November 16, 2026

Expand Down
Loading