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
Keep Cheikh and Sultan as given names under a strict Arabic or Malay choice (Cheikh Mansour under strict ar gives title Cheikh, no family) #1463
enhancementlocale-packsLocale packs and language choices (nameparser.locales)titlesTitles and honorifics (rules/H)vocabularyFixed by a word-list entry: per-word vocabulary and language packs
The question. A strict choice reads only the chosen languages' files. Where a word's vocabulary reading is in a chosen file and the name reading that gates it is in another, strict keeps the reading and drops the gate:
cheikh's given-name reading is in fr.toml. Sultan Mahmud under strict ms reads title Sultan, family Mahmud the same way, its name readings being in ar.toml and tr.toml. The vocabulary holds 20 such words in 35 word-and-language pairs (STRICT_UNGATED in tests/v2/test_reading_index.py). The RFC left each to be read and, where the language's names carry the word, given a name reading in that language's file.
Measured 2026-11-18 on master 3175314d. Strict against strict with the word's given reading restored (lexicon.add(word, kind="given")), on the ORCID records of the language's countries that hold the word, scored against the filed boxes. That isolates the gate from everything else strict does.
Strict choice
Country sample
Records holding a listed word
Read differently without the gate
ar
Tunisia, Morocco, Algeria, Egypt
1,302
70
ms
Malaysia
360
3
it
Italy
123
3
fil
Philippines
105
2
pt, pt-BR
Portugal, Brazil
2,535
1
nl, fr, ca, ga
Netherlands, France, Spain, Ireland
822
0
The gate acts only where the word opens the name, so da stands in 1,606 Brazilian names and moves none.
62 of the 79 are ben opening a Maghrebi name, where the ungated reading is the right one (Ben Ahmed is the surname; the boxes agree with the gate only where the surname was typed into the given-names box). Two words lose names: cheikh under ar (8 records) and sultan under ms (1).
Proposed.
Add a given reading for cheikh to ar.toml and for sultan to ms.toml, and take both off STRICT_UNGATED.
Record the other pairs measured as wanted: under strict, the word is the particle.
Open:
gd, hr, sk, sl and hi were not measured, nor marquis, marquise, tho, st and sushri, which the samples hold too rarely to say anything.
A Chinese given name Bin opening a name in a Malaysian list reads as the family's particle under strict ms. Accept, as strict's single-origin premise?
Should cheikh and sultan be read from the counts (tools/name_usage.py) before the readings are added?
changed the title [-]Should `Cheikh` and `Sultan` stay given names under a strict Arabic or Malay choice? (`Cheikh Mansour` under strict `ar` gives title `Cheikh`, no family)[/-][+]Keep `Cheikh` and `Sultan` as given names under a strict Arabic or Malay choice (`Cheikh Mansour` under strict `ar` gives title `Cheikh`, no family)[/+]on Nov 21, 2026
Decided 2026-11-21: closed with #1521. The pairs left on the reviewed list stay as they read until a misread name is reported.
#1521 gave cheikh a name reading in ar.toml and sultan one in ms.toml, the two words that measurably lost names under a strict choice (12 ORCID records fixed under strict ar, 1 under strict ms, none broken). What the issue's other pairs showed:
Group
Pairs
Result
Measured, nothing moved
nl, fr, ca, ga
0 of 822 records read differently without the gate
Measured, the ungated reading is right
ben under ar; a few under it, fil, pt-BR
re-taken on master 81a24221 with the gate restored: ben 62, bin 6, it 7, fil 2, pt-BR 1 records moved, none fixed. Nearly all are family-first names filed with the boxes that way round, which strict and the gate both misread
the samples hold the words too rarely to say anything
The issue's open questions
The unmeasured pairs are not decided either way. They stay in STRICT_UNGATED (tests/v2/test_reading_index.py), which fails when a word joins or leaves it, so none can change unreviewed.
Bin opening a Chinese given name under strict ms (Bin Qiaoyu) is accepted: a strict choice is for data known to be of one origin, as docs/locales.rst says. A Philippine given name La Reina under strict fil is not answered by that premise and is left as read, on 2 records.
The counts were taken before the readings were added, and are recorded on the two entries.
If a strict choice misreads a name of its own language, the fix is #1521's: a name reading for the word in that language's file. Until then a caller can add it:
fromnameparserimportLexicon, Locale, parser_forfil=Locale(code="fil", lexicon=Lexicon.empty().add("la", kind="given"), languages=("fil",))
parser_for(fil, strict=True).parse("La Reina Santos")
# given 'La', middle 'Reina', family 'Santos' (family 'La Reina Santos' without the reading);# 'Maria de la Cruz' keeps family 'de la Cruz'
enhancementlocale-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
[-]Should `Cheikh` and `Sultan` stay given names under a strict Arabic or Malay choice? (`Cheikh Mansour` under strict `ar` gives title `Cheikh`, no family)[/-][+]Keep `Cheikh` and `Sultan` as given names under a strict Arabic or Malay choice (`Cheikh Mansour` under strict `ar` gives title `Cheikh`, no family)[/+]Keep Cheikh and Sultan as given names under a strict Arabic or Malay …
Merge master (#1521) into feat/ra-name-readings
derek73 commentedon Nov 22, 2026
Decided 2026-11-21: closed with #1521. The pairs left on the reviewed list stay as they read until a misread name is reported.
#1521 gave
cheikha name reading in ar.toml andsultanone in ms.toml, the two words that measurably lost names under a strict choice (12 ORCID records fixed under strictar, 1 under strictms, none broken). What the issue's other pairs showed:nl,fr,ca,gabenunderar; a few underit,fil,pt-BR81a24221with the gate restored:ben62,bin6,it7,fil2,pt-BR1 records moved, none fixed. Nearly all are family-first names filed with the boxes that way round, which strict and the gate both misreadgd,hr,sk,sl,hi;marquis,marquise,tho,st,sushri;pt,pt-PT;my's ranksThe issue's open questions
STRICT_UNGATED(tests/v2/test_reading_index.py), which fails when a word joins or leaves it, so none can change unreviewed.Binopening a Chinese given name under strictms(Bin Qiaoyu) is accepted: a strict choice is for data known to be of one origin, as docs/locales.rst says. A Philippine given nameLa Reinaunder strictfilis not answered by that premise and is left as read, on 2 records.If a strict choice misreads a name of its own language, the fix is #1521's: a name reading for the word in that language's file. Until then a caller can add it:
🤖 Generated with Claude Code