Skip to content

Read Imam, Timi, Sheriff and Effendi opening a name as the given name (#1206) - #1525

Merged
derek73 merged 5 commits into
masterfrom
feat/h9-imam-timi-sheriff-1206
Nov 22, 2026
Merged

derek73 merged 5 commits into
masterfrom
feat/h9-imam-timi-sheriff-1206

Conversation

@derek73

@derek73 derek73 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Closes #1206

An H9 batch (rules/H9, the title phrase: titles that are also given names). imam (ar.toml's religious title), timi (yo.toml's ruler of Ede), sheriff (en.toml's office) and effendi (tr.toml's style) each gain a given reading, so each is a title only inside a title phrase. Imam Taufik Sasongko gives given Imam, middle Taufik, family Sasongko, where 1.4.0 through 3.1.0 gave title Imam, given Taufik.

The readings, each with its counts and moves in its note:

  • imam and effendi in id.toml: Indonesia's given boxes hold the most.
  • timi in yo.toml, beside its title.
  • sheriff in en.toml, beside its office: the given name is written in English where it is borne (Nigeria, Ghana, Sierra Leone, The Gambia).

The phrases

Five phrases were lost under the gate alone. I found two while listing the words' phrases before adding the readings, and the reviews found three more. Each now has a partner:

  • Chief Imam and Deputy Imam read title Chief or Deputy, given Imam. chief and deputy attach by kind (office, and military too for chief), which doesn't reach a religious title, so their attaches now names the word imam.
  • Sheriff Principal, Sheriff Clerk and Sheriff Officer, the Scottish offices, write the qualifier after the head. sheriff now attaches to principal, clerk and officer.

Re-measured after the review's phrases against master 9ec1fcb4: every figure below is unchanged, since no corpus name holds them.

Grand Imam, Imam of the Mosque, High Sheriff, Deputy Sheriff, Sheriff of Nottingham and Timi of Ede keep the title through partners rules/H9 already reads.

A listed phrase now holds imam and sheriff, so a bare one opening a name reports title-or-name. No phrase holds timi or effendi, so they report nothing.

Counted first

tools/name_usage.py ... --boxes --country ID --country NG --country GH --country TR --country MY --country GM --country SL, 2026-11-21:

Word ORCID given boxes Other given counts Decision
imam 1,392 (Indonesia 567, Bangladesh 52, Nigeria 19) US SSA 24, Wikidata 7 decided
timi 51 (Nigeria 7) US SSA 654, Wikidata 24 decided
sheriff 129 (Nigeria 25, Ghana 5, Sierra Leone 3, The Gambia 2) US SSA 102, Wikidata 6 decided
effendi 85 (Indonesia 35, Malaysia 10) Wikidata 5 candidate, included
mufti 125 (Indonesia 53, Pakistan 6) Wikidata 0 candidate, left out
lamido 6 (Nigeria 3) Wikidata 1 candidate, left out

What moves

Measured against master 6ff048fe with measure.py --base (30 steps, none failed). Each move is counted by the word the name holds, and the fielded corpora's moves come from local_agreement.py --base --list.

Word PSC fixed ORCID fixed PatentsView fixed Broken
imam 19 36 1 0
timi 8 8 0 0
sheriff 14 8 0 0
effendi 0 1 1 0

Besides those:

  • Wrong before and after. 13 records read wrong both ways now hold the word as the given name: ORCID 12 and PSC 1, most with the whole name typed into one box.
  • Typed into the given-names box. 15 records with the word in the given-names box now read it as the given name, where the scorer had counted them apart as titled (ORCID 14, PatentsView 1).

The issue's figures, re-taken on current master:

  • imam:
    • PSC 19 (19 in the issue)
    • FEC 5 (5)
    • ctgov-officials 3 (3)
    • jrc-names 53 (53)
    • Indonesia's parliament lists 8 (7; one more since its fetch)
    • ORCID 59 names moved, 36 of them records brought to agree
  • PSC timi 8 (8 in the issue's comment).
  • PSC sheriff 14 (12 in the issue's comment).

The other corpora:

  • opensanctions-parliaments. Its other chambers move nothing. That includes Malaysia's, Pakistan's, Egypt's, Somalia's, Turkey's and India's. The corpus holds no Nigerian list, so the issue comment's Nigerian figures had no list here to re-take.
  • fec-individuals: 20 moved. timi 13, imam 5 and sheriff 2, all given names after a family comma.
  • ctgov: 7 moved, officials 4 and contacts 3.
  • nepal-candidates: 1 moved.
  • Spelling pairs. jrc-names gains 6 persons that now read alike, and nepal-candidates 1 pair, with none now apart.
  • CLDR and GND agreement. GND gains one title agreement, which is re-recorded.

The costs, accepted with the words.

  • A cleric written with the bare title before his name reads it as the given name. That is most of jrc-names' 53 imam moves and one of the committed corpora's 2. It is the cost rules/H9's Accepted bullet for a religious title written bare already names. The other committed name is a GND record whose title field now agrees.
  • The ruler of Ede written bare, which no corpus measured. jrc-names' 7 timi moves are each a person named Timi, so they are fixes.
  • The shapes every title that may be a given name already reads this way, found by the reviews. The local corpora hold almost none of these: FEC's 12 names ending in the word after a comma are all FAMILY, GIVEN.
    • The word alone after a full name and a comma reverses the name: Kanteh Jallow, Sheriff gives given Sheriff, family Kanteh Jallow, as John Smith, Dean reads. An office written after the name hits this, so the release log and migrate.rst say so.
    • Past a second comma it is a suffix. That was 1.4.0's reading.
    • Opening the part before a family comma it is not peeled. Also 1.4.0's reading.
    • A title after it that it does not attach to leaves it a name word: Imam Dr. Musa Bello, Sheriff Deputy John Smith.
    • Effendi, a style, is no longer the partner of a word after it that may be a given name: Effendi Mahdi Karimi.
    • Chief Timi Adebayo reads title Chief, given Timi.

The candidates

  • effendi is included. It has 45 Indonesian and Malaysian given boxes. It fixed 3 records and one Indonesian MP's name, and broke nothing.
  • mufti is left out. Its given name is Indonesian alone. Before a name in South Asia and the Arab world it is the cleric's title, which these corpora barely sample. The spike's moves were small and leaned to gains: 5 records brought to agree, 2 more given boxes, a surname and an MP's given name. Against them: 3 jrc-names clerics, and 4 records read wrong both ways, several of them given boxes opening with a scholar's title. That is too few to read a South Asian cost from, so it waits for a measure that holds one.
  • lamido is left out. It has 6 ORCID given boxes and 1 Wikidata bearer. Its 4 corpus moves are two people bearing it as a name, too few to stand a reading on.

Strict choices and packs

  • Strict ar and strict tr read the title again. imam's title is ar.toml's, effendi's is tr.toml's, and both given readings are id.toml's. So a strict Arabic choice reads Imam Taufik Sasongko as title Imam, and a strict Turkish one reads Effendi Purnomo Sitorus as title Effendi, as 1.4.0 through 3.1.0 read both by default.
  • That is intended, and recorded. STRICT_UNGATED in tests/v2/test_reading_index.py gains ar's imam and tr's effendi as reviewed entries: a caller choosing Arabic or Turkish alone has said the names are of that origin (docs/locales.rst).
  • locales.AR strict reads Imam as the title too. Everything else reads the given name: the plain choices, locales.AR, locales.MS, and a strict choice that keeps id.toml (ar+id).
  • timi and sheriff keep their gate under strict yo and strict en. An English choice moves no Sheriff name it did not move by default.

Grid

Every word was read under three name orders, under each plain and strict choice of ar, id, ms, yo, ff, en, tr and ha, and under locales.MS, AR, BN, HI and TR_AZ:

  • Comma shapes. A full name, one word, a family comma with the word alone after it and at its head, an empty head, a suffix comma, and a third part.
  • Positions. Behind Mr, Dr., Chief, Deputy, High, Grand, The, Haji and Alhaji, before of, and ending the name with and without its period.
  • Spellings. Title case, capitals, lower case, a hyphen and a period.

The plain choices and the packs move the same names as the default, save Haji Imam, which moves only under locales.MS and a plain ms choice, where Haji is a title and Imam behind it is now the given name. The strict choices are the section above.

Name matching

match_diff.py --base reports 0 of 691,064 rows moved. No same_as or familiar reading is added, but its draw holds no pair built on these words, so the 0 vouches only for what it draws.

The issue's third question

A lone title word read as a title with nothing else (Maharani) is a rule, not vocabulary, and is left to an issue of its own. Nothing else of #1206 stays open.

Docs

Tests

  • Case rows, for each word where it moves:
    • the head of a name, the word alone, a salutation, a family comma, an empty head, after a full name and a comma, a third comma part, and the part before a family comma
    • capitals, lower case, the period at the head, and a family-first order
    • every partner phrase above, and the word ending a name
    • the costs: Imam Dr., Sheriff Deputy, Effendi Mahdi and Chief Timi
    • rows that read as 1.4.0 did, labelled parity
  • The mahdi row that used Imam as its plain non-partner title now uses Mufti, which reads as Imam did there.
  • Strict-choice tests: a strict ar or tr choice and locales.AR strict read the title. The default, the plain choice, locales.AR, locales.MS and a strict choice keeping id.toml read the given name. Strict yo and strict en keep their gate.
  • The lexicon list test builds its own lexicon instead of pinning chief's shipped list.
  • Negative controls. I reverted id.toml alone in a scratch copy, rebuilt, and 10 rows failed, including the strict test and the reviewed table. Then I reverted the two attaches there, and Chief Imam, Sheriff Principal and the Imam report rows failed.

Local runs, all passing:

  • the full suite, serial included
  • 3.15
  • ruff, mypy, build.py --check, familiar.py --check
  • parity_check.py (0 of 809)
  • the sphinx and README doctests

Review

Review-toolkit aspects run on the first commit: code (pr-review-toolkit:code-reviewer), tests (pr-review-toolkit:pr-test-analyzer) and design docs (design-docs-reviewer). Their findings are fixed in 77b4178c: three more phrases, the costs recorded, the GND and mufti corrections, the rules/H9 religious bullet's premise, about 20 rows and the parity relabels.

That fix commit was reviewed again (pr-review-toolkit:code-reviewer). It found four smaller issues, fixed in the next commit: the GND wording, a missing row for a title after the word, the phrase list, and two strict-test rows that proved nothing.

Master was merged in twice, #1524 and then #1523 (ab), with merge commits; the compiled files were rebuilt and the checks re-run each time.

🤖 Generated with Claude Code

derek73 and others added 2 commits November 21, 2026 22:50
…#1206)

An H9 batch (titles that are also given names): imam and effendi gain
given readings in id.toml, timi in yo.toml and sheriff in en.toml, each
with its counts and moves in its note, so each is a title only inside a
title phrase. chief attaches to imam (Chief Imam) and sheriff to
principal (Sheriff Principal), the two phrases the gate alone lost.
mufti and lamido stay titles, their counts in the decisions entry.

A strict Arabic choice reads imam, and a strict Turkish one effendi, as
the title again, since id.toml is not chosen: STRICT_UNGATED gains ar's
imam and tr's effendi, reviewed and intended.

Docs: decisions/H9's dated entry and Standing line, rules/H9 examples,
migrate.rst's 3.2 entry, the release log, case rows, and the snapshot,
rules corpus and GND agreement records re-recorded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@derek73 derek73 added this to the 3.2 milestone Nov 22, 2026
@derek73 derek73 added enhancement vocabulary Fixed by a word-list entry: per-word vocabulary and language packs titles Titles and honorifics (rules/H) labels Nov 22, 2026
@derek73 derek73 self-assigned this Nov 22, 2026
derek73 and others added 3 commits November 21, 2026 23:25
…r tests (#1206)

The code and test reviews found three phrases the gate lost besides the
two the first commit gave a partner: deputy now attaches to imam
(Deputy Imam), and sheriff to clerk and officer (Sheriff Clerk, Sheriff
Officer). Re-measured against 9ec1fcb: every figure unchanged.

decisions/H9's entry now records the shapes the words read as every
title that may be a given name reads, which no corpus measures: the
word after a full name and a comma reverses the name, past a second
comma it is a suffix, before a family comma it is not peeled, a
title after it that it does not attach to leaves it a name word, and
effendi, a style, is no longer a partner. It corrects the GND null
(one committed name now agrees with its record) and the mufti tally,
and rules/H9's religious bullet now says what its premise rests on.
The release log and migrate.rst state the comma reversal.

Tests: rows for each of those shapes, the word alone, in lower case,
with its period at the head and under a family-first order; the two
trailing rows and the two comma rows that match 1.4.0 relabelled
parity; the strict test reads locales.AR strict, locales.MS and
locales.TR_AZ, and a strict yo and en choice keep their gate; the
lexicon list test builds its own lexicon instead of reading chief's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t test (#1206)

The GND note now says only the title field of that committed name agrees
with its record; the phrase list names sheriff's clerk and officer, and
chief's kinds are stated. A row for a title after the word that it does
not attach to ('Imam Dr. Musa Bello', 'Sheriff Deputy John Smith'), and
the 'Imam Mahdi Karimi' row renamed for what it holds. The strict test
drops locales.TR_AZ, which chooses no language, and the strict
locales.MS row, where neither word has a title reading to gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…heriff-1206

# Conflicts:
#	tests/v2/test_cases.py
#	tests/v2/test_reading_index.py
@derek73
derek73 merged commit af58ca0 into master Nov 22, 2026
14 checks passed
@derek73
derek73 deleted the feat/h9-imam-timi-sheriff-1206 branch November 22, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement titles Titles and honorifics (rules/H) vocabulary Fixed by a word-list entry: per-word vocabulary and language packs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should Imam opening a name read as a given name, as it is in Indonesia and Nigeria, and not as a title? (Imam Nahrawi gives title Imam, family Nahrawi)

1 participant