Skip to content

Re-read #1379's review: an alternate spelling is one name in its source - #1389

Merged
derek73 merged 3 commits into
masterfrom
fix/reread-1379-review
Nov 14, 2026
Merged

derek73 merged 3 commits into
masterfrom
fix/reread-1379-review

Conversation

@derek73

@derek73 derek73 commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Summary

#1379's review of given-name pairs was read again after #1388 found review agents scripting default verdicts. Every reviewed pair ships opt-in only (alternate-spelling, familiar-form), and the spellings the default reads come from the two fold rules alone. So this is the quality of two opt-ins before 3.1, not a default-behavior change: under the default setting no verdict or key moves.

Measured

Decided (maintainer)

  • The 13 upheld changes, with Nikolaos / Nikolas as a translation (Nikos is the Greek familiar form):
  • The test for a spelling, applied to every shipped spelling:
    • A name romanized from another script is one name where that script spells it alike (Mariia / Mariya, both Марія). It is a translation only where each romanization fits only its own source spelling: Yulia / Yuliia and Nadia / Nadiia stay, since Yulia fits Юлия and Юлія alike and Nadia fits Надія, while Nataliia / Natalya moves (Nataliia fits Наталія or Наталия, Natalya only Наталья).
    • A name in Latin letters is one name where its language routinely writes both spellings (Eric / Erik in English), and a translation where one is another language's form (Lydia / Lidia).
    • Two Opus readers swept all 312 remaining spellings, keeping 12 of 12 planted controls apart. 18 move to translation:
      • Russian/Ukrainian and Bulgarian pairs: Nataliia / Natalya, Dimitri / Dmitri, Halina / Halyna, Joanna / Yoanna, Julia / Yulia;
      • a Western form against a Russian romanization: Lidia / Lydia, Victor / Viktor, Veronica / Veronika, Ksenia / Xenia, Victoria / Viktoria, Victoria / Victoriya, Aleksandr / Alexander, Alexander / Alexandr, Aleksander / Aleksandr;
      • two languages' Latin forms: Ester / Esther, Maja / Maya, Amaia / Amaya;
      • and Alia / Aliaa, since Alia may romanize another Arabic name.
    • 9 stay, each recorded on its row with the language that writes both. Christina / Kristina's file is corrected from ru to en (a strict Russian choice no longer pairs it), and Sara / Sarah ships under en as well as fa.
  • 12 Rebuild familiar forms from reviewed ORCID pairs, add opt-in alternate-spelling, and fold keyboard spellings #1379 decisions are reversed, each named in the entry. Every moved row is decided, and its reason says which pass moved it and on what ground.

Effect

  • ALTERNATE_SPELLINGS: 320 → 294 pairs. FAMILIAR: 1,059 → 1,055.
  • match_diff --base master (9672df1), 31,250 pairs × 22 settings:
    • The key guarantee holds; 410 of 687,500 rows move.
    • Under the default setting only 16 table rows move, and no verdict or key.
    • 11 pairs go from consistent to inconsistent, all under alternate-spelling (Alexander Ionov / Aleksandr Ionov, Viktor Yanoukovich / Victor Yanoukovich).
  • snapshot.jsonl is byte-identical.

Recorded

  • decisions/name-matching's 2026-11-13 AN ALTERNATE SPELLING IS ONE NAME IN ITS SOURCE, with a head note on the 2026-11-12 entry it reverses in part and the test in the Standing bullet.
  • mechanisms.md's Field note on review agents, amended rather than added to: per-chunk reason counts catch a chunk scripted whole, and planted controls catch a default.
  • docs/matching.rst and nameparser/vocab/README.md state the test.

Test plan

  • uv run pytest; uv run sphinx-build -b doctest docs <tmp>; uv run ruff check; uv run mypy
  • tools/vocab/familiar.py --check, tools/vocab/build.py --check
  • match_diff.py --base master; test_snapshot.py

Reviews run: data consistency, comments and prose, design docs (decisions/, mechanisms.md), and a review of the fix commit.

🤖 Generated with Claude Code

derek73 and others added 3 commits November 13, 2026 19:25
#1379's second reader scripted a chunk whole (7 reasons over 330 rows).
Fresh readers re-read every shipped alternate spelling and the familiar
forms resting on a generic reason, by hand, with planted controls; an
adjudicator filtered the changes and the maintainer decided them. The
test for a spelling is stated: one spelling in the script a name is
romanized from, or both spellings within one language. 29 spellings and
3 familiar forms leave their opt-ins, Elsayed / Sayed moves to
alternate-spelling, and 13 #1379 decisions are reversed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the kept pairs

A pair romanized from another script is a translation only where each
romanization fits only its own source spelling, so Yulia / Yuliia
returns to spelling and the Юлия / Юлія family ships alike. The seven
Latin-letter pairs kept are recorded one by one with the language that
writes both, Christina / Kristina's file corrected to en. Each moved
row's reason carries the ground its pass gave, and the stale
definitions in the vocab README, familiar.py and a docstring follow the
test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The fix commit's review found Nadia / Nadiia, moved before the test was
refined, fitting it as Yulia / Yuliia does (Nadia fits Ukrainian Надія);
it returns to spelling. Sara / Sarah, kept because English writes both,
ships under en as well as fa, and the Nataliia example states its source
spellings correctly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@derek73 derek73 added this to the 3.1 milestone Nov 14, 2026
@derek73 derek73 added vocabulary Fixed by a word-list entry: per-word vocabulary and language packs matching Name matching: Parser.matching(), check() and keys() labels Nov 14, 2026
@derek73 derek73 self-assigned this Nov 14, 2026
@derek73
derek73 merged commit 3dadc26 into master Nov 14, 2026
14 checks passed
@derek73
derek73 deleted the fix/reread-1379-review branch November 14, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

matching Name matching: Parser.matching(), check() and keys() 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