Repository navigation
Read Imam, Timi, Sheriff and Effendi opening a name as the given name (#1206) - #1525
Merged
Merged
Conversation
…#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]>
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) andeffendi(tr.toml's style) each gain agivenreading, so each is a title only inside a title phrase.Imam Taufik Sasongkogives givenImam, middleTaufik, familySasongko, where 1.4.0 through 3.1.0 gave titleImam, givenTaufik.The readings, each with its counts and moves in its note:
imamandeffendiin id.toml: Indonesia's given boxes hold the most.timiin yo.toml, beside its title.sheriffin 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 ImamandDeputy Imamread titleChieforDeputy, givenImam.chiefanddeputyattach by kind (office, and military too forchief), which doesn't reach a religious title, so theirattachesnow names the wordimam.Sheriff Principal,Sheriff ClerkandSheriff Officer, the Scottish offices, write the qualifier after the head.sheriffnow attaches toprincipal,clerkandofficer.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 NottinghamandTimi of Edekeep the title through partners rules/H9 already reads.A listed phrase now holds
imamandsheriff, so a bare one opening a name reportstitle-or-name. No phrase holdstimioreffendi, 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:imamtimisheriffeffendimuftilamidoWhat moves
Measured against master
6ff048fewithmeasure.py --base(30 steps, none failed). Each move is counted by the word the name holds, and the fielded corpora's moves come fromlocal_agreement.py --base --list.imamtimisheriffeffendiBesides those:
The issue's figures, re-taken on current master:
imam:timi8 (8 in the issue's comment).sheriff14 (12 in the issue's comment).The other corpora:
timi13,imam5 andsheriff2, all given names after a family comma.The costs, accepted with the words.
imammoves 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.timimoves are each a person named Timi, so they are fixes.FAMILY, GIVEN.Kanteh Jallow, Sheriffgives givenSheriff, familyKanteh Jallow, asJohn Smith, Deanreads. An office written after the name hits this, so the release log and migrate.rst say so.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 Adebayoreads titleChief, givenTimi.The candidates
effendiis included. It has 45 Indonesian and Malaysian given boxes. It fixed 3 records and one Indonesian MP's name, and broke nothing.muftiis 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.lamidois 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
arand stricttrread 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 readsImam Taufik Sasongkoas titleImam, and a strict Turkish one readsEffendi Purnomo Sitorusas titleEffendi, as 1.4.0 through 3.1.0 read both by default.STRICT_UNGATEDin tests/v2/test_reading_index.py gainsar'simamandtr'seffendias reviewed entries: a caller choosing Arabic or Turkish alone has said the names are of that origin (docs/locales.rst).locales.ARstrict readsImamas 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).timiandsheriffkeep their gate under strictyoand stricten. An English choice moves noSheriffname 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,trandha, and underlocales.MS,AR,BN,HIandTR_AZ:Mr,Dr.,Chief,Deputy,High,Grand,The,HajiandAlhaji, beforeof, and ending the name with and without its period.The plain choices and the packs move the same names as the default, save
Haji Imam, which moves only underlocales.MSand a plainmschoice, whereHajiis a title andImambehind it is now the given name. The strict choices are the section above.Name matching
match_diff.py --basereports 0 of 691,064 rows moved. Nosame_asor 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
docs/design/decisions/H9-title-phrase.md: a Standing line and a dated entry, "2026-11-21 ShouldImamopening a name read as a given name, as it is in Indonesia and Nigeria, and not as a title? (Imam Nahrawigives titleImam, familyNahrawi) #1206".docs/design/rules/H9-title-phrase.md: examples for the phrases, the given names, and the religious and ruler Accepted bullets.docs/migrate.rst: a 3.2 entry with a doctest and the call that keeps 3.1's reading.chief'sattacheswas the worked example of a list property in docs/customize.rst, docs/migrate.rst and tests/v2/test_lexicon.py, so those now show the new list.sheriffas a title that is also a surname: root AGENTS.md's list, and decisions/vocabulary-exclusions' trailing-slot note.Tests
Imam Dr.,Sheriff Deputy,Effendi MahdiandChief Timimahdirow that usedImamas its plain non-partner title now usesMufti, which reads asImamdid there.arortrchoice andlocales.ARstrict read the title. The default, the plain choice,locales.AR,locales.MSand a strict choice keeping id.toml read the given name. Strictyoand strictenkeep their gate.chief's shipped list.id.tomlalone in a scratch copy, rebuilt, and 10 rows failed, including the strict test and the reviewed table. Then I reverted the twoattachesthere, andChief Imam,Sheriff Principaland theImamreport rows failed.Local runs, all passing:
build.py --check,familiar.py --checkparity_check.py(0 of 809)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 in77b4178c: three more phrases, the costs recorded, the GND andmufticorrections, 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