Skip to content

Let given names that are also surnames vote in Parser.suggest (Smith John): a 10% family share, and no listed suffix in the table - #1400

Merged
derek73 merged 2 commits into
masterfrom
fix/issue-1357-given-name-share
Nov 15, 2026
Merged

derek73 merged 2 commits into
masterfrom
fix/issue-1357-given-name-share

Conversation

@derek73

@derek73 derek73 commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Closes #1357

Parser.suggest got no evidence from a list of the commonest English given names: its given-name table kept a name only if ORCID holders wrote it in the family box at most 5% of the time, which left out John (7.1%), David (5.1%) and Robert (5.7%).

What changes

  • The family share goes from 5% to 10% (MAX_FAMILY_SHARE in tools/vocab/order_names.py). The table holds 8,026 names, from 6,409: 1,668 enter and 51 leave.
  • The builder refuses every word the default lexicon lists as a suffix (suffix_acronyms, suffix_words, the ones that may also be a name included), as it already refuses a title.
    • At 10% the ranking admits md (Muhammad written short). A table word is never read past as a post-nominal, so four names ending in a bare MD moved a default base to FAMILY_FIRST.
    • The words that may also be a name (asa, ace, ed) are refused for a different reason: the parse reads one written in capitals after a name word as the credential (Zorvan Qelliot ASA, suffix ASA), and as a table word it voted there. On master four names ending in ASA already moved a default base to FAMILY_FIRST.
    • Nine words leave by this rule: md, ala, ei, ing, ed, which the 10% share would admit, and mst, cem, asa, ace, which the table held.
  • The builder refuses every title the lexicon lists as an abbreviation. That removes gen alone: written Gen. the parse reads it as the title at either end of a name, and as a table word it voted there.
  • No surname table is added. Should the group suggester read common surnames outside East Asia? (Smith John, Jones David, Brown James gets no suggestion in either order) #1364 stays open.
>>> names = ["Zorvath John", "Brenwick David", "Tulvane James", "Maskery Robert",
...          "Quillfen Thomas", "Havelund Paul", "Pennacott George", "Dorrance Charles"]
>>> Parser().suggest(names).patch     # master: PolicyPatch(), no evidence
PolicyPatch(name_order=FAMILY_FIRST)  # 3 for, 0 against, 5 no evidence

Measured

uv run python tools/differential/suggest_measure.py --wrong-words 12 --base <an export of 0d643d2b>, 2026-11-15, 300 groups a size, sizes 2 / 3 / 4 / 5 / 10 / 20 / 50 / 200. 297 of 960 order cells moved, 269 up and 28 down.

Lists written in the base's own order (the anti-goal, 95% at every size):

row master this branch
worst row outside the two exception lists (orcid-byline, given-first) 100 / 100 / 99.7 / 100 / 99.7 / 99.7 / 98.3 / 99.7 100 / 100 / 99.7 / 100 / 99.7 / 99.7 / 97.0 / 99.7
orcid-byline-joined, given-first (an exception at 50 and 200) 100 / 100 / 100 / 99.7 / 99.7 / 98.0 / 93.3 / 92.0 100 / 100 / 100 / 99.7 / 99.7 / 98.3 / 94.7 / 97.0
orcid-givcaps, given-first (fails by design) 48.7 / 22.3 / 11.7 / 2.7, then 0 51.7 / 25.3 / 14.3 / 3.7, then 0

14 same-order cells fell, 11 of them by one group in 300.

Lists written against the base, given-first names under a family-first base, at 2 / 3 / 4 / 5 names:

population master this branch
UK company filers, British 23 / 50 / 65 / 83 39 / 67 / 82 / 92
US patent inventors, US 20 / 38 / 54 / 67 36 / 62 / 79 / 86
US patent inventors, French 14 / 24 / 38 / 50 39 / 69 / 83 / 89
US patent inventors, Spanish 35 / 69 / 78 / 90 58 / 88 / 95 / 98
US patent inventors, Brazilian 27 / 49 / 67 / 81 52 / 75 / 89 / 96
UK company filers, Nigerian 7 / 16 / 19 / 30 14 / 29 / 41 / 54
UK company filers, Romanian 6 / 12 / 19 / 28 20 / 37 / 55 / 65
UK company filers, Indian 4 / 9 / 18 / 18 6 / 17 / 28 / 38

The one large fall: ORCID bylines written given-first under a family-first base at 200 names, 60.3% to 53.3%. Four of those seven points come from the exclusions: a byline's leading initials that are also a table word (MD, ED) voted given-first, rightly there.

Per name, over every population and both written orders (170,540 names): the given-name signal cast 66,979 right and 2,088 wrong votes, from 51,440 and 1,111 (3.02% wrong, from 2.11%). No parliament list's suggestion moves. The full table and the per-population counts are in docs/design/decisions/group-suggestion.md, entry 2026-11-15 #1357.

Costs

  • Wrong given-name votes about double where the entered names are family names: UK company filers of Indian nationality 33 to 57, Nigerian 25 to 48, Romanian 24 to 51, Turkish 15 to 33.
  • muhammad and mohammad enter; mohamed, ahmed and ali stay out.
  • james, paul, george, charles, thomas and martin stay out, so the issue's own list decides on three votes of eight.
  • 47 rare names leave the table, pushed out of a country's 500.
  • On made-up lists (no measured population is a list of this kind):
    • six names written in the base's order whose family names are entered given names and whose given names no table lists (Zorvan John) read 6 of 6 right on master and 0 of 6 now;
    • a list of nothing but Cem, Asa and Ace as given names, written against its base, loses its votes;
    • four names written family first and ending in a bare ASA (Zorvath Emily ASA) under a given-first base were moved to family-first on master, by the table word asa, and get no suggestion now: 4 of 4 right to 0 of 4. The same names written given first under a family-first base go from 0 of 4 to 4 of 4.

Tests

  • New rows: the share (John, Robert vote; Thomas, Martin, George do not); the issue's list on invented surnames under three bases and both written orders; lists ending in a bare MD and ASA; Gen. at either end; and every table word parsed in capitals and Title case, ending a name with and without a full stop and opening one without, read as no title and no suffix.
  • With master's table and builder 25 tests fail: 21 in tests/v2/test_suggest.py, 4 in tests/v2/test_order_names_tool.py.
  • Mutations, each caught: the constant back to 5%; the suffix exclusion removed from the build; the abbreviation exclusion removed; the fold dropped from the suffix lookup; the first commit's table (with gen).

Review

Code, tests and comments, and the design docs, were each reviewed by an independent agent; the commit fixing their findings was reviewed again, and its findings fixed. The second commit answers the maintainers' review of the first and was reviewed by a fourth agent.

Not verified

  • The 20-use floor and a share between 10% and 15% were not measured.
  • initials_as_family in the same patch as the new votes: no list of the sweep was suggested it.
  • The suite without the ja extra was not run; the change touches no code that reads it.

🤖 Generated with Claude Code

…John): a 10% family share, and no listed suffix in the table (#1357)

The suggester's given-name table kept a name only if ORCID holders wrote
it in the family box at most 5% of the time, which left out John (7.1%),
David (5.1%) and Robert (5.7%): a list of the commonest English given
names cast no vote. The share is now 10% (8,027 names, from 6,409).

The builder also refuses every word the default lexicon lists as a
suffix, as it refuses a title. At 10% the ranking admits md (Muhammad
written short), and a table word is never read past as a post-nominal,
so four names ending in a bare MD moved a default base to family-first.
The suffixes that may also be a name (asa, ace, ed) are refused too:
the parse reads one written in capitals after a name word as the
credential, and as a table word it voted there, which on master moved
four names ending in ASA the same way.

Measured with tools/differential/suggest_measure.py against 0d643d2:
decisions/group-suggestion, 2026-11-15 #1357. No surname table is added;
#1364 stays open.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@derek73 derek73 added this to the 3.1 milestone Nov 15, 2026
@derek73 derek73 added enhancement suggester The group suggester: Parser.suggest() and its signals labels Nov 15, 2026
@derek73 derek73 self-assigned this Nov 15, 2026
…, and record the suffix exclusion's costs (#1357)

Review of b6791db. `gen`, a given name the 10% share admits, is a title
the lexicon lists as an abbreviation: with its full stop the parse reads
it as the title at either end of a name, and as a table word it voted
there (four `Zorvan Qelliot Gen.` moved a default base to family-first).
The builder now refuses `title_abbreviations` too; only `gen` leaves
(8,026 names).

Tests: every table word parsed in capitals and Title case, ending a name
with and without a full stop and opening one without, is no title and no
suffix; a list ending in a bare `ASA` after
a listed given name, written both ways; `Pere`, refused by the fold of
`père`, kills the mutant that dropped the fold; the spelling test holds
a name that votes and one that does not.

decisions/group-suggestion's 2026-11-15 #1357 entry: re-taken from the
final tree; the exclusions' cost on bylines written against their base;
three accepted list shapes with their rows; two false sentences removed.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@derek73
derek73 merged commit 17bc612 into master Nov 15, 2026
14 checks passed
@derek73
derek73 deleted the fix/issue-1357-given-name-share branch November 15, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement suggester The group suggester: Parser.suggest() and its signals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should the group suggester know John, David and James as given names? A list of Smith John, Jones David gets no suggestion

1 participant