Repository navigation
Count abdul's four name words in the parse, not in classify - #1531
Merged
Merged
Conversation
Classify tagged an `abdul` pair only where its own count found four name words, a hand copy of what the title runs, the trailing run and the paired-initials rule would later read. It now tags every `completes_any` pair, and post_rules splits an `abdul` pair back where the words the parse read as given, middle and family names, each holding a letter, number fewer than four, the parts of a family comma counted together. The split reproduces the parse without the join: P5 reads a pair opening the name, a family comma moves no role, and elsewhere the name's pieces are laid out by the order again. The count misjudged a contested title the parse reads as the family (`Tariq Abdul Aziz King`), a numeral behind an initial (`J. VI`) and a title word before a family comma (`Pope, Tariq Abdul Aziz`); readings move only under two_family_names, two_given_names and a family-first order. `_name_words`, `_BOUND_TAGS` and `_LEADING_TITLE_TAGS` go. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The split re-laid out the roles but left the pair one piece, so rules/O9's layout read `TARIQ Abdul Aziz` under capitals_as_family as given 'Abdul Aziz'; post_rules now hands its later readers the pieces with the pair cut, and returns group's pieces unchanged. The branches for a pair opening the name were unreachable, group leaving P5's pair untagged, and go. The records now name the shape the count also misjudged under the default (`Ali Abdul Rahim VI Hassan`), give the measurement's recipe, and point the superseded notes at the right entries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 22, 2026
derek73
added a commit
that referenced
this pull request
Nov 22, 2026
…tries The new #1531 sentence had replaced the one that "Moving the test later" answers to, so #1464's narrowings read as #1531's; the old sentence is back as history and the lesson follows #1531's in the paragraph. The #1469 Standing line no longer leaves `haji` to a caller beside the line saying locales.MS reads it; the 2026-11-19 entry's left-out question is noted as declined; and the 2026-11-21 entry gives haji's counts, the populations and its recipe. The #1059 entry says its figures come from the issue's closing comment, which names no command. Co-Authored-By: Claude Opus 5.5 <[email protected]>
derek73
added a commit
that referenced
this pull request
Nov 22, 2026
* Bring the contributor docs up to the 3.2 cycle Root AGENTS.md: `_normalize`'s edges (#1335, #1151), BOUND_SECONDS_LISTED beside the second-word phrases, NameEvidence's ADDED_IN field, and the initial veto as a property of the script rather than of Latin alone. nameparser/AGENTS.md: a count of name words reads roles, not tags (#1531), and a marker written with a full stop belongs in a title-run grid (#1529). rules/README.md's glossary and C12/C16 follow #1531's count and C6's widening; the vocab README and the locales exemplar table name this cycle's packs. The open-issue paragraphs in AGENTS.md and CONTRIBUTING.md no longer say the issues are being worked on. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Bring decisions/ and mechanisms.md up to the 3.2 cycle Two declines no decisions file recorded get dated entries: Catalan `dels` (#1059, decided 2026-11-20) and the Bengali and Urdu honorifics (#1469, decided 2026-11-21), with `haji` under locales.MS a Standing line of its own. Open lines citing an issue since closed now say so (#1268, #1231, #1178, #1179, #1468, #1149); S8's `Abd Allah` example reads as P12's Latin join has it; P12's `عبد` count is dated; and mechanisms.md names locales.CS beside locales.VI as a pack whose fragment removes readings. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Restore the one-word-path paragraph's history and complete the 3.2 entries The new #1531 sentence had replaced the one that "Moving the test later" answers to, so #1464's narrowings read as #1531's; the old sentence is back as history and the lesson follows #1531's in the paragraph. The #1469 Standing line no longer leaves `haji` to a caller beside the line saying locales.MS reads it; the 2026-11-19 entry's left-out question is noted as declined; and the 2026-11-21 entry gives haji's counts, the populations and its recipe. The #1059 entry says its figures come from the issue's closing comment, which names no command. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Claim only the provenance the #1469 and #1059 records hold Co-Authored-By: Claude Opus 5.5 <[email protected]> * Keep only the routing in the open-issue paragraphs Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Merged
derek73
added a commit
that referenced
this pull request
Nov 22, 2026
* Release 3.2.0 The 3.2.0 release-log entry gets its summary and its date, and two bullets it lacked: the parse cost (#1435, #1436), counted with tools/perf/call_count.py against v3.1.0 (285.72 to 195.72 calls on py3.11, 277.72 to 186.72 on py3.15), and the pickles 3.1 cannot load (a Lexicon, Parser or matcher pickled by 3.2), re-checked with the 3.1.0 wheel outside the tree. README.rst announces 3.2 above the 3.0 and 3.1 notices; its Spanish and Argentine figures, re-taken with decisions/readme-figures' recipe, read as they did. PRE_RELEASE is cleared and CITATION.cff names 3.2.0. migrate.rst's Abdul entry counts name words, as #1531 made it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Open the README's 3.2 notice with the vocabulary and the four new packs Co-Authored-By: Claude Opus 5.5 <[email protected]> * Word the README's 3.2 notice as decided Co-Authored-By: Claude Opus 5.5 <[email protected]> * Correct two release-log wordings the claims review found The parse-cost figure is a mean over the reference name's 50 forms (Juan0000 to Juan0049), and the bullet keeps one example, as the release-log rule asks. The Malay pack's Tuan stays a name word with no report, where Tan and Sri outside their phrase report title-or-name. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Say where the Malay pack's Tan and Sri report Only opening a name: Ahmad Tan Ali and Devi Sri Rajan report nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Place the README's 3.2 notice after the 3.1 one The notices now read 3.0, 3.1, 3.2; the 3.2 notice follows the whole 3.1 block, its closing paragraph included, and stands before Installation. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Place the README's 3.2 notice before the closing Getting started paragraph The paragraph now closes all three notices: 3.0, 3.1 and 3.2, then Getting started, then Installation. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Name the two tools the README's Getting started paragraph takes a reader through "Both" lost its referent once the 3.2 notice stood between it and the 3.1 notice's two tools. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Add two Hindi examples to the README's shapes A Devanagari salutation in the Other scripts block, and the romanized Shri read as a name by default and as the title under locales.HI in the Language packs block. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Lead the README's 3.2 notice with a short bold sentence Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[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.
This PR builds the first behavior-changing candidate #1528 listed:
abdul's four-word guard (rules/P12, writtenlong_names_onlyon its reading, #1464) moves out of classify. The guard is now counted from the parse in post_rules. #1528's third candidate goes with it, because the numeral test lived in the deleted count.What changes
completes_anypair,abdul's included, and the count goes. That deletes_name_words,_BOUND_TAGSand_LEADING_TITLE_TAGS; nothing else read them.Ram Bahadur B.K.keepB.K.as its family name? #864's paired initials, and "nothing after the pair but an untagged word".abdulpair back where there are fewer than four. It sits beside Should جميل عز الدين read family عز الدين, the الدين joining the word before it? #1072's two-word split, before H1.Tariq - Abdul Aziz) counts as none.Haddad Abdul Aziz, Tariqreads as its comma-less twinTariq Haddad Abdul Aziz. A part past a second comma holds no name words (rules/C2), so nothing past it counts either way. No corpus name moved by this clause alone._assign._name_positions), the pair as two pieces.BOUND_PHRASE_TAGfrom the bound word, so rules/O6's and O7's unit counts read the pair as two words, as they did when the join was declined.assembledrops the tag from published tokens, and neithersuggestnor the name match reads it.Measured moves (against master b339036)
Corpora. The population was every committed corpus name and every name in the 18 local corpora holding
abdul: 26,430 names. Within it, classify's count was asked of a pair in 3,978.two_family_names(withlocales.ES, which sets it),two_given_names, FAMILY_FIRST, those combined, andcapitals_as_familyunder FAMILY_FIRST or withtwo_given_names.vocab:title-ambiguous) that the parse reads as the family name. Invented example:Tariq Abdul Aziz Kingundertwo_family_namesread middle 'Abdul Aziz', family 'King', and now reads family 'Abdul Aziz King'.Grid. 4,921 invented names under the same 20 configurations moved 5,735 of 98,420 rows. Each move is one of four shapes the old count misjudged:
King,Prince,Pope,DeanAli Abdul Rahim VI Hassannow reads middle 'Abdul', family 'Rahim'J. VIPope, Tariq Abdul AzizThe second shape is the only one that moves under the default policy (165 rows, toward the split). The old count counted
Hassan, which the parse reads as a suffix. The #1464 decisions entry had recorded this shape as still wrong.Proof
reading, each report's detail and alternative,initials()andstr(). Control: plain master differs on 5,791 rows, the moves abovetools/differential/snapshot.jsonlcorpus_rules.jsonlregenerated)cases.pybound_pairsscaling row includedmeasure.py --base(merge base b339036)parity_check.pymypy,ruff checkFrames per parse (py3.11; default / FAMILY_FIRST)
Dr. Juan0001 de la Vega III(reference)Smith, JohnJohn SmithTariq Abdul Aziz HassanTariq Abdul AzizAli Abdel Mahdi Hassan Omar,Abu Bakr Mohammed Ali Hassan Omar KhalidTariq Abdul Azizpays 15 frames: the pair is joined in group, then split back here and its piece cut.Tariq Abdul Aziz Hassanpays 2 fewer, with no count to make.completes_anyname of four words pays nothing.Docs
abdulExcept says what counts, with examples for the mark and the family comma.Abduljoin the word after it when it is not the first word? (Ahmad Abdul Rahmangives middleAbdul, familyRahman) #1464 entry, and a dated 2026-11-22 entry. It holds the decision, the definition, the measurement, the oracle and the frames.Abduljoin the word after it when it is not the first word? (Ahmad Abdul Rahmangives middleAbdul, familyRahman) #1464's bullet is amended rather than given a new one, since ShouldAbduljoin the word after it when it is not the first word? (Ahmad Abdul Rahmangives middleAbdul, familyRahman) #1464 is unreleased and a 3.1 user sees one change. The bullet gains this PR's link.Declined
Reviews
PR review toolkit:
TARIQ Abdul Azizundercapitals_as_familyread given 'Abdul Aziz'. Fixed in 5479feb, with a row.BOUND_SECOND_TAGguard survives its mutant, since with the shipped vocabulary no word heads both pairs. It is kept for caller lexicons.Haddad, Tariq Abdul Azizsat in the stays-apart fence though it joins. It is replaced byAli Abdul Rahim VI Hassan, a shape the grid had missed, which moves under the default.Abduljoin the word after it when it is not the first word? (Ahmad Abdul Rahmangives middleAbdul, familyRahman) #1464 entry's "What is still wrong" bullet records the fix.Second round on 5479feb and cfcb29e:
statetouches no reader outside post_rules, thatpiecesandpiece_tagsstay in step, and thatParser.revisematches master.Open for a decision, not changed here: a name word now counts whatever its vocabulary, so a birth marker the parse reads as a name word counts too. For example,
née Aziz Abdul Rahimreads family 'Abdul Rahim'.🤖 Generated with Claude Code