Skip to content

Join a double name written with spaces around its hyphen (Hélène Roche - Vidal gives middle Roche -, family Vidal) #820

Open

Description

@derek73

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 - PhD gives the suffix). Joined, MD-PhD would 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

  1. Join, or leave the dash a word and record that as an accepted cost?
  2. Is the joined name written with or without the spaces when rendered?
  3. A dash spaced on one side only (ROCHE -VIDAL): the same rule?
  4. 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 - MA gives maiden Smith -), recorded in decisions/M2's 2026-09-19 Should Doe, Jane nee Smith MA read MA as a credential? The maiden name keeps it, where it gives up PhD and Jr. #533 entry as left for this issue.
  5. 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

Activity

  1. self-assigned this
    on Oct 22, 2026
  2. added
    design
    on Oct 22, 2026
  3. derek73 commented on Oct 25, 2026

    @derek73
    OwnerAuthor

    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.

    corpus name word after the dash credential after the dash
    psc-individuals 454 1 (Camellus Law Llp - Trustee - I.O.M. …)
    ctgov-officials 212 before a comma, 20 after 26 after a comma (Alessandro Armuzzi, MD - PhD), 1 before
    fec-individuals 92 (NOEL - BLAGROVE, DIONNE) 0
    nepal-candidates 29 (Kamala Rokaya - Bohara) 0
    jrc-names 2,894, mostly news-text debris (Chelsea - Everton) 7 (Peter - I)
    tse-donors / ukec-individuals 7 / 1 0
    committed corpora — test rows only (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, family matches the surname box (comparing with dash spacing ignored):

    reading match
    today 17 / 364: Mr Adam John Holland - Edwards → middle 'John Holland -', family 'Edwards'
    (A) separator, dropped 0 / 364
    (B) suffix delimiter worse than A: it parts the surname itself
    (D) a spaced hyphen, joined 349 / 364

    The 15 misses under D, all of them:

    • 4 are not names (Wise - As Trustee, Watson - The Estate, Blake - Executor Of …, Cartwright - As Nominee For …).
    • 6 get the dashed pair right but not a surname word in front of it (Mrs Annette Erica Hinds Tia - Okwee → 'Tia-Okwee', box 'Hinds Tia - Okwee'; also Manzanaro 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.
    • 5 have more than one word after the dash, and the join takes only the first (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:

    • Credentials after a comma. Alessandro Armuzzi, MD - PhD reads correctly today: suffix 'MD - PhD', which is C10's Accepted bullet. Joined into MD-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.
    • A dash standing in for an empty field. In Mr - Ibraheem the 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 (ctgov MD / PhD, 55 strings; nepal Laxmi 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 whose surname holds a whitespace-flanked [-–—]+ token. Compare parse(name).family with the surname field, after folding \s*[-–—]+\s* to - and lowercasing both. D is re.sub(r'\s+([-–—]+)\s+', r'\1', name) applied before the parse.

  4. derek73 commented on Nov 8, 2026

    @derek73
    OwnerAuthor

    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 - Vidal gives middle 'Roche -', family 'Vidal'
    • Hélène ROCHE -VIDAL gives middle 'ROCHE', family '-VIDAL'

    If a lone dash becomes a separator here, Roche and Vidal still 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.

  5. derek73 commented on Nov 9, 2026

    @derek73
    OwnerAuthor

    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:

    Άννα Ψαρούδα - Μπενάκη              → middle 'Ψαρούδα -', family 'Μπενάκη'
    Αθανάσιος Κανακάρης - Ρούφος         → middle 'Κανακάρης -', family 'Ρούφος'
    Αγγελική - Ευφροσύνη Κιάου           → middle '- Ευφροσύνη'   (a double given name)
    

    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.

  6. added
    tokens
    suffixes
    and removed on Nov 10, 2026
  7. derek73 commented on Nov 12, 2026

    @derek73
    OwnerAuthor

    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:

    Input Reads
    John Smith, MD - PhD suffix MD, PhD
    John Smith, MD – PhD (en dash) suffix MD – PhD, C10's · boundary example
    John Smith, MD ‐ PhD (U+2010) suffix MD ‐ PhD
    John Smith MD - PhD (no comma) suffix MD - PhD

    🤖 Generated with Claude Code

  8. changed the title [-]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)[/+] on Nov 21, 2026
  9. changed the title [-]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`)[/+] on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

designenhancementsuffixestokens

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions