Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

## Standing

- A family word whose particle reading is written `capital_opening` (`ter` in nl.toml, `der` in de.toml and nl.toml, compiled into the private `CAPITAL_OPENING_PARTICLES`) is written with a capital where the word before it in the family name, in the order the family view joins its words, is no particle by its tag or by its last hyphen part, where it opens the family name the word written right before it counting whatever its role and a last middle word ending in a particle part counting too (`LEVON TER PETROSYAN` → 'Levon Ter Petrosyan', `ARMEN DER KIUREGHIAN` → 'Armen Der Kiureghian'), and keeps its lowercase after one (`JAN VAN DER BERG` → 'Jan van der Berg', `DER BERG, JAN VAN` → 'Jan van der Berg', `ANKE MAITLAND-VAN DER ZEE` → 'Anke Maitland-van der Zee', `VAN DER WALT` → 'Van der Walt'); a middle `ter` keeps its lowercase (`JAN TER HORST VAN DER BERG` → 'Jan ter Horst van der Berg'); the costs are a Dutch surname opened by `ter` (`GERARD TER BORCH` → 'Gerard Ter Borch'), a German `der` behind an unlisted word (`KAREN AUS DER FÜNTEN` → 'Karen Aus Der Fünten') and a German epithet (`JOHANN DER JÜNGERE` → 'Johann Der Jüngere') — 2026-11-09 #1224, DECIDED.
- A family word whose particle reading is written `capital_opening` (`ter` in nl.toml, `der` in de.toml and nl.toml, compiled into the private `CAPITAL_OPENING_PARTICLES`) is written with a capital where the word before it in the family name, in the order the family view joins its words, is no particle by its tag or by its last hyphen part, where it opens the family name the word written right before it counting whatever its role and a last middle word ending in a particle part counting too (`LEVON TER PETROSYAN` → 'Levon Ter Petrosyan', `ARMEN DER KIUREGHIAN` → 'Armen Der Kiureghian'), and keeps its lowercase after one (`JAN VAN DER BERG` → 'Jan van der Berg', `DER BERG, JAN VAN` → 'Jan van der Berg', `ANKE MAITLAND-VAN DER ZEE` → 'Anke Maitland-van der Zee', `VAN DER WALT` → 'Van der Walt'); a middle `ter` keeps its lowercase (`JAN TER HORST VAN DER BERG` → 'Jan ter Horst van der Berg'); the costs are a Dutch surname opened by `ter` (`GERARD TER BORCH` → 'Gerard Ter Borch'), a German `der` behind an unlisted word (`HANS UNTER DER LINDE` → 'Hans Unter Der Linde'; `aus` listed since 2026-11-20 #1284) and a German epithet (`JOHANN DER JÜNGERE` → 'Johann Der Jüngere') — 2026-11-09 #1224, DECIDED.

Elsewhere: a particle opening a hyphenated word and the question this rule answers, decisions/R4's 2026-11-08 #1224 entry; how a particle is written otherwise, decisions/R4.

## Log

- 2026-11-09 #1224, decided in chat — A TER OR DER OPENING THE FAMILY NAME TAKES ITS CAPITAL. decisions/R4's #1224 entry left the spaced Armenian prefix lowercase (`LEVON TER PETROSYAN` → 'Levon ter Petrosyan', `ARMEN DER KIUREGHIAN` → 'Armen der Kiureghian', as 1.4.0 through 3.0.1 give it) and put it to the maintainer, who decided that a spaced `ter` or `der` opening the family name is written with a capital and one following another particle keeps its lowercase. Measured 2026-11-09 over every mixed-case name in the committed corpora (`tools/differential/corpus*.jsonl` save `corpus_rules.jsonl`, which holds the rules' own examples) and the 16 local corpora under `~/.cache/nameparser-tools/local` (each source's `raw.jsonl` where it has one, else its `corpus.jsonl`), every occurrence counted, on the tree before the change: a name split on whitespace (a comma its own token), each `ter` or `der` word, case-insensitive, that is neither the name's first nor its last word and has a word after it, classed as OPENING or AFTER A PARTICLE by whether the previous written word's last hyphen part is one of `van von de den in op uit vd v.d. zu auf d v vom aan onder voor bij la le`, and by its first letter's case (a word all in capitals counted apart). `der` opening: 45 capitalized (4 more written in capitals) to 28 lowercase, and none of the 28 a surname the word opens: `Karen aus der Fünten` (`aus` is no particle in the vocabulary), the epithets of `Alexandre Dumas der Ältere`, `Willem-Alexander der Nederlanden`, and text that is no name. The 45 capitalized are Armenian surnames (`Peter Der Manuelian`, `Cheryl Der Ananian`), Taiwanese given names (`Jung Der Wang`, `Ja Der Liang`; four of the 45 from Taiwan by the source's country), German epithets (`Peter Der Grosse`, `Manfred von Richthofen Der Rote Baron`) and others (`Iba Der THIAM`). `der` after a particle: 1,087 capitalized to 2,814 lowercase. `ter` opening: 70 capitalized (1 more in capitals) to 81 lowercase; with a next word matching `(yan|ian|ean|jan|ants|unts|ounian|ouni)$`, case-insensitive, 17 capitalized (counting the one in capitals) to 0, a count JRC-Names inflates with its many spellings of one person (`Levon Ter Petrosian`, `Ter Petrossian`, `Ter Petrosjan`); by the country a source records, the Netherlands writes the opening `ter` both ways, 26 (and 7 more of nationality `Dutch`) capitalized to 39 lowercase. So the opening `der` is capitalized by its writers and the opening `ter` is split, and only the particle before the word separates the Dutch and German `der` written lowercase (`van der`, `von der`), which keeps its lowercase. The property is a reading's (`capital_opening`), not a kind's: `ter` is a `preposition` and `der` an `article`, the kind `de` and `la` are too. The word before is read in the family name as the family view joins its words, so a particle folded in after a comma counts (`DER BERG, JAN VAN` → 'Jan van der Berg'); it counts as a particle by its tag or by its last hyphen part being particle vocabulary. Where the word opens the family name, the word written right before it counts the same way whatever its role, decided in chat after review: a Dutch surname written without a given name capitalizes only its first particle, which the parse reads as the given name (`VAN DER WALT` → 'Van der Walt', `VAN TER HORST` → 'Van ter Horst', `DR. VAN TER HORST` → 'Dr. Van ter Horst', a nickname too, `JAN "VAN" TER HORST` → 'Jan "Van" ter Horst', and a given name revised in, `revise(parse("JAN TER BERG"), given="JAN VAN")` → 'Jan Van ter Berg'), DECIDED; the reading where a word of another role was no particle of the family's, which a first fix of the review built, gave 'Van Der Walt' forced and moved three entries of the snapshot's forced view (`Van der Walt`, `Van der Merwe Jan`, `Sr. van der Berg, PhD`), which now read as before the change. The last middle word also counts by its hyphen part alone, the case of `DER ZEE, ANKE MAITLAND-VAN` → 'Anke Maitland-van der Zee', whose `Maitland-van` the parse reads as a middle name. A middle `ter` keeps its lowercase (`JAN TER HORST VAN DER BERG` → 'Jan ter Horst van der Berg'). A family spliced in as raw text is read by the vocabulary, the word and the word before it alike, so `replace(family="TER PETROSYAN")` repairs as `revise()` and a fresh parse do ('Ter'). The first build read the word before in the written order, which review found breaking the comma shapes (`DER BERG, JAN VAN` gave 'van Der Berg'), so the family name is read in its own order; a first fix of that review also read a word of another role as no particle, which the decision above reversed, restoring the any-role reading for the word written right before the family name. Review also found that only `ANNA AZ- DER BERG` told the tag test from the hyphen test, that only `MAITLAND-VAN DER ZEE, ANKE` tested a hyphenated word ending in a particle inside the family name, and that only `MAITLAND-VAN DER ZEE` (given `Maitland-Van`) tested one written right before it. A title that is also a particle counts as the particle before it, by the same any-role reading (`FREIHERR TER HORST` → 'Freiherr ter Horst', `ST. TER HORST` → 'St. ter Horst'), where a title that is not keeps the word its capital (`SIR TER HORST` → 'Sir Ter Horst'). DECLINED: a next word matching the regex above as the signal for the Armenian prefix, which would keep `Gerard ter Borch` lowercase, but reads a language from a Latin spelling (AGENTS.md's design philosophy). THE COSTS, accepted: a Dutch surname opened by `ter` takes the capital (`GERARD TER BORCH` → 'Gerard Ter Borch'), as 26 of the 65 Netherlands rows write it; a German `der` behind a word the vocabulary does not list as a particle opens the family name (`KAREN AUS DER FÜNTEN` → 'Karen Aus Der Fünten', `aus` not added to the vocabulary); a German epithet the parse places in the family name takes the capital (`ALEXANDRE DUMAS DER ÄLTERE` → 'Alexandre Dumas Der Ältere', `JOHANN DER JÜNGERE` → 'Johann Der Jüngere', where 1.4.0 through 3.0.1 give 'der'); and the Taiwanese given-name syllable `Der`, which the parse puts in the family name (`JA DER LIANG` → family 'Der Liang', unchanged), now takes the capital its writers give it ('Ja Der Liang'). Pinned by rules/R12's examples, test_a_ter_or_der_opening_the_family_name_takes_a_capital and test_a_spliced_ter_reads_as_a_revised_one.
- 2026-11-09 #1224, decided in chat (its `KAREN AUS DER FÜNTEN` cost superseded by decisions/vocabulary-collisions' 2026-11-20 #1284 entry, `aus` now a listed particle) — A TER OR DER OPENING THE FAMILY NAME TAKES ITS CAPITAL. decisions/R4's #1224 entry left the spaced Armenian prefix lowercase (`LEVON TER PETROSYAN` → 'Levon ter Petrosyan', `ARMEN DER KIUREGHIAN` → 'Armen der Kiureghian', as 1.4.0 through 3.0.1 give it) and put it to the maintainer, who decided that a spaced `ter` or `der` opening the family name is written with a capital and one following another particle keeps its lowercase. Measured 2026-11-09 over every mixed-case name in the committed corpora (`tools/differential/corpus*.jsonl` save `corpus_rules.jsonl`, which holds the rules' own examples) and the 16 local corpora under `~/.cache/nameparser-tools/local` (each source's `raw.jsonl` where it has one, else its `corpus.jsonl`), every occurrence counted, on the tree before the change: a name split on whitespace (a comma its own token), each `ter` or `der` word, case-insensitive, that is neither the name's first nor its last word and has a word after it, classed as OPENING or AFTER A PARTICLE by whether the previous written word's last hyphen part is one of `van von de den in op uit vd v.d. zu auf d v vom aan onder voor bij la le`, and by its first letter's case (a word all in capitals counted apart). `der` opening: 45 capitalized (4 more written in capitals) to 28 lowercase, and none of the 28 a surname the word opens: `Karen aus der Fünten` (`aus` is no particle in the vocabulary), the epithets of `Alexandre Dumas der Ältere`, `Willem-Alexander der Nederlanden`, and text that is no name. The 45 capitalized are Armenian surnames (`Peter Der Manuelian`, `Cheryl Der Ananian`), Taiwanese given names (`Jung Der Wang`, `Ja Der Liang`; four of the 45 from Taiwan by the source's country), German epithets (`Peter Der Grosse`, `Manfred von Richthofen Der Rote Baron`) and others (`Iba Der THIAM`). `der` after a particle: 1,087 capitalized to 2,814 lowercase. `ter` opening: 70 capitalized (1 more in capitals) to 81 lowercase; with a next word matching `(yan|ian|ean|jan|ants|unts|ounian|ouni)$`, case-insensitive, 17 capitalized (counting the one in capitals) to 0, a count JRC-Names inflates with its many spellings of one person (`Levon Ter Petrosian`, `Ter Petrossian`, `Ter Petrosjan`); by the country a source records, the Netherlands writes the opening `ter` both ways, 26 (and 7 more of nationality `Dutch`) capitalized to 39 lowercase. So the opening `der` is capitalized by its writers and the opening `ter` is split, and only the particle before the word separates the Dutch and German `der` written lowercase (`van der`, `von der`), which keeps its lowercase. The property is a reading's (`capital_opening`), not a kind's: `ter` is a `preposition` and `der` an `article`, the kind `de` and `la` are too. The word before is read in the family name as the family view joins its words, so a particle folded in after a comma counts (`DER BERG, JAN VAN` → 'Jan van der Berg'); it counts as a particle by its tag or by its last hyphen part being particle vocabulary. Where the word opens the family name, the word written right before it counts the same way whatever its role, decided in chat after review: a Dutch surname written without a given name capitalizes only its first particle, which the parse reads as the given name (`VAN DER WALT` → 'Van der Walt', `VAN TER HORST` → 'Van ter Horst', `DR. VAN TER HORST` → 'Dr. Van ter Horst', a nickname too, `JAN "VAN" TER HORST` → 'Jan "Van" ter Horst', and a given name revised in, `revise(parse("JAN TER BERG"), given="JAN VAN")` → 'Jan Van ter Berg'), DECIDED; the reading where a word of another role was no particle of the family's, which a first fix of the review built, gave 'Van Der Walt' forced and moved three entries of the snapshot's forced view (`Van der Walt`, `Van der Merwe Jan`, `Sr. van der Berg, PhD`), which now read as before the change. The last middle word also counts by its hyphen part alone, the case of `DER ZEE, ANKE MAITLAND-VAN` → 'Anke Maitland-van der Zee', whose `Maitland-van` the parse reads as a middle name. A middle `ter` keeps its lowercase (`JAN TER HORST VAN DER BERG` → 'Jan ter Horst van der Berg'). A family spliced in as raw text is read by the vocabulary, the word and the word before it alike, so `replace(family="TER PETROSYAN")` repairs as `revise()` and a fresh parse do ('Ter'). The first build read the word before in the written order, which review found breaking the comma shapes (`DER BERG, JAN VAN` gave 'van Der Berg'), so the family name is read in its own order; a first fix of that review also read a word of another role as no particle, which the decision above reversed, restoring the any-role reading for the word written right before the family name. Review also found that only `ANNA AZ- DER BERG` told the tag test from the hyphen test, that only `MAITLAND-VAN DER ZEE, ANKE` tested a hyphenated word ending in a particle inside the family name, and that only `MAITLAND-VAN DER ZEE` (given `Maitland-Van`) tested one written right before it. A title that is also a particle counts as the particle before it, by the same any-role reading (`FREIHERR TER HORST` → 'Freiherr ter Horst', `ST. TER HORST` → 'St. ter Horst'), where a title that is not keeps the word its capital (`SIR TER HORST` → 'Sir Ter Horst'). DECLINED: a next word matching the regex above as the signal for the Armenian prefix, which would keep `Gerard ter Borch` lowercase, but reads a language from a Latin spelling (AGENTS.md's design philosophy). THE COSTS, accepted: a Dutch surname opened by `ter` takes the capital (`GERARD TER BORCH` → 'Gerard Ter Borch'), as 26 of the 65 Netherlands rows write it; a German `der` behind a word the vocabulary does not list as a particle opens the family name (`KAREN AUS DER FÜNTEN` → 'Karen Aus Der Fünten', `aus` not added to the vocabulary); a German epithet the parse places in the family name takes the capital (`ALEXANDRE DUMAS DER ÄLTERE` → 'Alexandre Dumas Der Ältere', `JOHANN DER JÜNGERE` → 'Johann Der Jüngere', where 1.4.0 through 3.0.1 give 'der'); and the Taiwanese given-name syllable `Der`, which the parse puts in the family name (`JA DER LIANG` → family 'Der Liang', unchanged), now takes the capital its writers give it ('Ja Der Liang'). Pinned by rules/R12's examples, test_a_ter_or_der_opening_the_family_name_takes_a_capital and test_a_spliced_ter_reads_as_a_revised_one.
Loading