Repository navigation
Read where an East Slavic patronymic stands as a vote on the order (#1447) - #1488
Merged
Merged
Conversation
…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>
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 #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:Sidorov Ivan Petrovich) votes that the family name is written first.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_firstalready counted with (_patronymic_end). No parse moves; this only changes whatParser.suggestsuggests.What changes
nameparser/_suggest.py_readcastsPATRONYMIC_POSITIONbeside every East SlavicPATRONYMICvote.David Michael Abramovich). A name against a decided order is listed indisagreeing().Signalmember, not aNameEvidencefield and not a vote counted only in the tally. The decisions file records the rule this sets: one member per kind of vote.FAMILY_FIRST_GIVEN_LAST: Should the group suggester read common surnames outside East Asia? (Smith John,Jones David,Brown Jamesgets no suggestion in either order) #1364's single rule now covers it. Where a decided rule meets a decided family-first order, that base getsFAMILY_FIRST, so a list whose patronymics stand last getsFAMILY_FIRSTwith no second rule.Parser.suggestdo with a list mixing-ovichandoʻgʻlipatronymics, or a family-first list of them? (Karimov Rustam AnvarovichbesideAliyev Farrukhis forced given-first) #1356 amended: a list whose patronymics stand last now gets family-first under a given-first and a given-last base, where it used to get the rule with given-first. The given-first order the rule brings, and_keeps_family_first, now act only where the votes decide no order. Under aFAMILY_FIRSTbase the outcomes are unchanged.tools/differential/suggest_measure.pygains the populations for the-ovichcheck: PatentsView's Israeli inventors, and PSC's Israeli, Serbian, Croatian and Belarusian filers.Parser.suggest's docstring and the module docstring.Ivanov Sergei Petrovich× 20 leaves a given-first base given-first) #1447 entry, and head notes on SIGNALS, TURKIC, THRESHOLDS, What shouldParser.suggestdo with a list mixing-ovichandoʻgʻlipatronymics, or a family-first list of them? (Karimov Rustam AnvarovichbesideAliyev Farrukhis forced given-first) #1356 and ORDER FLOOR.Measured
Run with
suggest_measure.pyagainst 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.
pv-RU-patronymicpv-RU-patronymic* 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:
ua_radakz_senateuz_senateEach gain holds under both the given-first and the
FAMILY_FIRST_GIVEN_LASTbase. 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:FAMILY_FIRST.FAMILY_FIRSTbase.The
-ovichcheck, on real lists. A name written given first, whose position votes family-first and that no other signal contests:-ić,-ović)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 Jovanovichamong 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)
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.FAMILY_FIRSTbase, they move the list to given-first, which reads each Turkic marker as the family. This is the open mixed-list question from What shouldParser.suggestdo with a list mixing-ovichandoʻgʻlipatronymics, or a family-first list of them? (Karimov Rustam AnvarovichbesideAliyev Farrukhis forced given-first) #1356.NameEvidenceorSuggestionholding 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_namesshould be aSignalmember of its own, not a second value ofSURNAME. Four sites take any signal other thanPATRONYMICto be an order signal:_order_ends_disagrees_setting_of_checked_voteA member that votes on another setting needs a branch at each of them, as
PATRONYMIChas. OneSignal → settingtable 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, anduv 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
disagreeing(), the-ovichwidening, mixed lists, title and post-nominal rows. All added or pinned.-ovichcounts, the measurement base. All fixed.Smith John,Jones David,Brown Jamesgets 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.🤖 Generated with Claude Code