Skip to content

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

Closed

Description

@derek73

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

Related: #1471, #1473.

Activity

  1. self-assigned this
    on Nov 19, 2026
  2. added
    locale-packs
    on Nov 19, 2026
  3. added this to the 3.2 milestone on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buglocale-packstooling

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions