Skip to content

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

Closed

Description

@derek73

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:

>>> ar = Locale(code="ar", lexicon=Lexicon.empty(), languages=("ar",))
>>> parser_for(ar).parse("Cheikh Mansour")
given='Cheikh', family='Mansour'
>>> parser_for(ar, strict=True).parse("Cheikh Mansour")
title='Cheikh', given='Mansour'

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.

  1. Add a given reading for cheikh to ar.toml and for sultan to ms.toml, and take both off STRICT_UNGATED.
  2. Record the other pairs measured as wanted: under strict, the word is the particle.

Open:

  1. 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.
  2. 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?
  3. Should cheikh and sultan be read from the counts (tools/name_usage.py) before the readings are added?

Source: docs/design/vocabulary-model-rfc.md, "The derived markers under strict".

Activity

  1. self-assigned this
    on Nov 19, 2026
  2. added
    vocabulary
    titles
    locale-packs
    and removed on Nov 19, 2026
  3. 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
  4. added this to the 3.2 milestone on Nov 22, 2026
  5. derek73 commented on Nov 22, 2026

    @derek73
    OwnerAuthor

    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
    Not measured gd, hr, sk, sl, hi; marquis, marquise, tho, st, sushri; pt, pt-PT; my's ranks the samples hold the words too rarely to say anything

    The issue's open questions

    1. 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.
    2. 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.
    3. 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:

    from nameparser import Lexicon, Locale, parser_for
    fil = 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'

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementlocale-packstitlesvocabulary

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions