Repository navigation
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
Conversation
…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]>
…, 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]>
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 #1357
Parser.suggestgot 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 outJohn(7.1%),David(5.1%) andRobert(5.7%).What changes
MAX_FAMILY_SHAREintools/vocab/order_names.py). The table holds 8,026 names, from 6,409: 1,668 enter and 51 leave.suffix_acronyms,suffix_words, the ones that may also be a name included), as it already refuses a title.md(Muhammad written short). A table word is never read past as a post-nominal, so four names ending in a bareMDmoved a default base toFAMILY_FIRST.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, suffixASA), and as a table word it voted there. On master four names ending inASAalready moved a default base toFAMILY_FIRST.md,ala,ei,ing,ed, which the 10% share would admit, andmst,cem,asa,ace, which the table held.genalone: writtenGen.the parse reads it as the title at either end of a name, and as a table word it voted there.Smith John,Jones David,Brown Jamesgets no suggestion in either order) #1364 stays open.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):
orcid-byline, given-first)orcid-byline-joined, given-first (an exception at 50 and 200)orcid-givcaps, given-first (fails by design)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:
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
muhammadandmohammadenter;mohamed,ahmedandalistay out.james,paul,george,charles,thomasandmartinstay out, so the issue's own list decides on three votes of eight.Zorvan John) read 6 of 6 right on master and 0 of 6 now;Cem,AsaandAceas given names, written against its base, loses its votes;ASA(Zorvath Emily ASA) under a given-first base were moved to family-first on master, by the table wordasa, 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
John,Robertvote;Thomas,Martin,Georgedo not); the issue's list on invented surnames under three bases and both written orders; lists ending in a bareMDandASA;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.tests/v2/test_suggest.py, 4 intests/v2/test_order_names_tool.py.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
initials_as_familyin the same patch as the new votes: no list of the sweep was suggested it.jaextra was not run; the change touches no code that reads it.🤖 Generated with Claude Code