Skip to content

Add a mainland-weighted ranking to tools/zh_surnames.py so common mainland surnames need no hand addition (付) #981

Open

Description

@derek73

#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).

Activity

  1. self-assigned this
    on Oct 31, 2026
  2. added
    vocabulary
    on Oct 31, 2026
  3. added a commit that references this issue on Oct 31, 2026
  4. added
    non-latin-script
    and removed on Nov 10, 2026
  5. 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
  6. derek73 commented on Nov 21, 2026

    @derek73
    OwnerAuthor

    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.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

non-latin-scripttoolingvocabulary

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions