Skip to content

Take ud out of the credentials; document removing bt for Malay names (#1467) - #1490

Merged
derek73 merged 1 commit into
masterfrom
fix/issue-1467-ud-credential
Nov 20, 2026
Merged

derek73 merged 1 commit into
masterfrom
fix/issue-1467-ud-credential

Conversation

@derek73

@derek73 derek73 commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Closes #1467

As decided on the issue: ud loses its credential reading; bt is not changed, and the docs show a caller with Malay names how to remove it.

NADIR ZIA UD DIN     → middle 'ZIA UD', family 'DIN'       (2.4.0–3.1.0: family 'ZIA', suffix 'UD DIN'; 1.4.0–2.3.0 as now)
Nadir Zia ud Din     → middle 'Zia ud', family 'Din'       (same history)
Anke Vissering, UD   → given 'UD', family 'Anke Vissering' (1.4.0–3.1.0: suffix 'UD') — the accepted cost
Nur Aina bt Rosli    → suffix 'bt Rosli'                   (unchanged: bt keeps its reading)

The compound itself is not joined (X ul/ur/ud Y reads family Y), 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:

between name words ending a name
ud 121 7 (4 after a comma, 3 with none)
bt 35 16 (7 after a comma, 9 with none)

The issue's 127 and 34 counted records rather than distinct names.

What the 7 names ending in ud write (the decision asked for this before shipping), none of them a credential:

  • 4 are initials written U.D. Three ORCID holders' now read as the family; an FEC donor's after a comma reads as initials before and after.
  • 1 is the compound written surname first, now middle UD.
  • 2 are one Dutch study chair in two ClinicalTrials.gov records, writing the rank universitair docent after a comma. It now reads as any unlisted pair of capitals there does, as initials run together, so the name is reversed: the accepted cost.

Measured (measure.py --base against master 12b568f)

  • Moves: ctgov-officials 1, ctgov-contacts 1 (the Dutch chair), fec-individuals 2, jrc-names 8, orcid-researchers 12, opensanctions-parliaments 1, patentsview-inventors 1.
  • Unchanged: every other local corpus, the committed snapshot, and CLDR and GND.
  • Scored against the filed boxes:
    • orcid-researchers: 3 records now agree that didn't. 6 no longer agree: Pakistani holders who filed the whole compound (X ud Din) in the family box, which the old run's suffix happened to match; the decided reading leaves the compound unjoined.
    • patentsview-inventors: 1 record no longer agrees.

Changes

  • nameparser/vocab/en.toml: the ud credential reading is replaced by an excluded entry holding the counts. Compiled modules rebuilt.
  • tests/v2/cases.py: 4 rows. The two ud rows are parity (1.4.0's reading returns), the UD cost row is fix(#1467), and the bt boundary row is fix(#602), the change its run came from. test_cases.py's sweep counts go up 3 each, from the bt row'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 Bt then reads family Bt.
  • 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 serial
  • uv run mypy
  • uv run ruff check
  • sphinx-build -b doctest docs (0 failures)
  • python -m doctest README.rst
  • build.py --check
  • parity_check.py (0 of 654 differ)

Review

Reviewed with:

  • pr-review-toolkit's code-reviewer, briefed for tests and the sweeps too
  • the design-docs-reviewer
  • a second design-docs-reviewer round on the fix commit

Their findings were:

  • counts mixing records with distinct names
  • two quoted names that were real records
  • the customize page's condition was too narrow and didn't state its cost
  • the release bullet hid the reversal
  • the bt row was classified under the wrong change
  • three U.D endings move, not four

All 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

…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>
@derek73 derek73 added this to the 3.2 milestone Nov 20, 2026
@derek73 derek73 added vocabulary Fixed by a word-list entry: per-word vocabulary and language packs suffixes Generational suffixes and credentials (rules/S) labels Nov 20, 2026
@derek73 derek73 self-assigned this Nov 20, 2026
@derek73
derek73 merged commit 7a688fa into master Nov 20, 2026
14 checks passed
@derek73
derek73 deleted the fix/issue-1467-ud-credential branch November 20, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

suffixes Generational suffixes and credentials (rules/S) 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.

bt (binti) or ud before the last name word starts a credential run (Siti Hajar bt Khalit gives family Hajar, suffix bt Khalit)

1 participant