Repository navigation
Read Qari, Moulana, Alhaj and Alhajj opening a name as titles (#1469) - #1498
Merged
Merged
Conversation
Qari, Moulana, Alhaj and Alhajj, the religious titles written before a name in Pakistan and Bangladesh, are titles by default in ar.toml: every name counted that opens with one is the title. Hafiz, Hafez, Haji and the spelling Maulana are left out, borne as given names in Pakistan, Indonesia, Tanzania, Iran and Egypt; their title reading wants a choice of Urdu or Bengali that no pack makes. Syed, Mian, Chaudhry and Makhdoom stay name words. decisions/indic-honorifics' 2026-11-19 #1469 entry holds the counts and the measured moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…yline, rows locales.BN already turns on bn.toml's default = false readings, so the entry no longer says no pack could carry Hafiz, Hafez, Haji and Maulana; it says which choice would and that neither is written here. The measured moves now say the 15 two-word names read the remaining word as the family, one ORCID Alhaj opener is a byline writing the family name first, maulana as a phrase-only title would move a style-led name, and a strict choice drops ar.toml as it does for mufti. Corpus names in the entry are replaced by invented shapes. New rows: a one-word name and a full name before a comma, the given part's last word, a title behind a kept Hafiz, and Hafez. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed row names The Standing line now carries the surname-first byline the Log records; the names left with one name word are counted as measured (14: 12 of two words, 2 behind Mr); and the entry and the case rows no longer quote a corpus record or a name part that is one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both branches added a 3.2 section to docs/migrate.rst; both are kept. ar.toml merged cleanly, and a fresh vocabulary build was byte-identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Relates to #1469 (it stays open for whether a Bengali or Urdu choice reads Hafiz, Hafez, Haji and Maulana as titles).
What changes
Qari,Moulana,AlhajandAlhajjare titles by default, innameparser/vocab/ar.toml:qariandmoulanaas religious titles, asmuftiis;alhajandalhajjas styles, ashajjiand bn.toml's আলহাজ্ব are.parse("Qari Ahmed Khan")gives titleQari, givenAhmed, familyKhan, where 1.4.0 through 3.1.0 gave givenQari, middleAhmed.Hafiz,Hafez,Hajiand the spellingMaulanaare left out. Each is borne as a given name in Pakistan, Indonesia, Tanzania, Iran or Egypt. Their title reading is right in Pakistani, Bangladeshi and Malaysian lists and wrong as a default, so noexcludedentry is written (the vocabulary README defines that as wrong in every language). Adefault = falsereading in bn.toml would be turned on bylocales.BN, or one in ur.toml by a caller's choice ofur. Neither is written here.Syed,Mian,ChaudhryandMakhdoomstay name words, by their counts.Hafiz,HajiandMaulanaopening a name read as titles under a Bengali or Urdu choice? (Hafiz Ahmed Khangives givenHafiz) #1469 entry, with its Standing and Open lines), case rows, adocs/migrate.rst"Changed in 3.2" entry with doctests, and one release-log bullet.The counts
ORCID's 2025 extract, given box / family box:
qarimoulanaalhajalhajjhafizmaulanahajihafezsyedOpeners. Every name counted that opens with one of the four titles is the title, save one ORCID byline that writes the family name
Alhajfirst.Box agreement.
config_diff.py score, per country, can't decide a title: filers type the honorific in the forename box. As a default title,hafizwould lower ORCID PK from 93.59 to 92.94 and PSC Pakistani from 94.27 to 93.35. The four titles cost at most 0.01 points in any group.Measured
tools/differential/measure.py --base <master>, 30 steps:No moves in the committed snapshot, CLDR and GND agreement, or any local corpus but four: FEC, ClinicalTrials.gov and my-candidates move nothing. The snapshot needs no re-record.
74 names move, every one the honorific going from the given name to the title:
qari53moulana, Pakistan's National AssemblyFourteen names keep a single name word, and it reads as the family (rules/H1).
Agreement. psc-individuals loses 10 records and orcid-researchers moves 3 (the forename box holds the honorific). JRC-Names now reads the spellings of 8 people differently, with and without the title.
Checks
jaextra (52,380).ruff,mypyandbuild.py --checkare clean.parity_check.pyfinds 0 of 687 rows reading otherwise under 1.4.0.feat(#1469)case rows fail on master.Reviews
locales.BNcan);Alhajbyline;maulana;ar.toml is also being edited for #1149; this branch is rebased on current master, and a later rebase regenerates the compiled files.
Merged with master after #1497
#1497 (Arabic titles, #1149) landed first and also edits
ar.toml, the compiled vocabulary,cases.py, the snapshot and the release log. Mastere0f698c8was merged in (b6402e35), not rebased:docs/migrate.rst: the one text conflict. Each branch added a 3.2 section, and both are kept.ar.toml,cases.py, the release log and the snapshot merged without conflicts. The compiled vocabulary was regenerated withtools/vocab/build.py, and the result was byte-identical to the merge. The snapshot did not need re-recording: this change moves no committed corpus name, and the snapshot test passes.jaextra), as do ruff and mypy,build.py --check, the Sphinx doctests (1,439, 0 failures) and README.measure.py --baseagainste0f698c8gives the figures recorded above, unchanged:🤖 Generated with Claude Code