Repository navigation
Take ud out of the credentials; document removing bt for Malay names (#1467) - #1490
Merged
Merged
Conversation
…1467) `ud` is the connective of a South Asian compound name (`Zia ud Din`), between name words in 121 distinct names of eight local corpora against 7 ending one, and as a credential it started a run that took the rest of the name (`NADIR ZIA UD DIN` read suffix 'UD DIN', 2.4.0 through 3.1.0). Its reading is removed with an `excluded` entry holding the counts, and 1.4.0's reading returns; none of the 7 names ending in it writes a credential. `bt` keeps its credential reading, as decided, and docs/customize.rst gives the recipe for removing it and its cost on a baronet. 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.
Closes #1467
As decided on the issue:
udloses its credential reading;btis not changed, and the docs show a caller with Malay names how to remove it.The compound itself is not joined (
X ul/ur/ud Yreads familyY), as decided.Counts
Over the distinct names of eight local corpora (ctgov-officials, ctgov-contacts, govuk-people, ukec-individuals, psc-individuals, fec-individuals, orcid-researchers, my-candidates), words split at spaces with commas and full stops removed, as the vocabulary matches an acronym:
udbtThe issue's 127 and 34 counted records rather than distinct names.
What the 7 names ending in
udwrite (the decision asked for this before shipping), none of them a credential:U.D. Three ORCID holders' now read as the family; an FEC donor's after a comma reads as initials before and after.UD.Measured (
measure.py --baseagainst master 12b568f)X ud Din) in the family box, which the old run's suffix happened to match; the decided reading leaves the compound unjoined.Changes
nameparser/vocab/en.toml: theudcredential reading is replaced by anexcludedentry holding the counts. Compiled modules rebuilt.tests/v2/cases.py: 4 rows. The twoudrows areparity(1.4.0's reading returns), theUDcost row isfix(#1467), and thebtboundary row isfix(#602), the change its run came from.test_cases.py's sweep counts go up 3 each, from thebtrow's report under three orders.docs/design/decisions/suffix-acronym-collisions.md: a Standing bullet and a dated 2026-11-19 entry with the recipe, readings, measurements and costs.docs/customize.rst: a new "Malay names and bt" section. Its doctest removes the reading, and it states the cost:Sir John Smith Btthen reads familyBt.docs/migrate.rst: a "Changed in 3.2" entry with doctests, and one release-log bullet.Checks
These all pass:
uv run pytest(51,569 passed, after rebasing on 13cf07c)uv run pytest -n0 -m serialuv run mypyuv run ruff checksphinx-build -b doctest docs(0 failures)python -m doctest README.rstbuild.py --checkparity_check.py(0 of 654 differ)Review
Reviewed with:
Their findings were:
btrow was classified under the wrong changeU.Dendings move, not fourAll are fixed. The last fix commit only restates the second reviewer's own verified readings and was not reviewed again. The review commits are squashed here.
Not applicable: comment-analyzer (no code comments), silent-failure-hunter, type-design-analyzer and code-simplifier (no code).
Example names are invented and appear in no local corpus.
🤖 Generated with Claude Code