Skip to content

Read where an East Slavic patronymic stands as a vote on the order (#1447) - #1488

Merged
derek73 merged 1 commit into
masterfrom
claude/issue-1447-patronymic-position
Nov 19, 2026
Merged

derek73 merged 1 commit into
masterfrom
claude/issue-1447-patronymic-position

Conversation

@derek73

@derek73 derek73 commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Closes #1447

In a name of three words, where an East Slavic patronymic stands now casts a vote on the list's order, through a new public signal, Signal.PATRONYMIC_POSITION:

  • Last (Sidorov Ivan Petrovich) votes that the family name is written first.
  • In the middle (Ivan Petrovich Sidorov) votes that it is written last.

The vote is read exactly where rules/O1 reads the patronymic, through the predicate _keeps_family_first already counted with (_patronymic_end). No parse moves; this only changes what Parser.suggest suggests.

What changes

Measured

Run with suggest_measure.py against master c5e58aa (--tree): seed 20261110, 300 groups a size, sizes 2 to 2,000.

Rows written against the base: the size from which 95% of groups are read right. No row needs more names; these four need fewer.

Population Written / base master branch
PatentsView Russian family first / given-first 50 4
pv-RU-patronymic family first / given-first never (28% at best) 2
pv-RU-patronymic given first / family-first 4 2
PatentsView "Philippine"* family first / given-first 100 20

* 473 of that population's 3,814 records are Soviet-era inventors filed under PH. The vote reads their patronymics.

Same-order rows: none falls below 95% outside the standing exceptions, which read exactly as on master (orcid-byline-joined, orcid-givcaps, pv-listed-given). The one cell lower than master is PatentsView's Russian inventors written given first, at 2 names: 100.0 → 99.7%, one group in 300.

Whole names on the parliament lists, under all three bases:

List master branch
ua_rada 1,367 1,588 of 1,588
kz_senate 41 48 of 48
uz_senate 52 59 of 59

Each gain holds under both the given-first and the FAMILY_FIRST_GIVEN_LAST base. Every other list and base reads as on master, and none loses a name.

Sweep: base order × written position × each switch (none, initials_as_family, capitals_as_family, a rule on the base, middle_as_family), over eleven made-up lists:

  • 36 of 198 cases move, each a list written family first getting FAMILY_FIRST.
  • None reads fewer whole names.
  • Nothing moves under a FAMILY_FIRST base.

The -ovich check, on real lists. A name written given first, whose position votes family-first and that no other signal contests:

Population Such names
PatentsView US inventors 72 of 2,570,746
PatentsView Israeli inventors 9 of 49,196
PatentsView Argentine inventors 2 of 3,344
Croatian and Serbian names (-ić, -ović) no vote cast

Every same-order cell of the US, Israeli, Serbian, Croatian and Belarusian populations reads 99.3% or more, so no guard was proposed. In the draws, the signal casts 9,324 right votes and 41 wrong ones. The made-up shape the issue named (five Qqmilan Ppetar Jovanovich among fifteen silent names) does now move the order, but no real list measured has that shape.

Harness proof: with --set _MIN_VOTES=1000000 --set _MIN_PATRONYMIC_VOTES=1000000 --set _MIN_RUN_NAMES=1000000, all 96 rows written against their base read 0% and all 96 written in it read 100%, over 48 populations. No parliament list has its order or rule decided.

Recorded costs (each pinned by a test)

  • Bylines beside patronymic names. Zzyvan Petrovich Q. is now contested: its patronymic in the middle votes given-first against its trailing initial. Six such names read right under every base. But three bylines beside three such names fall under the trailing-initial signal's 60% share, and decide nothing.
  • Mixed East Slavic and Turkic lists. These decide no rule (4 of 7), so the East Slavic names' positions decide the order alone. Written in the middle under a FAMILY_FIRST base, they move the list to given-first, which reads each Turkic marker as the family. This is the open mixed-list question from What should Parser.suggest do with a list mixing -ovich and oʻgʻli patronymics, or a family-first list of them? (Karimov Rustam Anvarovich beside Aliyev Farrukh is forced given-first) #1356.
  • Pickles. A NameEvidence or Suggestion holding the new member does not unpickle under 3.1 (an enum value it doesn't know). This belongs in the release's pickle-break bullet.

For #1452

By the same rule, the surname signal's vote on two_family_names should be a Signal member of its own, not a second value of SURNAME. Four sites take any signal other than PATRONYMIC to be an order signal:

  • _order_ends
  • _disagrees
  • _setting_of
  • _checked_vote

A member that votes on another setting needs a branch at each of them, as PATRONYMIC has. One Signal → setting table read by all four would make the next member a one-line change.

Checks

uv run pytest (51,468 passed), uv run pytest -n0 -m serial, uv run mypy, uv run ruff check, and uv run sphinx-build -b doctest docs <tmp> all pass on the head rebased onto master. Each new test row was run against master, and the guard row was also run against its mutation; both fail where they should.

Review aspects run

  • pr-review-toolkit:code-reviewer: one finding, the dropped guard test, fixed and proven by mutation.
  • pr-review-toolkit:pr-test-analyzer: the dropped guard, the trailing-initial interplay, disagreeing(), the -ovich widening, mixed lists, title and post-nominal rows. All added or pinned.
  • pr-review-toolkit:comment-analyzer: included the type-design question of adding an enum member. Eight findings, fixed.
  • design-docs-reviewer: five older entries made false, the recipe for the -ovich counts, the measurement base. All fixed.
  • design-docs-reviewer on the fix commits, twice: the first pass found the ORDER FLOOR mechanism misstated, a misleading test name, Should the group suggester read common surnames outside East Asia? (Smith John, Jones David, Brown James gets no suggestion in either order) #1364's sizes without a head note, the pickle item without a test, the HR/RS count and the base sentence, all fixed; the second pass, over that fix, found one word wrong (Divide a family of two surnames by its own words, behind a comma too (#1456, #1479) #1485, not both PRs, changes _post_rules.py), fixed.
  • Not run: silent-failure-hunter (no error handling changed; the tool change is population tuples) and code-simplifier.

🤖 Generated with Claude Code

…1447)

A new public Signal member, PATRONYMIC_POSITION, cast beside every East
Slavic PATRONYMIC vote and read where rules/O1 reads the patronymic: the
ending on the middle word votes given-first, otherwise the patronymic
stands last and votes family-first. A list of Russian names written
family first now gets FAMILY_FIRST with the rule, reading its names of
two words too, where it got the rule with a given-first order; a
FAMILY_FIRST_GIVEN_LAST base gets FAMILY_FIRST through #1364's rule.

suggest_measure.py gains PatentsView's Israeli inventors and PSC's
Israeli, Serbian, Croatian and Belarusian filers for the -ovich check.
Measured at sizes 2 to 2,000, on the parliament lists under three bases,
and over the base x position x switch sweep (decisions/group-suggestion,
2026-11-19 #1447). No parse moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.2 milestone Nov 19, 2026
@derek73 derek73 added name-order Name order, family-first and two family names (rules/O) patronymics Father's names and the patronymic view (rules/R9) suggester The group suggester: Parser.suggest() and its signals labels Nov 19, 2026
@derek73 derek73 self-assigned this Nov 19, 2026
@derek73
derek73 merged commit 297750c into master Nov 19, 2026
14 checks passed
@derek73
derek73 deleted the claude/issue-1447-patronymic-position branch November 19, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

name-order Name order, family-first and two family names (rules/O) patronymics Father's names and the patronymic view (rules/R9) suggester The group suggester: Parser.suggest() and its signals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should a patronymic's position vote on a list's order? (Ivanov Sergei Petrovich × 20 leaves a given-first base given-first)

1 participant