Repository navigation
Keep a title only inside a phrase on the Spanish given-name lists, and record #1482, #1401 and #1375 (#1476) - #1509
Merged
Conversation
) tools/es_given_names.py no longer leaves out a word the default reads as a title only inside a title phrase (titles_ambiguous, rules/H9): in the middle of a name, where rules/O6's veto reads the list, it is a name word. locales.ES_AR's list regains emerita, so "Maria Emerita Garcia" reads middle 'Emerita' again, as 3.1.0 did, and gains cheikh, grace and mahdi. locales.ES's list, regenerated too, moves by #1257's ait particle (lahcen joins, rim leaves). decisions/O6 records the reversal and the measurement. Co-Authored-By: Claude Opus 5.5 <[email protected]>
decisions/O6 records the whole-family reading under the Portuguese packs, measured 2026-11-19 on a scratch prototype, as declined for 3.2 with its tables and the condition that would reopen it. decisions/group-suggestion records option C of #1401: the suggester keeps its own predicates for reading past titles and post-nominals. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tools/differential/parity_check.py listed it: 1.4.0 reads 'Jane Smith née @ JJ' as middle 'Smith née @', family 'JJ'; every release since 2.0.0 reads the maiden marker. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n name by default decisions/M1 gains a Standing line and a dated Declined bullet: no universal convention writes a maiden name in brackets, and the 94 FEC names with a bracket before the comma (measured 2026-11-12) mix other surnames, filers' notes, nicknames and credentials. A caller declares the pair in maiden_delimiters. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tools/pt_given_names.py cuts its list with es_given_names' excluded_words, so it keeps a title only inside a title phrase as well; its test and docstring now say so, and decisions/O6's line names both lists. Re-run, the tool writes the Portuguese list unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…fewer (#1476) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1476 entry Both declined entries move to 2026-11-19, the day they were decided, and the #1482 line says every surname but the last two stays a middle name; the #1482 entry says it cannot be recomputed from the tree. The #1476 entry's history names locales.ES's list alone as written before #1257, quotes rules/H9's own words, names the tally's whole excluded set, and gives the per-word counts that sum to its 407 records. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…recipe The second review of the fix commits: the entry opens with its capitalized verdict, stands after the entries it follows in date, and says how its FEC count is re-taken; the layering control's comment records its tools count moving 35 -> 34. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1476
Closes #1482
#1401 stays open: decided 2026-11-19 as not in 3.2, the issue left open for the condition that would reopen it.
#1476: the Spanish given-name lists keep a title only inside a phrase
tools/es_given_names.pyno longer leaves out a word the default vocabulary reads as a title only inside a title phrase (titles_ambiguous, rules/H9). In the middle of a name, which is where rules/O6's veto reads the list, such a word is a name word. A listed title (dr,prof) and the ambiguous particles and suffixes stay out.The lists, regenerated from the cached INE tables:
cheikh,emerita,graceandmahdi. It losesrehan,shamim,wenjieandzakaryaat its 5,000-word cutoff.aitbecame a particle on 2026-11-13 (Isben/bin/בןa particle, a patronymic marker, or a given name? (Karim Ben Salah,בן כספית,Youssef Ait Taleb) #1257), after the lists were last written on 2026-11-05. A surname written behind it (Ait Lahcen) no longer counts against the bare word, solahcenpasses the share and pushesrimpast the 1,000-word cutoff. Notitles_ambiguousword reaches this list at its 90% share.tools/pt_given_names.py, which uses the sameexcluded_words, so the same rule reaches it. Re-run, the tool writes it unchanged, and its test's guard narrows the same way.excludedasafter), so no word moves for that reason.Measured 2026-11-20 against a checkout of master
89ec747c.local_agreement.py orcid-researchers --base --locale es_ar, every country (1,823,708 records)--locale es, every countrygrace256 fixed / 4 broken;mahdi142 / 24;cheikh7 / 15 (Maghrebi surnames that open with it: inventedAna CHEIKH MOUSSA);rim(a Korean or Arabic given name, inventedYoung Rim Oh), and none is in a Spanish-speaking country.config_diff.py score --languages esover ORCID, PatentsView and PSC compared master's lists (loaded from the checkout with anexpr:spec) with the new ones:emeritarecord that moves.Garcia, M. E.,Garcia, C.,M. Emerita Garcia). Only the joining words move, each from family to middle, as listed given names do. Comma shapes and initials don't move.Judgment call, flagged: I kept the regenerated ES list, so the list matches its tool, rather than keep the stale one. Its swap breaks 14 ORCID records and fixes 2, none of them Spanish-speaking. Reverting
nameparser/locales/_es_given_names.pywould undo it alone.#1482: recorded, declined for now
No code. decisions/O6 gets a dated "Declined, for now" entry with the 2026-11-19 prototype's tables:
tse-donorsrun on names as written;A comment on the issue gives the finding.
#1401: recorded, left open
decisions/group-suggestion records option C: the suggester keeps its own predicates for reading past titles and post-nominals. The entry gives the 2026-11-15 figures for options A and B and names GOV.UK's people as the population to watch.
#1375: recorded
Relates to #1375, which is already closed as not planned. decisions/M1 gets a Standing line and a dated Declined bullet: a bracket in the family part before a family comma is not read as the maiden name by default (
Smith (Jones), Janereads nickname 'Jones'), unless the caller declares the pair inmaiden_delimiters. The bullet gives the FEC count from 2026-11-12 as the evidence. No code or user-doc change.A stray label
tests/v2/cases.py'salias_marker_behind_a_maiden_marker_left_a_word(#1504) saidparity, but 1.4.0 reads middle 'Smith née @', family 'JJ'. Every wheel from 2.0.0 to 3.1.0 reads it as the row does, so it is nowfix(#274), the maiden-marker issue.parity_check.pylists nothing now.Changes
tools/es_given_names.py; both generated lists;tests/v2/test_es_given_names.py(the guard narrowed to listed titles, its recorded control withoutdean, a test that the tool keepsdean,emeritaandprinceand excludesdr,prof,de,del,jrandy, and parse checks given-first, family-first and inside the phrase);tests/v2/cases.py;en.toml'semeritanote; one release-log bullet, merged intoEmeritusis not vocabulary (Emeritus Professor John Smithgives givenEmeritus, middleProfessor John) #1471's list bullet and measured against the 3.1.0 lists.Maria Emerita Garciagives familyEmerita Garciaunderlocales.ES_AR) #1476, Should a Portuguese family of three or more surnames be read whole? (Ana Souza Lima Rochagives middleSouza, familyLima Rochaunderlocales.PT_BR) #1482) and decisions/group-suggestion (HaveParser.suggestread past a credential ending a name when it votes on order (Qelliot Zorvan MENGvotes given-first) #1401).Checks
All pass:
-m serial;build.py --check;parity_check.py: 0 of 748 parity rows differ from 1.4.0.One recorded control moved:
test_layering.py's_UNGUARDED_READStools count, 35 → 34, because the Spanish tool reads one set fewer.Reviews
Code and tests (pr-review-toolkit code-reviewer).
tools/pt_given_names.pyshares the exclusion, while its test and docstring kept the old guard. Both now match the shared exclusion, and the decisions line covers both lists. Re-run, the PT tool writes its list unchanged.Design docs (design-docs-reviewer). It found seven defects, all fixed:
ben/bin/בןa particle, a patronymic marker, or a given name? (Karim Ben Salah,בן כספית,Youssef Ait Taleb) #1257;--listcap had hidden 7 records, re-taken;Ana Souza Lima Rochagives middleSouza, familyLima Rochaunderlocales.PT_BR) #1482 had no Recompute note;The fix commits, reviewed again (design-docs-reviewer). All eight earlier items landed. It also found:
CLAY (PHILLIPS), MELANIEgives nickname 'PHILLIPS') #1375 entry stood out of date order, with no headline verdict and no recipe;Both fixed.
🤖 Generated with Claude Code