Skip to content

Read a wholly Burmese list with a strict choice of my; drop locales.MY's fragment (#1483) - #1489

Merged
derek73 merged 3 commits into
masterfrom
feat/my-strict-choice
Nov 19, 2026
Merged

derek73 merged 3 commits into
masterfrom
feat/my-strict-choice

Conversation

@derek73

@derek73 derek73 commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Relates to #1483 (it stays open for Proposal B, ra as 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

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 As written Upper-cased
Parser() 2,834 2,825
the pack with its fragment (as merged in #1480) 2,987 2,977
parser_for(locales.MY), no fragment (this PR) 2,932 2,923
parser_for(locales.MY, strict=True), without the rank copies 2,980 2,980
parser_for(locales.MY, strict=True) (this PR) 2,989 2,989
  • Dropping the fragment costs the plain pack 55 names as written and 54 upper-cased. The estimate was about 55. Every name the two read differently is one the fragment read right: san 39, la 7, van 2, te 2, da 2, and one each for do, le and du.
  • The strict choice's one miss is a string holding two names, which every configuration misreads.
  • Strict against the plain pack on other names: 88,009 of 660,410 distinct names move (the committed corpora and ClinicalTrials.gov's officials and contacts). In 58,776 of them (8.9%) a field changes. The most-moved words are de, master, van, pr, rn, mbchb, of, pd and do. docs/languages.rst states this cost.

Part 5: locales.VI under strict (measured; nothing in VI changed)

Corpus parser_for(locales.VI) parser_for(locales.VI, strict=True)
uit-vinames (21,090), every box agreeing 21,085 (99.98%) 21,089 (100.00%): 4 fixed, 0 broken
vn-assembly (499) 499 499: no name reads differently

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

  • Full suite: passes, also without the ja extra.
  • Touched modules on Python 3.15: pass.
  • Lint, types and vocabulary: ruff, mypy and build.py --check are clean.
  • Doctests: the Sphinx doctests and README pass.
  • Snapshot and per-pack records: unchanged (the default parse does not move).
  • New tests against master: they fail there wherever they test this change.
  • Mutation check: dropping default = false from one rank copy fails test_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. Grant as title U.S., now documented and tested.

🤖 Generated with Claude Code

derek73 and others added 3 commits November 19, 2026 15:30
…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]>
@derek73 derek73 added this to the 3.2 milestone Nov 19, 2026
@derek73 derek73 added vocabulary Fixed by a word-list entry: per-word vocabulary and language packs locale-packs Locale packs and language choices (nameparser.locales) labels Nov 19, 2026
@derek73 derek73 self-assigned this Nov 19, 2026
@derek73
derek73 merged commit 13cf07c into master Nov 19, 2026
12 checks passed
@derek73
derek73 deleted the feat/my-strict-choice branch November 19, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

locale-packs Locale packs and language choices (nameparser.locales) vocabulary Fixed by a word-list entry: per-word vocabulary and language packs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant