Repository navigation
Read Arabic titles written short, and give Arabic script no initials (#1149) - #1497
Merged
Merged
Conversation
…1149) The Arabic script takes a row in the script-property table writing no initials, decided from usage against CLDR ar's patterns: ORCID's 6,291 Arabic-script names write every opening letter with a full stop as a title. د., أ., م., أ.د., أ.م.د., م.د. and م.م. are listed as titles in ar.toml (the alif without its hamza too), replacing the exclusion that refused د. as a letter swallowing initials, with the ranks Egypt's parliament writes (اللواء, لواء, المستشار, المستشارة, السفيرة) and الاستاذ. initials() gives nothing for an Arabic-script word and the name match reads its letter as a word, as for Thai and Burmese. rules/T8 counts an Arabic letter's combining marks, in its gate and on both sides of the stop, and a joiner between two letters of the name after it. The slash (د/) is measured and left open; the bare letter and the glued form follow from the listing. decisions/script-properties records the CLDR table, the lists, the moves and the costs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
derek73
added a commit
that referenced
this pull request
Nov 20, 2026
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>
derek73
added a commit
that referenced
this pull request
Nov 20, 2026
This was referenced Nov 20, 2026
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 #1149 (question A, the slash, is measured here and left open)
What changes
The names are invented, of the shapes read.
_policy._SCRIPT_PROPERTIES, Umbrella: one table of which scripts have case and which write initials (ကြည် ကြည် ဌေးgaveinitials()က. က. ဌ.) #1256), as Thai and Burmese have. A letter with a full stop is no initial to the parse (rules/T5's veto),initials()gives nothing for an Arabic-script word (rules/R7), and the name match reads a single letter as a word. The row covers Persian and Urdu, a row being per script.د.,أ.andم.are listed inar.toml, withأ.د.,أ.م.د.,م.د.andم.م., and the alif without its hamza (ا.,ا.د.,ا.م.د.), replacing theexcluded:academicentry forد. They read written with or without the full stop, glued to the name (rules/T8), and with their letters spaced (أ. م. د.).اللواء4 andلواء2 (military);المستشار1,المستشارة1 andالسفيرة1 (office);الاستاذ(الأستاذwithout the hamza) 1 in the parliament list and 10 in ORCID.أ.محمدdivides as the composed one does. The name after the stop admits a zero-width non-joiner or joiner between two letters, as Persian spells a name (د.محمدرضا).tests/v2/test_script_properties.py) took Arabic as its caseless script with no row. It now takes Hebrew, and its recorded control (11) holds.Arabic script and initials: decided from usage, against CLDR
CLDR, by the Standing recipe (cldr
c0b65ae3, the Arabic comma added to the copy test's commas):en'sarfaurThe lists measured say the opposite:
orcid-researchers)د.190,أ.15,م.11,ا.5), 23 later; 42 bare letters opening itjrc-namesMeasured usage decides where it contradicts CLDR's patterns (decided 2026-11-19); decisions/script-properties' Standing line is amended to say so. Persian and Urdu rest on thin evidence and are an Open line there.
The costs, recorded in decisions/script-properties:
و., which is also the connective "and", joins its neighbours:جورج و. بوش→ given 'جورج و. بوش', reported given-or-family. No list writes that shape (0); a case row pins it.علي ح.م.→ title 'ح.م.', where master read given 'علي'); one holding none stays a name word.اللواء / X) leaves/as the given name, where master read the title word as the given name. Both readings are wrong; 14 of the parliament's names and 1 of ORCID's read so now. Proposal A would take the slash out.د.محمد رضا) leaves the word whole as the title, asDr.Jean Smithread on master; a case row pins it.The three open questions, measured
A — the slash: measured, not built. A listed title written with a slash for its full stop stays the given name today (
د/ منى أحمد→ given 'د/';Dr/ John Smith→ given 'Dr/').Where it opens a name, by list:
X/ wordX/wordX / wordorX /wordد34,dr18,prof17,أ.د9,دكتور5,الدكتور4,اللواء4,م3,لواء2.Lama/inside a name) would not move under a reading confined to the opening title run.MD/PhD,M.D/Ph.D; 1,468 in ClinicalTrials.gov),OTR/L, the Malaysiana/l,a/pands/o(173 across the lists, which Shoulda/l,a/pandanakopen the family name asbindoes? (KUMAR A/L RAJAN NAIDUgives middleA/L RAJAN) #1468 reads),c/o,A/Prof,A/S, and(UTC/GMTlabels.X/,X/word,X / word) reads as that title, the slash dropped as a separator.A/Profopens withA.B — the bare letter: settled by the listing. The fold leaves the bare letter, so listing
د.listsد. Every bare Arabic letter opening a name is a title: ORCID 51 (names and credit lines), the parliament list 16. The only others arejrc-names' 5 cut-offد آل خليفة, which are not names either way.C — glued: settled by rules/T8.
Dr.John Smithalready reads titleDr.(T8).د.أحمدdivides onceدis listed, since T8 reads a listed one-letter title of a script without case. ORCID writes the Arabic glued form 217 times and the Latin one 1,348.Measured against master
667828ae(measure.py --base)initials()views move and no parse field; the CLDR, GND and Wikidata native records do not move.orcid-researchers: 7,018 entries move, 6,203 ininitials()alone, 814 reading a title and 1 an ambiguity alone.jrc-names: 17,070 entries move, 5 reading a title (the cut-off fragments).initials()views. Every other local corpus moves nothing.match_diff.py --base: 0 of 690,426 rows move; its draw holds no Arabic-script pair with a letter and a full stop, sotests/v2/test_match.pyholds the match's move (فؤاد عليagainstف. عليnow conflicts).suggest_measure.py --base: no cell moves; a group of Arabic names each a word and a letter, which suggested family-first on master, suggests no change (decisions/group-suggestion).Also changed
docs/languages.rstgains an "Arabic-script names" section with doctests.docs/migrate.rstgains a 3.2 entry with the removal recipe.docs/locales.rstno longer namesد.among the held-back entries.ჯეკ MAgives family '' and suffix 'MA', whereمحمد MAgives family 'MA') #1222 bullets (head notes).tests/v2/test_script_properties.pytakes Hebrew as its caseless script with no row, and_OTHER_QUESTIONSnames_ARABIC_MARKS.Checks
uv run pytestpasses on the rebased tree (52,638), and so doesuv run pytest -n0 -m serial.jaextra (52,606).uv run mypyanduv run ruff checkpass.sphinx-build -b doctest docs,sphinx-build -W -b html docsandpython -m doctest README.rstpass.tools/vocab/build.py --checkreports the compiled files current.parity_check.py: 0 of 683 rows read otherwise under 1.4.0.fix(#1149)row fails on master; theparityrows hold under 1.4.0.Reviews
The branch was reviewed as four commits, then squashed to one and rebased on master (
34771e2d, #1494 and #1496), the conflicts resolved by keeping both sides and the compiled vocabulary, rules corpus and snapshot regenerated:The first commit: pr-review-toolkit's code-reviewer, pr-test-analyzer, comment-analyzer and silent-failure-hunter, and the design-docs-reviewer. They found:
أ.glued to a name swallowed it into the title);The first fix commit applied them.
The first fix commit: code-reviewer. Its three findings (the dotted-run mechanism, a pin of the row's period column, the joiner cost) were applied in a second fix commit.
The second fix commit: code-reviewer. Its one wording finding was applied in its own suggested words.
The rebase resolution: code-reviewer.
type-design-analyzer was not run: the change adds no type.
🤖 Generated with Claude Code