Repository navigation
Join a Latin bound given name past the first word with the name word after it (#1464) - #1496
Merged
Merged
Conversation
…after it (#1464) abd, abdel, abdal and abou carry `completes_any` on their bound_given reading, and abdul `long_names_only` beside it: rules/P12 joins the bound word with a plain name word after it past the first name word, abdul only in a name of four name words or more, and position places the pair (family where it ends the name, one middle name inside it). `Tariq Abdel Aziz` gives family 'Abdel Aziz'; `Tariq Abdul Aziz` keeps middle 'Abdul'; `Haddad, Nadia Abd Karim` no longer reads ABD. abu and Arabic-script عبد are unchanged. The four-word count runs after classify's H9 phrase test, part by part: each part's leading title run counts as none, and after the pair only a plain word, a bound given name or a pair of initials up to the next comma, a numeral written other than in Title case not counting. Two properties compile into BOUND_COMPLETES_ANY and BOUND_LONG_NAMES_ONLY; the build refuses long_names_only alone. Rules P12, P5, O6 and S8 amended; decisions/P12 records the three routes measured, the three-word split by population and what is still wrong. Snapshot, rules corpus and CLDR agreement re-recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The count's skip of a word with no letter had no row reaching it, which codecov/patch reported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pen line at locales.MS (#1179) 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 #1464
As decided on the issue: a Latin bound given name joins the plain name word after it past the first name word, as an amendment to rules/P12 (a bound given name and the word that completes it), stated through two properties on the
bound_givenreading rather than a hard-coded set. Position places the pair, the family where it ends the name and one middle name inside it.abduljoins only in a name of four name words or more.abuand Arabic-scriptعبدare unchanged.What it adds
nameparser/vocab/ar.toml):completes_any = trueonabd,abdel,abdal,abou,abdul.long_names_only = trueonabdul, with the per-population three-word counts on its entry, so the next word declined is a data change.BOUND_COMPLETES_ANYandBOUND_LONG_NAMES_ONLY, compiled through theBEHAVIORALtable like any curated sub-set.trueor unwritten, and the build refuseslong_names_onlywithoutcompletes_any.Lexicon.add.long_names_onlyalone is accepted and inert, not refused, since an inert entry misparses nothing._classify.py): P12's phrase test also tags acompletes_anyword before a plain word: no tag except H9's contested-title one, and holding a letter. Group's existing P12 join pairs them, and the first word stays P5's._name_words) runs after H9's phrase test and reads each comma part before a maiden clause:Measured
Against filers' boxes, records whose name holds one of the five words, fixed / broken against master
1ca93b25. The recipe is in decisions/P12's 2026-11-19 entry.abduldeclined in three words (shipped)measure.py --baseagainst1ca93b25, on the final code, 30 steps, none failed:Abdafter a family comma, which no longer reads as the credential ABD.Abd Karim, MD, 49 ClinicalTrials.gov names), cutbinchains, and lower-cased the word.Frames (the AGENTS.md frame budget), counted with
sys.setprofileon py3.11:Dr. Juan0001 de la Vega IIISmith, JohnAbdul Rahman Ali(bound word first)Tariq Abdul Aziz(the four-word count)Tariq Abdel Aziz(the pair joins)Nadia Ali Abdul Rahim(the pair joins)Still wrong (recorded in decisions/P12)
Abdulalone as a middle name.Md Abdel Y.X Abdul Y VI Z, and a trailing bareCrown Princeunder a family-first order.abdul's three-word join on (Malaysia's ORCID filers box the pair as the family 183 to 2), pointing at ShouldPuan,CikandTuanread as salutations under a Malay choice? (Puan Hajah Ara binti Mohamedgives givenPuan) #1179.Changes
nameparser/_pipeline/_classify.py,_reading_index.py,_lexicon.py,tools/vocab/build.py,nameparser/vocab/ar.toml. Compiled modules rebuilt.Abdthat P12 now joins.Umm Kulthum, since a Latin pair P12 joins is one unit O6 takes.nameparser/AGENTS.mdsweep lessons this change earned.cases.pyrows across comma shapes, the three orders, capitals, lower case, titles, nicknames, maiden clauses,binchains, numerals and initials.parityrows were checked byparity_check.py(0 of 678 differ; three boundary rows whose title reading came with Phase 2: derive ambiguity from clashing readings and extend the gate to every reading kind #752 and Should a dotted title like "U.S. District Judge" read as a title, the way "US District Judge" does? #490 carry those labels), and thefix(#1464)notes against the 1.4.0, 2.0.0 and 3.1.0 wheels.addboth ways, and the glued delimiter for a Latin pair.Reviews
Run on this branch, each fix commit reviewed in turn:
pr-review-toolkit:code-reviewer).pr-test-analyzer).comment-analyzer).design-docs-reviewer).The reviews found:
Each is fixed with a row.
Full suite,
-m serial, mypy, ruff, Sphinx doctest, README doctest,build.py --checkandparity_check.pyall pass.🤖 Generated with Claude Code