Repository navigation
Add four vocabulary spellings (Vanden, hyphenated ranks, 어 and 라, عبد's ى completions) and Shri under locales.HI - #1506
Merged
Merged
Conversation
derek73
force-pushed
the
feat/vocab-small-fixes-3-2
branch
2 times, most recently
from
November 20, 2026 23:49
6792ef4 to
b357201
Compare
…'s ى completions - nl.toml: vanden, a preposition and a given reading, as vander has (#1239). - en.toml: thirteen ranks written with a hyphen as military readings (#966); a split at the hyphen is declined (decisions/salutation-titles). - config/_ko_surnames.py: 어 and 라, hangul read as Korean at the cost of a foreign name in hangul (#1215; decisions/W1, with the removal recipe in docs/east-asian.rst). - ar.toml: the ى spelling of each ي-final completion of عبد, and المولي (#1337; decisions/P12). Each word's vetting is on its entry; the rules, decisions, release log, case rows, CJK corpus and snapshot move with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…itles (#979) es.toml academic readings written with their stops, so rules/T7's vocabulary Except keeps the run whole and it reads as the title at the head of a name. Kept apart from the other four fixes: letters spelling a degree are a person's initials too, and after a family comma or before a single surname they now lose the given name (Perez, M.A.P.), a cost the boxed corpora cannot count (decisions/H10, 2026-11-20; decisions/H6 gains a head note). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
derek73
force-pushed
the
feat/vocab-small-fixes-3-2
branch
from
November 20, 2026 23:56
b357201 to
d71c3a9
Compare
Both conflicts were lists grown at the same end (the 3.2 release-log bullets and the case table's last rows); both sides kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hi.toml's excluded:salutation becomes a default = false salutation reading written after_given, the shape shrimati's has, so a Hindi choice reads it as the title and the default and locales.BN leave it to position. Measured against the pack without the reading: 2,243 of in_sansad's 10,650 spellings gain the title, against 25 names broken, 21 of them filed records in populations a Hindi choice is not made for (decisions/vocabulary-model, 2026-11-20 #1192). Sri stays excluded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Record shri's after_given against H8's criterion in both decisions files, mark phase 3e's shri bullet superseded, sweep the restatements of its exclusion (vocabulary-exclusions, indic-honorifics, H6, hi.toml's notes, docs/locales.rst's pack table), restore H6's head note on lcp that the degree revert removed, swap two corpus names for invented ones, and add rows and a test for the shapes no test pinned: the three name orders and a strict choice, behind a title, around a family comma, dotted at the end, alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rules/H8 leaves out a salutation borne as a given name. The Lok Sabha roll writes the salutation before the given name after a family comma, or after a full name and a comma, both read as the title without the property; with it, 2 names read worse. The word records the refusal, and the decisions entry the measurement. Also: the pooled-count clause, one more corpus name swapped for an invented one, and the 211 figure counted as spellings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecipe 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.
Four small vocabulary fixes, each a spelling the parser read wrongly against a twin it already reads right, and
Shrias a title underlocales.HI. There are no parser code changes: each fix is a TOML entry or a Korean surname, rebuilt withtools/vocab/build.py.Closes #1239
Closes #966
Closes #1215
Closes #1337
Closes #1192
Relates to #979
The fixes
nl.toml:vanden, with aprepositionand agivenreading, asvanderhasPieter Vanden Broeck→ middle 'Vanden', family 'Broeck'en.toml:militaryreadings for thirteen ranks written with a hyphen (vice-admiral,rear-admiral,vice-marshal,air-marshal,chief-marshal,field-marshal,lieutenant-colonel,lieutenant-general,lieutenant-commander,major-general,brigadier-general,wing-commander,sergeant-major)Air Vice-Marshal Ann Reed→ given 'Air', middle 'Vice-Marshal Ann'config/_ko_surnames.py:어and라어수선→ family '어수선'ar.toml: theىspelling of each of the 21ي-final completions ofعبد, plusالموليسامر عبد القوى→ middle 'عبد', family 'القوى'hi.toml:shri's exclusion becomes adefault = falsesalutation, withoutafter_givenlocales.HI,Shri Ravi Kumar Verma→ given 'Shri', middle 'Ravi Kumar'The default parse and
locales.BNreadShrias before.Sristays excluded.#979: the dotted degrees were tried and dropped
The branch first listed
L.C.P.,L.A.E.,L.E.M.andM.A.P.ines.toml. That commit is reverted here (99f33c21), not force-pushed away. The cost falls on initials written as a dotted run, which rules/T7 reads right today:Perez, M.A.P.would read the degree and no given name.M.A.P. Pererawould lose its given initials.The fielded corpora compose each name given name first from its boxes, so they cannot count that cost. A
default = falsereading underlocales.ESwould only narrow who pays. The decline is recorded in decisions/H10 (2026-11-20 #979), and the same finding is posted on #979, which stays open.What each fix leaves out
Air Vice-Marshal,Vice-Admiral) read as a title like the spaced form? #966: a general split at the hyphen is declined. It would reach every hyphenated name holding a title word (Smith-Major). An unlisted hyphenated rank (Squadron-Leader) still reads as a name word.locales.HIreadShrias a title, asश्रीreads? (Shri Prakash Javadekargives givenShri) #1192:Srikeeps its exclusion. Its bearers are Indonesian and Sri Lankan given names, and turningShrion does not move it.locales.HIreadShrias a title, asश्रीreads? (Shri Prakash Javadekargives givenShri) #1192, noafter_given: rules/H8 leaves out a salutation borne as a given name, so a bareShriending the given part after a family comma stays a middle name (Verma, Ravi Shri), as its Devanagari does.Verma, Shri RaviandRavi Verma, Shri, which read the title anyway.excluded = { after_given = ... }.Accepted costs, recorded
라and어join the Korean surname list, so어기구reads family어, given기구? #1215: hangul is read as Korean, so a foreign name written in hangul that opens with라or어is now divided.dataclasses.replace(lexicon, surnames=lexicon.surnames - {"라"}).vandenbe a particle likevandeandvander? (Pieter Vanden Broeckgives middle 'Vanden', family 'Broeck') #1239: case repair writesVandenin lower case, exactly as it writesvanderandvandetoday. That question is listed below as a follow-up.locales.HIreadShrias a title, asश्रीreads? (Shri Prakash Javadekargives givenShri) #1192: under the pack, a person whose given name isShrior opens with it reads the salutation:Verma, Shrigives no given name, andShri Lal Mehragives given 'Lal'.locales.HIreadShrias a title, asश्रीreads? (Shri Prakash Javadekargives givenShri) #1192).Measurement
The four spelling fixes were measured with
uv run python tools/differential/measure.py --base <export of master cb5088a9> --jobs 4, while the degree commit was still on the branch. The degree moves are left out below; the revert removes them. 30 steps ran, none failed. Every moved name was read by hand.Air Vice-Marshalgains the titleعبدplus aىcompletion is now the family; 1 right: a member surnamed어Vanden, right. 15 foreign names in hangul (14라, 1어): 14 were wrong before as well, and 1, a regnal name of two words, was right and is now dividedVanden; 1 a Korean given name opening with어, wrong before and afterVanden(FEC's 33 capitals-only moves are the case repair above)Scored against the filed boxes (
local_agreement.py --base):Vandenrecords fixed.Vanden Xnames that the professional filer boxed withVandenin the given name; they read right now.Vandenas a middle name, a costvanderalready carries.Shriwas measured against the pack without the reading, on this branch over master758c2f8e:श्रीreads; 4 the one wordश्रीनारायण, a given name, now wrongShri, now wrongThat is about 2,250 fixed against 24 broken. 20 of the 24 are in populations a Hindi choice is not made for. The committed snapshot is byte-identical for this change: the default moves nothing.
Sweeps
vandenreads asvanderin every row.Air Vice-Marshal,Vice-Admiral) read as a title like the spaced form? #966 entry in decisions/salutation-titles lists.Shrireads asSmtin 102 rows: three orders, plain and strict choices, capitals, dotted spellings and every comma shape.Shriunder the three orders and a strict choice, since a case row cannot carry both a locale and a policy.sphinx-build -b doctest docs, mypy and ruff all pass.Docs amended in this PR
ىspelling, with an example.라and어join the Korean surname list, so어기구reads family어, given기구? #1215.ىmatchيin a vocabulary word? (الدكتور علىagainstالدكتور علي) #1337.Air Vice-Marshal,Vice-Admiral) read as a title like the spaced form? #966, with the decline.locales.HIreadShrias a title, asश्रीreads? (Shri Prakash Javadekargives givenShri) #1192 reversing phase 3e's exclusion;shribullet marked superseded.shri;lcp, true again after the revert.Shriunder the Hindi pack, with a doctest.Reviews
Shrichange; it found the revert an exact inverse and three stale texts, now fixed.Shrichange; its coverage gaps are now covered (name orders, a strict choice, the dotted trailing and empty-head shapes, the rotators).Shriprose, checked against parses.Shrichange: seven findings, all fixed ind90597d7;d90597d7itself, which measured thatafter_givenonshrifixed nothing and broke 2 names;892710d4drops it;892710d4: its figures reproduce; it corrected a person count, the one-name figure and a missing recipe line, applied ina2bee22ffrom its own measurements.Follow-ups
vande,vanderandvandenare all lower-cased by case repair. Whether they take R12'scapital_openingis one question for all three.alias_marker_behind_a_maiden_marker_left_a_wordis labeledparitybut 1.4.0 reads it otherwise (parity_check.py).🤖 Generated with Claude Code