Skip to content

Should a credential, generation or title joined by a hyphen other than the hyphen-minus read as one? (John Smith MD‐PhD gives family MD‐PhD, where MD-PhD gives suffix) #1349

Open

Description

@derek73

rules/O6 lists eight hyphens that join two names: the hyphen-minus, U+2010, U+2011, the figure dash, the en dash, the minus sign, and the small and fullwidth hyphen-minus. The name match has read all of them as one since #1264. The parser's tests for a joined credential, generation or title still split at the hyphen-minus (and the slash) only. So the same text written with any other hyphen becomes a name word.

Measured on master 970b54e, 2026-11-11 (‐ is U+2010; the en dash reads the same):

Input Reads With the hyphen-minus
John Smith MD‐PhD middle Smith, family MD‐PhD suffix MD-PhD
John Smith, NP‐C given NP‐C, family John Smith suffix NP-C
John Smith, OTR‐L given OTR‐L, family John Smith suffix OTR-L (suffix-or-name)
John Smith, FNP‐BC given FNP‐BC, family John Smith suffix FNP-BC
John Smith, M.D.‐Ph.D. given M.D.‐Ph.D., family John Smith suffix M.D.-Ph.D.
John Smith Jr.‐III middle Smith, family Jr.‐III suffix Jr.-III
Hans Meier Priv.‐Doz. middle Meier, family Priv.‐Doz. title Priv.-Doz.
Priv.‐Doz. Hans Meier given Priv.‐Doz. title Priv.-Doz.
Willem 's‐Gravesande family 's‐Gravesande, reports unbalanced-delimiter no report (#1241)
WILLEM 'S‐GRAVESANDE, capitalized() Willem 'S‐Gravesande Willem 's-Gravesande (#1280)
JOHN SMITH, PA‐C, capitalized() Pa‐C John Smith John Smith, PA-C

Hyphenated names themselves are not affected: Jean‐Paul Smith‐Jones and ANNA VAN‐DER‐BERG (case repair gives Anna van‐der‐Berg) read as their hyphen-minus forms do.

Where the hyphen-minus is asked alone:

  • _vocab._JOINERS, _JOINER_SPLIT, the "-" in … tests in _vocab, _comma, _classify and _post_rules.
  • N2's particle head (_extract._opens_a_listed_particle, word.partition("-")).
  • R4's hyphen clause in _render ("-".join).

_vocab._HYPHENS already holds the full set and _match reads it.

How often (2026-11-11): for every name in the 16 local corpora and the committed corpora, a script parsed the text as written and with each other hyphen mapped to the hyphen-minus.

  • 1,716 names hold another hyphen: jrc-names 1,662, orcid-researchers 50, govuk-people 1, corpus_rules 3.
  • One moves when mapped: C10's committed boundary row John Smith, MD – PhD (the spaced form, Should a lone dash be a separator, so John Smith - Jr. reads family 'Smith' rather than '-'? #820).
  • No real name moves, so every one of them is a hyphenated name, not a credential.
  • ctgov-officials holds no other hyphen at all. Its fetch folds none, so this is how the source writes them. Yet 1,670 of its names put a hyphen-minus inside a suffix or title, which is how large the class would be if a source wrote U+2010.

Options:

If (A) or (B) ships:

Open:

  1. A, B or C?
  2. Does the snapshot need a recorded control, given that no corpus name moves? A grid of the rows above, under the three orders and the four comma shapes, would carry the change.

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Nov 12, 2026
  2. added
    titlesTitles and honorifics (rules/H)
    suffixesGenerational suffixes and credentials (rules/S)
    tokensTokens, separators and punctuation (rules/T)
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

suffixesGenerational suffixes and credentials (rules/S)titlesTitles and honorifics (rules/H)tokensTokens, separators and punctuation (rules/T)

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions