Skip to content

Read Bc and Ing as titles under locales.CS, and give cs and sk their own et - #1518

Merged
derek73 merged 4 commits into
masterfrom
feat/czech-degrees-970
Nov 22, 2026
Merged

derek73 merged 4 commits into
masterfrom
feat/czech-degrees-970

Conversation

@derek73

@derek73 derek73 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Relates to #970

Under locales.CS, Bc and Ing read as academic titles: written bare, at the head of a family comma, at the end with their period, and two joined by et (Ing. et Ing. Jan Novák gives title Ing. et Ing.). cs.toml and sk.toml gain their own et, so a strict choice keeps the pair. No field moves by default. The issue's D et Ph and DiS et DiS classes remain, hence Relates.

What changes

  • bc: cs.toml's exclusion becomes an academic reading written default = false, with no case mask. The 2026-10-30 exclusion rested on 23 ClinicalTrials.gov officials, a US register read under a Czech choice; re-weighed by the rule that a pack is chosen for its own language's names. The mask is left off because it recased ACNP-BC as ACNP-Bc under capitalized(force=True).
  • ing: cs.toml gains an academic reading written default = false, and locales.CS gains a lexicon fragment removing ing's given reading.
    • That reading is mul.toml's, and it gates the title (rules/H9, the title phrase). A choice never drops a name reading (decision 15), and strict keeps mul.toml's, so the fragment is the only route, as locales.VI's is.
    • Moving the name readings into another file was built and measured. Plain locales.CS read the whole grid as master, and the build refused the move twice (check 13).
    • Only given is removed. The credential's gate reads given or family, so keeping family keeps mul.toml's credential gated and Ing the surname placed (Mr Tom Ing). A first build removing both moved about 50 corpus surnames to the suffix.
    • ing joins MUL_SHARED.
  • et: a conjunction, on by default, in cs.toml and sk.toml. fr.toml's already reads it, so the default and plain choices compile the same. Only strict cs and sk notice, and et's Reading.languages gains cs and sk.
  • locales.CS.DEVIATES declares the word Ing beside rules/O6's predicate.
  • Slovak keeps no bc/ing change. The one fielded Slovak population, the Slovak chamber, writes no degree.

Measured

Measured 2026-11-21 against a checkout of master efdf0e16 (recipes in the decisions entry):

  • Default: none of the 37,100 local-corpus names holding bc, ing or et moves. _compiled.py is unchanged, and the snapshot gains only the two new rules/H9 examples.
  • cz-candidates under --locale cs: 169,254 of 170,181 records agree in every field (99.5%). 165 now agree, 4 now disagree and 11 change.
  • X et X pairs left outside the title: of 443 cz-candidates records holding a pair, these fall from 176 to 16. Ing et Ing goes from 107 to 1 and Bc et Bc from 48 to 0; D et Ph 7 and DiS et DiS 6 remain.
  • Every local corpus under plain locales.CS: 260 names read otherwise, none by a report alone. 193 are a degree written with its period or as a pair. About 22 are a bare Ing degree now read right.
  • bc alone, against 1e920d6f: 51 cz-candidates records gained and none lost. 80 names move: 59 Czech degrees, 5 names that a trailing BC had reversed, and 16 costs.

What breaks, under the pack only

  • Ing as a given name: a name opening with it (about 19 in the corpora, Ing Wei Lim), and Ing alone after a family comma (Lim, Ing), read it as the title.
  • Ing as a surname: written at the head of a family comma (Ing Ho, Mei gives family Ho) or first under a family-first order, it reads as the title.
  • Lone words: a lone Ing or Bc is a title with no name.
  • Post-nominals: one glued to Ing.'s stop (Ing.Paed.IGIP, 3 cz-candidates records, rules/S3), and EUR ING past a second comma (rules/C2), read as a title.
  • BC: the initials B.C. (MOSS, BC) and the US nursing credential BC move to the title.
  • Strict sk: Ing. et Ing. now reads as the given name, as plain sk already did. Before, strict sk read title 'Ing.', given 'et', also wrong.

Docs

  • decisions/vocabulary-model: a dated 2026-11-21 Read a repeated Czech degree joined by et as a title (Ing. et Ing. Jan Novák gives given Ing. et Ing. and no title) #970 entry. Its standing line and decisions 6 and 15 now name locales.CS beside locales.VI.
  • rules/H9 and decisions/H9: H9's Except for a removed given reading names the pack and has two [cs] examples; decisions/H9 gains a Standing line and a log entry.
  • User docs: docs/languages.rst and docs/locales.rst, plus a release-log bullet.
  • AGENTS.md lessons: nameparser/locales/AGENTS.md says why strict cannot reach a mul.toml reading and why to remove only the reading that gates. nameparser/vocab/AGENTS.md says when a word may join MUL_SHARED.

Review

  • First round (pr-review-toolkit): code-reviewer, pr-test-analyzer with mutations, comment-analyzer, and design-docs-reviewer.
  • Fixed in 532cbf9:
    • DEVIATES matched the substring ing (John King); it now matches the word.
    • Table rows were missing for moved shapes and costs.
    • The strict et and bc-mask mutants survived; tests now kill them.
    • A count didn't sum.
    • The X et X filter missed a spaced &.
    • Family-comma costs were unlisted.
    • "Never competes" overclaimed.
    • Reading.languages moves.
    • Two stand-in names matched real candidates.
  • Second round (code-reviewer on the fix commit) found strict sk's unrecorded cost and an H9 sentence the fix had narrowed elsewhere. Both are fixed in the last commit.

Checks run locally

All of these pass:

  • Full suite, plus the serial tests.
  • 3.15, and a run without the ja extra.
  • ruff, mypy, build.py --check.
  • parity_check (0 of 772).
  • Sphinx doctest and the README doctest.

🤖 Generated with Claude Code

derek73 and others added 3 commits November 21, 2026 16:17
…own et (#970)

bc's exclusion in cs.toml becomes an academic reading written default =
false, with no case mask. ing gains one beside it, and locales.CS a
lexicon fragment removing ing's given reading, mul.toml's, which would
otherwise make the title one only inside a phrase (rules/H9): a choice
never drops a name reading, and a strict one keeps mul.toml's. The family
reading stays, so mul.toml's credential stays gated and Ing the surname
keeps its place. ing joins MUL_SHARED, the title and the credential being
read in different places. cs.toml and sk.toml list et as a connective,
which only a strict choice, dropping fr.toml's, notices.

The default does not move. Under the pack cz-candidates gains 165 records
and loses 4, and the X et X records left outside the title fall from 174
to 16 (decisions/vocabulary-model, the 2026-11-21 #970 entry).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…records (#970)

cs's DEVIATES declares the word Ing rather than any name holding its
letters, which had exempted John King and Wing Lau from the gate, and a
test holds it. The table gains the moved shapes it lacked (a family
comma's head, the trailing dotted title, past a second comma, lower
case) and the costs (Lim, Ing; Ing Ho, Mei; a lone Ing or Bc; Ing first
under a family-first order), and a test reads strict cs and sk for et
and Ing, and the case masks bc does without.

The records: the bc breakdown sums to its 80 (59 Czech degrees), with a
recipe; the X et X count is retaken with a filter that sees a spaced &
and a stated detector, 176 to 16 of 443; the costs a family comma pays
are listed; the claim that the title and the credential never compete
is narrowed to past a second comma; et's Reading.languages moves, which
the notes and the entry now say; decisions/H9 records the pack's
removal; two stand-in names that matched real candidates are replaced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he name (#970)

The second review of the fix: under strict sk, which lists no Ing or Bc
title, sk.toml's et joins their pair into the given name, a field move
the records did not name. It is now in the decisions entry, sk.toml's
note and a test row. rules/H9's Czech sentence says before the name, as
the rest of the change does, the X et X recipe says its test is a
substring, and decisions/H9's new line joins its list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.2 milestone Nov 22, 2026
@derek73 derek73 added enhancement vocabulary Fixed by a word-list entry: per-word vocabulary and language packs titles Titles and honorifics (rules/H) locale-packs Locale packs and language choices (nameparser.locales) labels Nov 22, 2026
@derek73 derek73 self-assigned this Nov 22, 2026
Bring in #1519; keep both release-log bullets. The compiled files merged
clean and build.py --check reports them current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73
derek73 merged commit 81a2422 into master Nov 22, 2026
14 checks passed
@derek73
derek73 deleted the feat/czech-degrees-970 branch November 22, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement locale-packs Locale packs and language choices (nameparser.locales) titles Titles and honorifics (rules/H) 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