Repository navigation
Read Ab opening a name as the given name, not the title Airman Basic (#1178) - #1523
Merged
Merged
Conversation
…1178) `ab` was en.toml's military title (Airman Basic) with no name reading, so it was the title opening every name and the part after every family comma (`Ab Hamid Mohd Nazahar`, `Ab Jansen`, `Jansen, Ab`, `AB Jansen`), and rules/H2's shape made the written-short `Ab.` a title too. - ms.toml gives `ab` a given reading with same_as abdul, Abdul written short, which H2's shape yields to and T8 divides glued; nl.toml a plain given reading, the Dutch name of its own, so the word is in SAME_AS_NAMED and the name match follows its link to Abdul only where it is written with its full stop. - en.toml's Airman Basic is written default = false: a plain English choice reads it gated by the name readings (rules/H9), a strict one reads `AB John Smith` as the rank; `ab` joins en's STRICT_UNGATED row. Docs in the same change: a decisions/vocabulary-collisions Standing line and Log entry (decided 2026-11-21, the measurements, the accepted costs), rules/H2 and T8 examples, the period-joined-words Open line for #1178 retired, indic-honorifics' pointer, a migrate.rst section and the 3.2 release log bullet; cases.py rows, a choices test in test_parser.py, name-match rows, the rules corpus and snapshot re-recorded (two new example names). A local_agreement test row that used AB as a title now writes LT. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d names - Case notes: `John Smith, AB` read title 'AB' with 'John Smith' whole in 1.4.0 to 2.1.0, `John Smith, MD, AB` the suffix through 2.3.0. Two inputs drawn from the local corpora are replaced with invented names. - New rows for moves no row pinned: `John Smith, AB.`, `Smith, John, AB`, `Ab. Smith, Ed` and `Vice Ab. Smith, Ed` (C4's count asking H2's shape), `Smith, John Ab.`, `Aminah Siti AB.`, the glued `Ali Budi Santoso.AB` (now rules/S3's suffix), `Ab bin Hassan`, `Ab Pieter Jansen`, `Chief Ab Smith`, and FAMILY_FIRST_GIVEN_LAST; tests for the title-or-name report under a plain English choice, a strict en+ms choice, and the name match under strict ms and nl. - decisions/vocabulary-collisions records costs 5 to 8, the plain-choice report, the strict ms match and the corrected figures (strict MS's five, the titled-out records, the committed count before the rule examples); "read as initials" becomes the given name Ab throughout. - The release bullet is trimmed to its example and limits; migrate.rst, the vocabulary notes and the STRICT_UNGATED comment say which strict choice reads the rank; decisions/T8 and period-joined-words keep `मो.` and `Mo.` with no issue named, and name-matching's pointer is dated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…strict MS split - Any choice of English reads the gated Airman Basic inside a title phrase (rules/H9: `Chief Ab Smith` → title 'Chief Ab'), so the release bullet, migrate.rst, en.toml's note and the decisions entry say the rank is read ALONE only under a strict English choice; two test rows pin the phrase under plain en and strict en+ms. - The strict Malay figure's four glued words split 2 suffix → family, 1 suffix → divided, 1 family → divided; the glued word has its stops, not three, and its row is renamed. - ms.toml's note writes AB. with its full stop and "after a comma"; the release bullet names 1.4.0 through 3.1.0. 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.
Closes #1178
abwas en.toml's military title, Airman Basic, with no name reading, so it was the title opening every name and the part after every family comma. Rules/H2's shape also made the written-shortAb.a title. #1383 already madeMdandMd.Muhammad written short; this PR does the same forAb, decided 2026-11-21.The change
abgets agivenreading withsame_as = "abdul"(Abdul written short). H2's shape yields to it, as it does toChas., and T8 divides it where it is glued (Divide a word glued to the next at its full stop, before any comma (rules/T8) #1304).abgets a plaingivenreading, the Dutch name in its own right (short for Abraham or Albert). It also reads undotted initials (AB Jansen) as the given name.SAME_AS_NAMED, so the match follows its link to Abdul only whereAb.is written with its full stop.militaryreading is nowdefault = false. A plain English choice turns it on, but the two name readings gate it (rules/H9). Only a strict English choice reads the rank alone (AB John Smith); any choice of English reads it inside a title phrase (rules/H9,Chief Ab Smith→ titleChief Ab).abjoinsen's row ofSTRICT_UNGATEDin tests/v2/test_reading_index.py, because a strict choice reads neither ms.toml nor nl.toml. A strict choice of English that also choosesmsornlgates it as a plain one does.The grid (on the tree)
enenms/MSnl/NLAb Faizal Mohd QirwanAbAb, middleFaizal MohdAbAb. Ghani HarunAb.Ab., middleGhaniAb.Ab.(H2's shape)Ab.Ghani HarunAb.Ab., middleGhani(T8)Ab.Ab.GhaniAb JansenAbAbAbJansen, AbAbAbAbAB JansenABABABAB John SmithABAB, middleJohnABJohn Smith, ABAB, givenJohn, familySmithAB, familyJohn SmithJohn Smith ABABABJohn Smith, A.B.A., middleB., familyJohn SmithPlain
MSandNLread as the default. Under both family-first orders,Abopening a name is the family (Ab Jansen→ familyAb), placed by the order once no title takes it.Things to watch
John Smith, ABreads givenAB, familyJohn Smith: the A.B. degree alone after a full name is the given name Ab, which gives the fields an unlisted pair of capitals gives.John Smith, AbandJohn Smith, AB.reverse the same way; an unlistedXY.would stay a title, but H2's shape now yields toAB.. On master (and from 2.2.0) it read titleABwith the names right. This affects 4 ClinicalTrials.gov names. No credential reading is added; NPPES writes the degree 14 times in 4.8M providers.ABnow joins the suffix (John Smith, MD, AB→ suffixMD, AB, as 1.4.0 read it): 12 names.John Smith AB).A.B.written with its stops is unchanged: initials before a comma, the family at the end.T8's glued form divides (
Ab.Ghani Harun→ givenAb., middleGhani), asMd.Delowarhas since ShouldMohd RahmanmatchMohammad Rahman? #1383. The period-joined-words Open line for ReadAbat the head of a name as a given name, Abdul written short (MalayAb Hamid Mohd Nazahargives titleAb) #1178 is retired with a Log entry. What it also named stays as it was, with no issue open: unlisted stubs (Gio.Batta, which no local corpus writes) and the Devanagariमो..The name match:
Ab. Rahman/Abdul Rahmanis nowlisted-spelling, consistent (master:given-one-side).Ab Rahman/Abdul Rahmanis a conflict, becauseAbis also the Dutch name, which is not Abdul.Ab. Hamid Rahman/Abdul Hamid Rahmanis a conflict, because Abdul joins the next word (rules/P5) andabdoes not (below).match_diff.py --base: 8,294 of 691,218 rows move, every one a pair holding anabname. The key guarantee holds (0 consistent pairs share no key).Not joined like Abdul.
Ab Faizal Mohd Qirwanreads givenAb, middleFaizal Mohd, whereAbdul Hamid ...reads givenAbdul Hamid. Abound_givenreading in ms.toml would join it, but it would also join a DutchAbto a second given name (Ab Pieter Jansen→ givenAb Pieter, probed withLexicon.add). I left it undecided and recorded it as a cost; it may be worth its own issue.The Bengali
মোঃ(the issue's first comment) is unchanged, left to an issue of its own.Further moves the reviews found, each now a case row and an accepted cost in the decisions entry:
ABbecomes rules/S3's suffix:Ali Budi Santoso.AB→ familyBudi, suffixSantoso.AB.Ab.as a name word, as ShouldChas. Smithread givenChas.? Abbreviated given names read as titles today #789 did forChas.:Ab. Smith, Ed→ suffixEd. A title modifier before it is a name word (Vice Ab. Smith, Ed→ givenVice).AB Jansen'sinitials()givesA. J., not two initials.Ab Jansen/Abraham Jansenis a conflict, since no familiar pair links them.title-or-namereport whereAbopens a name.ms, the bareAb Rahman/Abdul Rahmanislisted-spelling.Chief Ab Smithreads titleChief, givenAbby default, and titleChief Abunder any choice of English.Measured (2026-11-21, against master 6ff048f)
tools/name_usage.py ab --boxes,--country MY,--country NL):config_diff.py diff default plain:en strict:en plain:MS strict:MS plain:NL strict:NL --committed --local all --match '(?i)(?<![^\W\d_])a\.?b\.?(?![^\W\d_])' --readingsin both trees, compared line by line): 413 local and 7 committed names hold it.enand strictNLmove none; strictMSmoves 5 (Ab.opening a name 1; a gluedAb.Xending a name 4).Ab/ABopening a name, from title to given name: 28 (16 Abdul written short, 4 Dutch, 5 written as initials, 3 others).Ab Rahman, Siti→ familyAb Rahman).Full Name, ABreversing: 4.AB.now the family: 1.measure.py --base, 30 steps, none failed):Ab7,AB2,Dr.1). PatentsView gains 1, and 1 leaves that count (Ab.); PSC and cz-candidates do not move.In the same change
Abat the head of a name as a given name, Abdul written short (MalayAb Hamid Mohd Nazahargives titleAb) #1178 is retired with a Log entry, and decisions/indic-honorifics' pointer is updated.Ab. Ghani Harun; rules/T8 (a word glued to the next at its full stop) gainsAb.Ghani Harun.abin the mark's rows.STRICT_UNGATEDgainsab.ABas a title now writesLT.Checks
build.py --checkis current.Reviews
bb01a01e):John Smith, ABwas wrong, and the reversal also reachesAbandAB..AB., strict-msmatching,Ab bin Hassan, the plain-enreport,Chief Ab, FAMILY_FIRST_GIVEN_LAST).X.ABfamily-to-suffix move, the strict-MS figure, the titled-out sum, the committed count, the plain-choice report, decisions/T8'sमो.pointer, and name-matching's pointer.1029d77c.1029d77c(code-reviewer): it found three issues, fixed in the next commit:Chief Ab, which every choice of English reads;🤖 Generated with Claude Code