Skip to content

Should John Smith (;.MD) read suffix ;.MD? (an & or ; beside a period credential) #1172

Open

Description

@derek73

_period_chunks admits an & so that MD.& PhD reads as credentials. It also admits a leading or trailing & or ; on either side of the period, which looks incidental:

>>> parse("John Smith (MD.& PhD)").suffix
'MD.& PhD'
>>> parse("John Smith (;.MD)").suffix
';.MD'
>>> parse("John Smith (&.MD)").suffix
'&.MD'

The question: should a credential with a stray edge mark still read as one, or should only the MD.& PhD shape be admitted? Narrowing it would move readings, and nobody has measured it over the corpora yet. That count comes first (snapshot.py --local for ctgov, which holds hand-typed bracketed credentials). Found by #1153's simplify pass.

Activity

  1. self-assigned this
    on Nov 8, 2026
  2. added
    suffixesGenerational suffixes and credentials (rules/S)
    nicknamesNicknames, brackets and quoted names (rules/N)
    tokensTokens, separators and punctuation (rules/T)
    and removed on Nov 8, 2026
  3. derek73 commented on Nov 12, 2026

    @derek73
    OwnerAuthor

    A data point from #1268's work, measured on master 670b349, 2026-11-12, over all 26 corpora (the 16 local corpora as cached).

    This issue's shape (a ; or & against a period at a credential's edge, ;.MD, &.MD):

    • 0 real names. FEC holds 5 bare &. words with no credential chunk, which read as a given name.
    • The admitted shape, a trailing & after a period (MD.& PhD): ctgov-officials 6, FEC 1.
    • Inside brackets: no name holds either.

    A semicolon inside brackets is rarer still: ctgov 2 names, ORCID 2. Today's readings of made-up names in the same shapes:

    Input Reads
    Jane Doe (;.MD) suffix ;.MD
    Jane Doe (&.MD) suffix &.MD
    Jane Doe (MD.;PhD) suffix MD.;PhD (one word, through its chunks)
    Jane Doe (MD; PhD), (MD;PhD), (MD ; PhD) nickname
    Jane Doe (M.B; B.CH) nickname M.B; B.CH
    Jane Doe (B.Sc; M.Sc; Ph.D.) middle Doe B.Sc;, family M.Sc;, suffix Ph.D.
    Jane Doe (B.Sc;M.Sc;Ph.D.) middle Doe, family B.Sc;M.Sc;Ph.D.
    Jane Doe, MD; PhD suffix MD; PhD (rules/C10)

    What the rows show:

    • Inside brackets the semicolon is word text, as the glued comma is (Should John Smith (MD,PhD) read the credentials when the comma has no space beside it? It gives nickname MD,PhD today #1268). rules/C10 reads it only after the first comma.
    • The (B.Sc; M.Sc; Ph.D.) row is the one that harms. It is how one ORCID record writes its degrees. The clause ends in a full stop, so it takes the period escape and is read bare. Outside the brackets, with no comma before it, C10 does not reach the semicolons, and the degrees become the surname.
    • Narrowing _period_chunks moves no real name: the edge-mark shape holds none. The question here would only change (;.MD)-like inputs.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

nicknamesNicknames, brackets and quoted names (rules/N)suffixesGenerational suffixes and credentials (rules/S)tokensTokens, separators and punctuation (rules/T)

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions