Repository navigation
Add familiar forms from Wikidata's people for Central and Eastern European and Balkan languages, holding the spellings (#1387) - #1503
Merged
Conversation
) tools/vocab/familiar_wikidata.py fetches, country by country, the statements three relations read (birth name against the label, a stated nickname against the given name, the label against the given name) and writes candidate pairs by the language they were found in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1387) 766 candidate pairs at two people or more, read by two readers, add 235 familiar forms and 64 alternate spellings in fifteen Central and Eastern European and Balkan languages' files. The generator merges spellings the name match folds alike, and refuses a given-name label that is no name word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ate rows (#1387) The generator keys each kept answer by its query, writes it under a temporary name of its own and checks it whole when read back, refuses an answer cut inside its last line, reads the cache alone for pairs, counts each column's people once, leaves out a language whose name items it cannot read, and wants a family name in a label. The review drops 11 rows the match reads as another pair, and the spelling test of 2026-11-13 splits 18 agreed spellings, which ship nowhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1387) A reviewed row's people and languages are the committed tool's, so a pair merged from two spellings keeps every language it was found in (cs.toml had lost vlado); an unreadable family name stops only the two relations that set the family name aside; and the five rows the tool draws for no one leave the review. The retry arms of ask are tested. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1387) The tool's languages added Belarusian to Алёна / Елена through its split twin and dropped Slovak Zuzka; a row's languages are now its own and its same-verdict fold-twins' at review time, and a test holds each direction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iar-forms # Conflicts: # docs/release_log.rst
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… alone (#1387) The spelling test that passed the 46 agreed spellings read all three of its planted translations as spellings, so its agreement is no evidence: decided 2026-11-20, they are recorded as a new review category, held, and ship nowhere. ALTERNATE_SPELLINGS is master's again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 #1387.
Adds
tools/vocab/familiar_wikidata.py, a generator of familiar-form candidates from Wikidata's people (CC0). It runs per language over the three relations decided on the issue (2026-11-19). It also ships the familiar forms two readers agreed on: 231 familiar forms in Central and Eastern European and Balkan languages' files. The 46 alternate spellings the readers also agreed on are held: they are recorded in a new review category and ship nowhere (decided 2026-11-20; see below).The generator
It fetches each of 21 citizenships through the query service. The queries are simple, one per kind of statement, and joined in Python, because a single query joining the name items' labels to people timed out. Each answer is kept in the tools cache, keyed by the query's digest, written under a temporary name of its own and checked whole when read back.
pairsreads the cache alone. The requests carry a generic User-Agent naming no person or project.In each language the country writes, it reads three relations:
Other filters:
-néwords are dropped.Сол/Саул).It reads no list of familiar forms; a test holds it to that.
Per language
Олег Петренко/Oleg Petrenko) #1385). They cannot meet, so those rows do not move.The review
The first pass followed #1379's procedure, with mechanisms.md's Field notes applied:
splitand ship nowhere.The 2026-11-13 spelling test was then applied to the 64 agreed spellings by two more readers:
Арчил/Арчіл,Вардан/Вартан); they are recorded assplit.Decided 2026-11-20: the 46 are held. The test pass read all 3 of its planted translations as spellings (
Julia/Yulia,Joanna/Yoanna,Alia/Aliaa; 0 of 6 kept apart), so its agreement is not evidence. The 46 are recorded asheld, a new review category that requiresdecidedand ships nowhere, for a later spelling pass.ALTERNATE_SPELLINGSstays at master's 294.Measurements
FAMILIARgoes from 1,055 to 1,286 pairs, andALTERNATE_SPELLINGSis unchanged at 294.tools/differential/snapshot.jsonlis byte-identical to master's (35b12d3), and the full suite passes (54,818).tools/differential/match_diff.py --baseagainst 35b12d3, run with the spellings held, read 31,392 pairs under 22 settings:familiar-formwhereconflictstood. Under+alternate-spellingthe same 20 rows move and nothing else.familiar-form, and none goes the other way.Docs
decisions/name-matching: a 2026-11-20 Add Wikidata as a source of Central and Eastern European familiar forms (Józsi/József) #1387 entry with the recipe, counts and open questions. Those include the 46 held spellings, the 148 splits (130 from the first review, 18 from the spelling test), and the Ukrainian and Belarusian apostrophe names the name-word test refuses.decisions/shipped-data-licences: a 2026-11-20 entry. Wikidata is CC0, so it adds nothing to the expression.docs/matching.rst,nameparser/vocab/README.md,AGENTS.mdand the release log are updated.Reviews
Round 1: pr-review-toolkit code-reviewer, pr-test-analyzer, silent-failure-hunter, comment-analyzer and type-design-analyzer, plus design-docs-reviewer. The findings were fixed in 6ea315b and 31949c1. They covered cache keys and cut answers, column counts, the label relation, fold-duplicate rows, unreproducible counts, docs claims, and the spelling test.
Round 2, on those fix commits (code-reviewer, design-docs-reviewer):
vladofromcs.toml.Round 3, on c0d468e (code-reviewer): taking languages from the tool's draw added
betoалёнаand droppedskandslplacements. Fixed in the last commit, with a test for each direction.CI:
ja-extra (3.15)andsource-treefailed on anHTTPErrorthe retry test built and never closed (ResourceWarning). Fixed by building each error only when raised;askalso closes a finalHTTPError.Merge: master (35b12d3) was merged in. The release log was resolved by keeping both bullets, and the compiled vocabulary was rebuilt with
tools/vocab/build.py, which found it current.Hold commit 39affe5, reviewed by code-reviewer. It confirmed:
ALTERNATE_SPELLINGSis byte-identical to master's, and nospellingreading moved.heldis refused withoutdecidedand is never placed.One stale test comment, and the licence entry's wording, were fixed in the last commit.
Not fixed: Ukrainian and Belarusian apostrophe names (
Дар'я) are refused by the shared name-word test. This is recorded as open in the decisions entry.🤖 Generated with Claude Code