Repository navigation
Add the Hindi and Bengali packs, locales.HI and locales.BN (3.0, 3e) - #958
Merged
Merged
Conversation
Two vocabulary packs, each nothing but its choice of language, for #345's romanized Indic titles: hi.toml turns on smt, shrimati and shriyut, and bn.toml smt, shrimati and adhyapak, each a `default = false` reading, so `Smt Nirmala Sitharaman` reads title `Smt` under either pack. No default parse moves. shri and sushri stay out, measured: shri opens given names in every population that writes it (198 of ORCID's given boxes; turned on it broke 20 filed names across PSC, ORCID, PatentsView and FEC and fixed none), a clash in the pack's own language that neither prefer nor strict settles; sushri is an Odia given name, left for strict. Its exclusion keeps shri's counts. The CLDR and native-script locale views measure both packs (unchanged agreement, recorded). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The packs' titles are read wherever the title vocabulary is, so a dotted spelling moves ending the name (rules/H5) and a word before a family comma moves (rules/H6), adhyapak's family-name cost included; rotators cover both slots. The Recompute bullet names FEC's command and the tree that was measured (the exclusion removed first, bn.toml too); shri's 198 openers include 52 lone ones; the RFC records 3e as landed; 3d's श्री question is answered; Shreemati joins the Open; the pack docstrings no longer name shri. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 3d question's answer names the CLDR renderings it rests on (hi, kok, mr) and says bn's is unmeasured; the dotted spellings' moves are named by site (H5, H6, H8, a period-joined chunk), H2 reading the rest already; the two nepal-candidates moves that leave no given name or take a glued token are stated; shrimati is weighed against its two name bearers; each "none" says the population held no row with the words; NPPES's SMT credential, read as the title after a comma under the pack, is an accepted cost on smt's note; the contributor checklist lists hi and bn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…itles From the second-round review: the Standing criterion names the case of a word with no measured leading use (shriyut) or only family-name bearers (adhyapak), each with its own bullet; the dotted spellings' sites come from a sweep of comma shapes, the part past a second comma (rules/C2) among them; SMT's cost covers every comma part holding it; shrimati's name side counts one person; Srimati's Open gives both sides of its count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the third-round review: the Standing criterion counts persons pooled across the populations measured, and decides only the words a pack's phase lists, so Shreemati and Srimati stay open; shrimati's bullet cites it as stated, with ORCID's split alone; the dotted sites name the empty head (rules/C15) and a bracketed trailing word, and a rotator holds the empty head. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 31, 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.
Phase 3e of #753: two vocabulary packs for #345's romanized Indic titles. Each is nothing but its choice of language, with no
DEVIATES(the 3d pattern).What ships
locales.HIturns onsmt,shrimatiandshriyut(hi.toml,salutationreadingsdefault = false,after_givenlike their Devanagari spellings).locales.BNturns onsmt,shrimati(bn.toml, the same readings) andadhyapak(academic,default = false).parser_for(locales.HI).parse("Smt Nirmala Sitharaman")gives titleSmt, givenNirmala. 1.4.0 through 2.8.0, and the default, give givenSmt, middleNirmala._compiled.pyis current and the committed snapshot is unchanged.Left out, measured
shri. Its exclusion stays, with the counts.Shri, nearly all given names (Shri Kant,Shri Lakshmi; 52 holdShrialone).BANGALEY, SHRIlost its given). The only fix anywhere was jrc-names'Shri Dharmendra Pradhan.givenreading plus the title phrase, as default work), left Open.sushri. 14 of ORCID's 16 openers are Odia given names. It is left for strict, with no reading written: a plainhichoice would turn adefault = falsereading on for exactly the data that holds those names.givenreading ofश्रीin hi.toml/bn.toml): answered no. A Hindi or Bengali choice wants the salutation.Moves under the choices
Measured 2026-10-30 on b57468d plus this change, with
--basea detached master checkout.hi+hi_Latn31/48 andbn14/24 both ways. The native-scripthi-in(60/60) andbn-in/bn-bd(40/40) are unchanged too. Records gain the rows.Shrimati, plusSmt.Nagiya, accepted).श्रीमति(short i), which hi.toml does not list (Open).smt,shrimati,shriyutoradhyapakas a word; nepal-candidates' 17 rows are the only ones any source holds.Shrimati KushwahaandShrimati Shettyread with no given name.SMTcredentials read as the title in any comma part holding them (Jane Doe, SMT,Jane Doe, PhD SMT).shrimatiships, weighed: it leads as the title in all 16 nepal-candidates romanizations (by their Devanagari), against 1 ORCID person bearing it as a given name.shriyutandadhyapakship with no measured leading use: no bearer of either opens a name (adhyapak's 17 bearers are all family names, written last). Both are admitted on their native spellings' title readings.The full record and recipe are in the 2026-10-30 phase 3e entry of
docs/design/decisions/vocabulary-model.md.Also
cldr_agreement.pymapshi,hi_Latn→ HI andbn→ BN, plus the native stratahi-in,bn-inandbn-bd.docs/locales.rst(table, a "Romanized Indic titles" subsection) and the README/localesavailable()doctests.nameparser/vocab/AGENTS.md: count the boxes a title candidate opens, not only the boxes holding it.adhyapak's cost, the Recompute recipe, the RFC status line,Shreematiin the Open.श्रीanswer (bnunmeasured);shrimatiweighing and the population behind each null;SMTcost;hi/bnadded to the contributor checklist.SMT's cost covering every comma part that holds it;Srimati's count.Checks
uv run pytest,-n0 -m serial,mypy,ruff,sphinx-build -b doctestandpython -m doctest README.rst: all pass.🤖 Generated with Claude Code