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
Should a leading C. (ciudadano) read as a title in the Spanish pack? C. Ana Ruiz Paz #978
locale-packsLocale packs and language choices (nameparser.locales)titlesTitles and honorifics (rules/H)vocabularyFixed by a word-list entry: per-word vocabulary and language packs
Found by the dof-signatures local corpus (#977): the signature blocks of Mexico's Diario Oficial de la Federación for 2025, measured 2026-10-31 at cut version 6 (33,565 signatures, 6,644 distinct names). Example names are invented; the corpus is personal data and is not cited by name.
Shape. Mexican official writing puts C. (ciudadano/ciudadana, "citizen") in front of a name the way English puts Mr: C. Ana Ruiz Paz.
Today
parse("C. Ana Ruiz Paz") → given C., middle Ana Ruiz, family Paz
parser_for(locales.ES).parse("C. Ana Ruiz Paz") → given C., middle Ana, family Ruiz Paz
Size. 1,708 of 33,565 signatures (5.1%) and 803 of 6,644 distinct names (12.1%) open with C.; all 1,708 read it as the given name under both parsers. It is the corpus's largest systematic miss.
Why not simply a title.C. is initial-shaped, and an initial opening a name is common (C. Everett Koop), so a global title would break those. It belongs in the es pack if anywhere.
Question. Should locales.ES read a leading C. as a title when two or more name words follow it (a pack-scoped title reading of c, default = false)? Or is a Spanish name opening with the initial C. common enough that the pack should stay out? The pack's corpora (CLDR es, GND, the ES ORCID rows) would answer the second half.
Closing as declined (decided 2026-11-20): locales.ES does not read a leading C. as a title, and a caller whose data writes it can add it.
The convention is real but narrow. It is how Mexican official documents address a citizen, and the count here comes from one source of exactly that kind, the signature blocks of the Diario Oficial. Names written by their bearers do not open with it.
The cost falls on initials, which a pack's callers write. Measured on master 0d8c6fa with c listed under the pack: García, C. reads title C. and no given name, C. A. García López reads title C., given A., and a bare C Juan Pérez reads the title too. A citation list of Spanish names is full of these shapes, and the corpora that score a pack (composed given name first from filed boxes) cannot count that cost.
A caller reading official Mexican text can accept the cost for their own data:
>>>fromnameparserimportParser, locales, parser_for>>>es=parser_for(locales.ES)
>>>parser=Parser(lexicon=es.lexicon.add("c", kind="salutation"), policy=es.policy)
>>>parser.parse("C. Ana Ruiz Paz").title'C.'>>>parser.parse("C. Lic. Ana Ruiz Paz").title'C. Lic.'
A name with C. after the given name is untouched (Juan C. Pérez García keeps middle C.).
If the rule #1161 and #1205 wait on is ever built (a listed one-letter title read only with its period, at the head, with a name word behind it), C. would be a candidate for it, off by default under the pack.
locale-packsLocale packs and language choices (nameparser.locales)titlesTitles and honorifics (rules/H)vocabularyFixed by a word-list entry: per-word vocabulary and language packs
Activity
derek73 commentedon Nov 21, 2026
Closing as declined (decided 2026-11-20):
locales.ESdoes not read a leadingC.as a title, and a caller whose data writes it can add it.clisted under the pack:García, C.reads titleC.and no given name,C. A. García Lópezreads titleC., givenA., and a bareC Juan Pérezreads the title too. A citation list of Spanish names is full of these shapes, and the corpora that score a pack (composed given name first from filed boxes) cannot count that cost.A caller reading official Mexican text can accept the cost for their own data:
A name with
C.after the given name is untouched (Juan C. Pérez Garcíakeeps middleC.).If the rule #1161 and #1205 wait on is ever built (a listed one-letter title read only with its period, at the head, with a name word behind it),
C.would be a candidate for it, off by default under the pack.🤖 Generated with Claude Code