Repository navigation
Read French dit and dite as connectives under a French choice (#1159) - #1513
Merged
Merged
Conversation
fr.toml lists both as conjunctions written default = false: a choice of French joins a hereditary dit surname (Dupont dit Lebrun) and a West African alias (Mamadou dit Madou), and the default is unchanged, since Dit and Dite are names too and on by default about nine real names broke against the ones fixed (decisions/P3, 2026-11-21). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fr.toml's dit and dite carry expands and a note saying why they are off by default. Tests pin the family-first orders, the empty head, a stacked and a strict French choice, case repair and initials, the name match, and the costs where Dit is a name (opening a longer name, ending one, a suffix comma); languages.rst, decisions/P3 and the release bullet state them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sured (#1159) A lone dit keeps its initial under the French choice (Jean Dit gives J. D.); the corpora's name uses are a Cantonese given name and Latvian and Slavic surnames, and the Arabic records are the connective read with too short a reach, stated as its own cost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cord the check (#1159) The join cuts any particle opening the second half, French de and Le as well as Abou and Al; the attribution is a Cantonese and a Latvian given name and a surname Dite, by the names' shape; the test's name says what it checks; nameparser/vocab/AGENTS.md records the check the review found missing, a joining word's costs run by class. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…forms (#1159) Without a comma the particle goes to the middle name given-first and the second half leaves the family under a family-first order; a family comma keeps the surname whole. Rows pin the comma and family-first forms, and nameparser/vocab/AGENTS.md's check names the comma shapes and orders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Relates to #1159 (its passing mention of
X dit Y; the issue'sépousequestion is not touched).What changes
fr.tomllists Frenchditanddite("called") as conjunctions, writtendefault = false. A caller who chooses French gets them; the default parse is unchanged.Under the choice, rule P3 (connectives) joins the words on both sides into one name part. Both real uses want that:
Dupont dit Lebrun;Mamadou dit Madou.Locale(languages={"fr"})Jean Dupont dit LebrunDupont dit, familyLebrunDupont dit LebrunMamadou dit Madou Traoredit MadouMamadou dit MadouDupont dit Lebrun, JeanDupont dit LebrunJean Dupont-dit-LebrunNeither word had any reading before, so no name reading clashes. P3's text needs no change. Its "
Juan and Garcia→ given" example already states the three-word reading this choice inherits.Why a conjunction and not another kind:
Ditopening a name as a particle.Why not on by default
I measured against master 488ea60 with the reading on by default first. Every local corpus together holds 67 distinct names with
ditorditeas a word, and 50 of them move.Ditelower-cased, its initial lost)Ditlower-cased)¹ Two of the three are boxes that filed the alias or the first surname as a middle name.
ORCID, PatentsView and PSC are scored against their filed boxes with
local_agreement.py --base. The ctgov and FEC lists have no boxes, so they are compared withsnapshot.py --local --base.The breaks are of two kinds.
Where
DitorDiteis the person's own name (in the corpora, a Cantonese given nameDitand Latvian and Slavic surnamesDite):Juan and Garcia. Invented shape:Sok Dit Chan.Tran Thi Dit).initials()drops it inside a joined part. Alone in its field it keeps one:Jean DitgivesJ. D..Where it is the connective but P3's join, one word on each side, falls short: a Levantine two-part surname whose second half opens with
AbouorAlloses that word from the family (X Dit Abou Akl→ familyAkl).That is more breaks than a handful, so the reading is written
default = false. Withdefault = false, the default moves 0 of the 67. The French choice moves the same 50 names to the same readings, costs included.Keeping the reading only where no name reads, such as a lower-case
ditalone, would need a property the build does not have, so I did not build one.Grid
All three name orders, all four comma shapes, and:
ditfirst, last, and alone after one word;J. dit Lebrun;-dit-case repair writes in lower case under the choice;initials()andcapitalized(), whereditstays lower case inside a mixed-case name and is written lower case when a name in one case is repaired.Under the choice, two more costs of the same kind:
Ditopening a name of three words or more joins the next word into the given name (Dit Jean Dupont→ givenDit Jean).Dupont dit Lebrun, Jr.→ givenDupont dit Lebrun, with agiven-or-familyreport). The default reads familyLebrun.The fields test now covers these. Further tests pin the family-first orders, a stacked and a strict French choice, case repair and initials, and the name match.
The name match under the French choice:
part-of-otheragainst the whole:Jean Dupont dit Lebrun/Jean Dupontand /Jean Lebrun.joined.match_diff.pyparses only underParser()andlocales.ES, so by construction it moves nothing here.Docs
ditnames" section with doctests. Its claim that a French choice "changes no other word" now namesditanddite.Reviews
Run on the first push: pr-review-toolkit
code-reviewer,pr-test-analyzerandcomment-analyzer(withdesign-docs-reviewer). Then acode-reviewerpass on each fix commit (63e2002, 2be5dd0, 1fa4255, 1d5f5d5).What they found, all fixed:
The vetting belongs on the word (nameparser/vocab/AGENTS.md's step 4). Each reading now carries
expandsand anotesaying why it is off by default.Missing test rows for:
Ditopening a longer name and ending one;Prose wider than the behavior.
ditopening the name is a name word" holds only for a two-word name.The first fix commit's review found its own widening: the initials sentence went from "no initial there" to "never", but a lone
ditkeeps its initial. It also found an unmeasured "Arabic names" attribution: the Arabic records useditas the connective, read with too short a reach. Both are now narrowed to what was measured, and the boundary is pinned (2be5dd0).The next two rounds found the cut is not specific to Arabic. Any particle opening the surname's second half is cut, French
deandLeincluded (1fa4255). The cost also differs by path (1d5f5d5, b6367cc):Jean Dupont dit de Lebrun→ familyLebrun);Dupont dit de Lebrun Jean→ familyDupont dit de);Rows pin all three. nameparser/vocab/AGENTS.md gains a "Step 2, for a joining word" check: run a joining word's costs by class, in each comma shape and order, before writing them. The last review found no false claim.
Checks
All pass on the pushed tree:
parity_check.py: 0 of 752 rows.The committed snapshot does not move, since it parses the default.
🤖 Generated with Claude Code