Skip to content

Read French dit and dite as connectives under a French choice (#1159) - #1513

Merged
derek73 merged 6 commits into
masterfrom
feat/french-dit-conjunction
Nov 21, 2026
Merged

derek73 merged 6 commits into
masterfrom
feat/french-dit-conjunction

Conversation

@derek73

@derek73 derek73 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Relates to #1159 (its passing mention of X dit Y; the issue's épouse question is not touched).

What changes

fr.toml lists French dit and dite ("called") as conjunctions, written default = 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:

  • a hereditary French two-part surname, one legal surname in France, Quebec and Switzerland: Dupont dit Lebrun;
  • a West African alias beside the given name: Mamadou dit Madou.
Text default (as on master) Locale(languages={"fr"})
Jean Dupont dit Lebrun middle Dupont dit, family Lebrun family Dupont dit Lebrun
Mamadou dit Madou Traore middle dit Madou given Mamadou dit Madou
Dupont dit Lebrun, Jean family Dupont dit Lebrun the same
Jean Dupont-dit-Lebrun one word one word

Neither 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:

  • Particle: strands the first surname in the middle name and reads Dit opening a name as a particle.
  • Alias marker (rule N4): cuts a legal surname in half.

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 dit or dite as a word, and 50 of them move.

Population Fixed Broken Wrong before and after
orcid-researchers 11 0 3
patentsview-inventors 2 3 —
psc-individuals 0 3¹ 1
ctgov-officials, 6 moves 2 2 (a surname Dite lower-cased, its initial lost) 2 case only
ctgov-contacts, 4 moves 3 0 1
fec-individuals, 2 moves 0 2 (a given name Dit lower-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 with snapshot.py --local --base.

The breaks are of two kinds.

Where Dit or Dite is the person's own name (in the corpora, a Cantonese given name Dit and Latvian and Slavic surnames Dite):

  • Three words: the name is read as one given name and loses its family, the same as Juan and Garcia. Invented shape: Sok Dit Chan.
  • Ending the name: it takes the word before it into the family (Tran Thi Dit).
  • Case repair: writes it in lower case.
  • Initials: initials() drops it inside a joined part. Alone in its field it keeps one: Jean Dit gives J. 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 Abou or Al loses that word from the family (X Dit Abou Akl → family Akl).

That is more breaks than a handful, so the reading is written default = false. With default = 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 dit alone, 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:

  • a title and a suffix;
  • capitals and lower case;
  • two in one name;
  • dit first, last, and alone after one word;
  • J. dit Lebrun;
  • the hyphenated spelling, whose fields read the same either way and whose -dit- case repair writes in lower case under the choice;
  • initials() and capitalized(), where dit stays 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:

  • Dit opening a name of three words or more joins the next word into the given name (Dit Jean Dupont → given Dit Jean).
  • A suffix comma after a joined name leaves no family (Dupont dit Lebrun, Jr. → given Dupont dit Lebrun, with a given-or-family report). The default reads family Lebrun.

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:

  • Either half of the surname is part-of-other against the whole: Jean Dupont dit Lebrun / Jean Dupont and / Jean Lebrun.
  • The hyphenated spelling is joined.

match_diff.py parses only under Parser() and locales.ES, so by construction it moves nothing here.

Docs

  • decisions/P3: a Standing line, plus a dated entry with the counts and a recompute recipe.
  • languages.rst: a short "French dit names" section with doctests. Its claim that a French choice "changes no other word" now names dit and dite.
  • Release log: one bullet.
  • Tests: a parametrized test in test_locales.py of the default against the French choice. The case table cannot hold a language choice that is not a pack.

Reviews

Run on the first push: pr-review-toolkit code-reviewer, pr-test-analyzer and comment-analyzer (with design-docs-reviewer). Then a code-reviewer pass 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 expands and a note saying why it is off by default.

  • Missing test rows for:

    • the family-first orders;
    • the empty head;
    • a suffix comma;
    • Dit opening a longer name and ending one;
    • a stacked and a strict French choice;
    • case repair and initials;
    • the name match.
  • Prose wider than the behavior.

    • "dit opening the name is a name word" holds only for a two-word name.
    • The hyphenated spelling's case repair does move under the choice.
    • The release bullet had two examples.
  • The first fix commit's review found its own widening: the initials sentence went from "no initial there" to "never", but a lone dit keeps its initial. It also found an unmeasured "Arabic names" attribution: the Arabic records use dit as 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 de and Le included (1fa4255). The cost also differs by path (1d5f5d5, b6367cc):

    • given name first, with no comma or with a suffix comma, the particle goes to the middle name (Jean Dupont dit de Lebrun → family Lebrun);
    • under a family-first order the second half leaves the family (Dupont dit de Lebrun Jean → family Dupont dit de);
    • after a family comma the surname reads whole.

    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:

  • ruff, mypy and the vocabulary build check;
  • the full suite: 55,631 passed;
  • the Sphinx doctests and README;
  • parity_check.py: 0 of 752 rows.

The committed snapshot does not move, since it parses the default.

🤖 Generated with Claude Code

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>
@derek73 derek73 added this to the 3.2 milestone Nov 21, 2026
@derek73 derek73 added enhancement vocabulary Fixed by a word-list entry: per-word vocabulary and language packs labels Nov 21, 2026
@derek73 derek73 self-assigned this Nov 21, 2026
derek73 and others added 5 commits November 21, 2026 12:19
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>
@derek73
derek73 merged commit ad9d5d2 into master Nov 21, 2026
14 checks passed
@derek73
derek73 deleted the feat/french-dit-conjunction branch November 21, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement vocabulary Fixed by a word-list entry: per-word vocabulary and language packs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant