You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A word that is a title only inside a phrase is left off the Spanish given-name lists (Maria Emerita Garcia gives family Emerita Garcia under locales.ES_AR) #1476
tools/es_given_names.py's excluded_words() leaves out of rules/O6's given-name lists every word the default vocabulary lists as a title, titles_ambiguous included. A word in titles_ambiguous is a title only inside a title phrase (rules/H9) and a name word everywhere else, including the middle of a name, which is where O6's list acts. So excluding it refuses a given name the list could keep without contradiction.
Name
Under
Now
Expected
Maria Emerita Garcia
locales.ES_AR
family 'Emerita Garcia'
middle 'Emerita', family 'Garcia'
emerita left the es-AR list when #1471 made it a title modifier. INE counts it 2,104 times as a given name and never as a surname.
What narrowing the exclusion would move (measured 2026-11-19 on the cached INE tables). The narrowed rule keeps a word that is only in titles_ambiguous; a word also in another excluded set stays excluded.
List
Joins
Leaves (at the cutoff)
es-AR
emerita, cheikh, grace, mahdi
pere, shamim, wenjie, zakarya
es
rim
pere
To check before changing:
Why pere leaves. The surname tally (after=excluded) changes with the exclusion, so it is likely a surname use counted behind a newly unexcluded word.
tests/v2/test_es_given_names.py holds the lists to no title word, and its recorded negative control lists dean. Widening the guard needs a row for each word the narrower form refused.
Each joining word read mid-name under both packs, and inside its phrase (Professor Emerita Garcia).
Activity
Keep a title only inside a phrase on the Spanish given-name lists, an…