Repository navigation
Open
Labels
designChanges what the model can express (a shape decision)enhancementsuffixesGenerational suffixes and credentials (rules/S)tokensTokens, separators and punctuation (rules/T)
Description
A double name written with spaces around its hyphen is split, and the dash is read as a name word. Every release since 1.4.0 reads it that way:
| Input | Reads | Written without the spaces |
|---|---|---|
Hélène Roche - Vidal |
middle Roche -, family Vidal |
family Roche-Vidal |
Anna - Maria Kiaou |
given Anna, middle - Maria |
given Anna-Maria |
Roche - Vidal, Hélène |
family Roche - Vidal (right, spacing kept) |
family Roche-Vidal |
How often it is written (surveys in the comments below):
- UK companies register: 454 names, 364 with the dash in the surname box. Today the family name matches that box in 17 of the 364; read as a joined hyphen, in 349.
- Greek politicians in Wikidata: 25 of 4,841 labels, 21 double surnames and 4 double given names.
- France's register of elected officials: 5 of 36,931, some spaced on one side only (
ROCHE -VIDAL). - Also in the US election filings (92), Nepal's candidates (29) and ClinicalTrials.gov officials (212).
Proposal, in rule shape
When: a dash (hyphen-minus, en dash, em dash) stands alone between two name words.
Then: it reads as a hyphen written with spaces, and joins them: Hélène Roche - Vidal gives family Roche-Vidal.
Because: a lone dash carries no name content, and where people type one it is inside a compound name.
Except, each a shape the corpora hold:
- A credential run after a comma stays as it reads today (
Anna Rossi, MD - PhDgives the suffix). Joined,MD-PhDwould stop being a listed credential and the comma would flip to a family comma. - A dash typed for an empty field is not joined to a title (
Mr - Ibraheem).
Accepted: more than one word after the dash joins only the first (Kuijpers - Van Den Bos).
Open questions
- Join, or leave the dash a word and record that as an accepted cost?
- Is the joined name written with or without the spaces when rendered?
- A dash spaced on one side only (
ROCHE -VIDAL): the same rule? - A dash before a suffix with no comma (
John Smith - Jr., which reads family-today): no real name in any corpus has this shape. Leave it, or read the dash as a comma there? The maiden clause is one place it shows (Jane Doe nee Smith - MAgives maidenSmith -), recorded in decisions/M2's 2026-09-19 ShouldDoe, Jane nee Smith MAreadMAas a credential? The maiden name keeps it, where it gives upPhDandJr.#533 entry as left for this issue. - Should one answer cover every dash? After a comma, the rule that parts a run of suffixes (C10) already treats the hyphen-minus and the en dash differently, and declaring the dash with
Policy(extra_suffix_delimiters={' - '})reaches only the part after a comma.
The slash is a separate question (MD / PhD, or an alternate surname), and stays out of this one.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
designChanges what the model can express (a shape decision)enhancementsuffixesGenerational suffixes and credentials (rules/S)tokensTokens, separators and punctuation (rules/T)
Activity
Narrow C3's and C10's Accepted bullets; point C9 and M2 at #819 and #820
derek73 commentedon Oct 25, 2026
Corpus survey, 2026-10-24: what a lone dash is in real data
I scanned every committed corpus and the eight cached local corpora for a dash (
-,–,—) standing alone between words. The ClinicalTrials.gov contact notes ("Call 1-877-CTLILLY … Mon - Fri") are left out. Counts are distinct strings.Camellus Law Llp - Trustee - I.O.M. …)Alessandro Armuzzi, MD - PhD), 1 beforeNOEL - BLAGROVE, DIONNE)Kamala Rokaya - Bohara)Chelsea - Everton)Peter - I)Smith, RN - CRNA; CLDR'sфон Брюль — мл.)The shape this issue opens with, a credential after a dash with no comma before it (
John Smith - Jr.), does not appear as a real name in any corpus. What people actually type is a hyphen with spaces around it inside a compound name.PSC shows which box the filer put each part in. Of its 454 names, 364 have the dash in the surname box (
Barnabas - Wood,Al - Kufi), 73 in the middle name and 17 in the forename (Alexandru - Ionut). Over the 364,familymatches the surname box (comparing with dash spacing ignored):Mr Adam John Holland - Edwards→ middle'John Holland -', family'Edwards'The 15 misses under D, all of them:
Wise - As Trustee,Watson - The Estate,Blake - Executor Of …,Cartwright - As Nominee For …).Mrs Annette Erica Hinds Tia - Okwee→'Tia-Okwee', box'Hinds Tia - Okwee'; alsoManzanaro Fernandez - Montes,Olugu Ikechi - Iro,Hameedi Shah - Jan,A A Al - Kuwari,Amobi Kesse - Adu). That is the ordinary multi-word-surname limit, the same without any dash.Kuijpers - Van Den Bos→'Den Bos',Short - Van Der Laan,Dickhoff - D'Eimar De Jabrun,Schwagele - Fan Moniz,Sanchez - Osorio Nicolas).So the data suggests a fourth answer: (D) a lone dash between two name words is a hyphen with spaces around it, and joins them (
Spindler - Vesel→ family'Spindler-Vesel',Doru - Liviu Constantinescu→ given'Doru-Liviu'). Whether the rendering keeps the spaces is a separate question.D cannot be a blanket rewrite. A naive join breaks two shapes the corpora hold:
Alessandro Armuzzi, MD - PhDreads correctly today: suffix'MD - PhD', which is C10's Accepted bullet. Joined intoMD-PhD, the run is no longer suffix vocabulary, and the comma flips to a family comma (family'Alessandro Armuzzi', given'MD-PhD'). The 26 ctgov rows show this is typed. The join must not reach a credential run, which also settles open question 3: the comma path stays as it is.Mr - Ibraheemthe filer typed-as the forename. Joined, it reads given'Mr-Ibraheem'. Today it reads title'Mr', given'-', family'Ibraheem'. A join must not take a title.Names in surname-comma form (
NOEL - BLAGROVE, DIONNE) already get the whole family right; only the spacing would change.On open question 2:
/comes up too (ctgovMD / PhD, 55 strings; nepalLaxmi Sarki / Acchami, 91), but it means "or" or names an alternate surname, which is a different question, so I'd keep it out of this rule.•and·show up only in jrc-names news extraction.Recipe: PSC rows come from
psc-individuals/raw.jsonl, keeping each record whosesurnameholds a whitespace-flanked[-–—]+token. Compareparse(name).familywith thesurnamefield, after folding\s*[-–—]+\s*to-and lowercasing both. D isre.sub(r'\s+([-–—]+)\s+', r'\1', name)applied before the parse.derek73 commentedon Nov 8, 2026
Another place a lone dash stands, from France's register of elected officials (2026-11-07): between the two halves of a double family name, spaced on both sides or on one. 5 of 36,931 names (
X - Y,X -Y,X- Y). Today the dash sticks to one half and the family name splits:Hélène Roche - Vidalgives middle 'Roche -', family 'Vidal'Hélène ROCHE -VIDALgives middle 'ROCHE', family '-VIDAL'If a lone dash becomes a separator here,
RocheandVidalstill split, unless the separator joins, like a hyphen. So the dash before a suffix (John Smith - Jr.) and the dash inside a family name want opposite readings. The two are told apart by what follows: a suffix word, or a name word.derek73 commentedon Nov 9, 2026
Greek writes a double surname with a spaced hyphen. Among Wikidata's Greek politicians (P27 Q41, P106 Q82955), 25 of the 4,841 Greek-script labels do, against 41 written with a joined hyphen. Measured on master ccaf6ad, every spaced one reads the dash as a name word:
So in this population the dash joins two names: 21 surnames and 4 given names. Option (A), dropping the dash, would read
Ψαρούδαas a middle name. A fourth option fits these names better: read a spaced dash between two name words as a joined hyphen.derek73 commentedon Nov 12, 2026
A data point for question 2 (should one answer cover every dash), measured on master 970b54e, 2026-11-11.
After a comma, rule C10 (the delimiter that parts a run of suffixes) already parts a run at a spaced hyphen-minus but not at another hyphen:
John Smith, MD - PhDMD, PhDJohn Smith, MD – PhD(en dash)MD – PhD, C10's· boundaryexampleJohn Smith, MD ‐ PhD(U+2010)MD ‐ PhDJohn Smith MD - PhD(no comma)MD - PhDJ.P. Smith/John Paul Smith,John Beth Smith/John Anne Beth Smith, and others) #1264, and Should a credential, generation or title joined by a hyphen other than the hyphen-minus read as one? (John Smith MD‐PhDgives familyMD‐PhD, whereMD-PhDgives suffix) #1349 asks the same question of a dash glued inside a word.🤖 Generated with Claude Code
[-]Should a lone dash be a separator, so `John Smith - Jr.` reads family 'Smith' rather than '-'?[/-][+]Should a spaced dash join a double surname? (`Hélène Roche - Vidal` gives middle `Roche -`, family `Vidal`, where `Roche-Vidal` is the family name)[/+][-]Should a spaced dash join a double surname? (`Hélène Roche - Vidal` gives middle `Roche -`, family `Vidal`, where `Roche-Vidal` is the family name)[/-][+]Join a double name written with spaces around its hyphen (`Hélène Roche - Vidal` gives middle `Roche -`, family `Vidal`)[/+]