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

Closed as not planned

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, Join a double name written with spaces around its hyphen (Hélène Roche - Vidal gives middle Roche -, family Vidal) #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
    titles
    suffixes
    tokens
    on Nov 12, 2026
  3. derek73 commented on Nov 21, 2026

    @derek73
    OwnerAuthor

    Closing as declined (decided 2026-11-20): nobody writes the shape. By this issue's own measurement, 1,716 corpus names hold a hyphen other than the hyphen-minus and none of them moves: those hyphens join names, which rules/O6 already reads, and no corpus name joins a credential, generation or title with one. The change would touch about 15 sites in 6 modules and the renderer for no name anyone has. Reopen with a name from real data if one turns up.

    🤖 Generated with Claude Code

  4. added this to the 3.2 milestone 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

suffixestitlestokens

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions