You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a mainland-weighted ranking to tools/zh_surnames.py so common mainland surnames need no hand addition (付) #981
non-latin-scriptNames written in a script other than Latin (rules/W)toolingvocabularyFixed by a word-list entry: per-word vocabulary and language packs
#952 added 付, 代, 候, 芦 and 农 (with 蘆, 農) to locales.ZH by hand: the mainland top 200 by people (NCIIC 2008) that neither the Taiwan MOI nor the Wikidata ranking's top 300 reaches. The list's two sources are regional in opposite directions and neither is mainland-weighted, so the next mainland surname past their cut will again need a hand addition.
The candidate weighed in #952, wainshine/Chinese-Names-Corpus (Apache-2.0), ranks distinct names extracted from text by a word splitter, not people, and its README admits bad entries. Its first-character ranking tracked the registry's closely in #952's comment. After #952 the mainland list leaves 28,960 of 1,144,226 names whole (2.53%), spread thin over a tail (芮 588, 容 521, 戎 516, 楚 501, 国 435, 原 421 …).
Open questions: is a text-derived ranking acceptable as a source; where would its cut sit, given that the tail past 300 is where Japanese surname openers sit (山 is 347 misses in that list); and does the tail matter at ~2.5%?
Pointer: decisions/W1's Open line (2026-10-30 #952 entry).
changed the title [-]Should `tools/zh_surnames.py` take a mainland-weighted third ranking, so the next 付 is caught without a hand addition?[/-][+]Add a mainland-weighted ranking to `tools/zh_surnames.py` so common mainland surnames need no hand addition (`付`)[/+]on Nov 21, 2026
Checked 2026-11-20: still open, and what it predicted has happened once more. Since this was filed the surname list's sources changed (Wikidata's ranking replaced Unihan's, decisions/shipped-data-licences), and #1446 then restored five simplified surnames to locales.ZH by hand, the same kind of hand addition #952 made. Neither source is weighted to the mainland, so the next one past their cut will need it again.
The open questions above stand: whether a ranking derived from text is acceptable as a source, where its cut would sit given the Japanese surname openers in the tail, and whether a tail of about 2.5% of mainland names matters. Any new source's licence is checked before it is fetched.
non-latin-scriptNames written in a script other than Latin (rules/W)toolingvocabularyFixed by a word-list entry: per-word vocabulary and language packs
Activity
Link #981 from decisions/W1's Open line (#982)
Replace Unihan with Wikidata for locales.ZH's simplified forms and th…
Derive the suggester's common given names from ORCID instead of nam_d…
[-]Should `tools/zh_surnames.py` take a mainland-weighted third ranking, so the next 付 is caught without a hand addition?[/-][+]Add a mainland-weighted ranking to `tools/zh_surnames.py` so common mainland surnames need no hand addition (`付`)[/+]derek73 commentedon Nov 21, 2026
Checked 2026-11-20: still open, and what it predicted has happened once more. Since this was filed the surname list's sources changed (Wikidata's ranking replaced Unihan's, decisions/shipped-data-licences), and #1446 then restored five simplified surnames to
locales.ZHby hand, the same kind of hand addition #952 made. Neither source is weighted to the mainland, so the next one past their cut will need it again.The open questions above stand: whether a ranking derived from text is acceptable as a source, where its cut would sit given the Japanese surname openers in the tail, and whether a tail of about 2.5% of mainland names matters. Any new source's licence is checked before it is fetched.
🤖 Generated with Claude Code