Repository navigation
Read a wholly Burmese list with a strict choice of my; drop locales.MY's fragment (#1483) - #1489
Merged
Merged
Conversation
…Y's fragment (#1483) A strict choice of `my` reads Burmese syllables (San, Van, PE, EI) as name words by reading no other language's file, so the pack's removal list goes: locales.MY is the choice of `my` alone. my.toml copies en.toml's readings of the English ranks and Sir that Burmese lists write, default = false, so the strict choice keeps them while the default and the plain pack read as before. The docs give the strict choice for a wholly Burmese list, with its measured cost to other names, and nameparser/locales/AGENTS.md asks for a strict choice to be measured before a pack removes another language's readings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… marker, counts, test gaps Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cost Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 19, 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 #1483 (it stays open for Proposal B,
raas a name by default).This carries out the change decided on #1483 on 2026-11-19. Under a strict choice, a wholly Burmese list is read right without any removal list.
What changes
locales.MYis the choice ofmyalone. The Should a Burmese choice readUandDawas titles, and stopSanjoining the family? (Daw Aung San Suu Kyigives given 'Daw', family 'San Suu Kyi') #1231 fragment is dropped: the particle removals ofsan,la,le,do,da,du,te,diandvan, and the removal ofdo's credential. So isDEVIATES. The fragment was unreleased, so no caller is broken.parser_for(locales.MY, strict=True). It reads no other language's file, so Burmese syllables that are other languages' particles or credentials stay name words (Aung San Win,THEIN AUNG PE,Thein Aung Ra). It also readsMgas the given name, as ShouldMg, Maung written short, read as a given name? (Mg Mg Ayegives title 'Mg Mg') #1232 asks.nameparser/vocab/my.tomlcopies en.toml's English ranks andSir, so the strict choice keeps them. There are 21 words, each copied with all of en.toml's vocabulary readings and properties and writtendefault = false.lt's credential is copied with its rank: a choice that holds a reading of a word drops every other file's readings of it, and without the copy the plain pack readJohn Smith, LTas a title._compiled.pyandchanged_wordsare unchanged, and the code review found 0 differences over 3,213 parses.gen,maj,brigandmajorlose en.toml's given readings, so a bare one opening a name is the rank. They joinSTRICT_UNGATEDformy.nameparser/locales/AGENTS.mdgains the rule: before a pack removes another language's readings, measure a strict choice of its language. It names the two silent failures of a removal list, checked on masterd12af9d6: removing a reading that is no longer there raises nothing, and a reading another language gains later is not on the list.Rabe a name by default as well as a credential and a title? (Kim Ragives suffixRa; Korean and Burmese names) #1483, which supersedes Should a Burmese choice readUandDawas titles, and stopSanjoining the family? (Daw Aung San Suu Kyigives given 'Daw', family 'San Suu Kyi') #1231's fragment), with vocabulary-model and mechanisms.md updated.Part 4: the fragment's measured cost
This is the 2,990-name Myanmar population from #1231, rebuilt in scratch; nothing is cached or committed. Every figure was measured on this branch, on master
12b568f8, with the fragment rebuilt in a scratch lexicon:Parser()parser_for(locales.MY), no fragment (this PR)parser_for(locales.MY, strict=True), without the rank copiesparser_for(locales.MY, strict=True)(this PR)san39,la7,van2,te2,da2, and one each fordo,leanddu.de,master,van,pr,rn,mbchb,of,pdanddo. docs/languages.rst states this cost.Part 5:
locales.VIunder strict (measured; nothing in VI changed)parser_for(locales.VI)parser_for(locales.VI, strict=True)uit-vinames(21,090), every box agreeingvn-assembly(499)On names that aren't Vietnamese (
config_diff.py diff plain:VI strict:VI --committed --local ctgov-officials --local ctgov-contacts), 80,628 of 660,410 distinct names move, 52,108 of them in their fields.Checks
jaextra.ruff,mypyandbuild.py --checkare clean.default = falsefrom one rank copy failstest_my_rank_copies_are_off_by_default_and_en_toml_readings.Reviews
The following reviews ran on the first commit: code-reviewer, pr-test-analyzer, comment-analyzer and design-docs-reviewer. Their findings are addressed in the second commit. That commit then had its own code review, whose four minor findings are addressed in the third commit: a count, a test row that proved nothing, and strict reading
U.S. Grantas titleU.S., now documented and tested.🤖 Generated with Claude Code