Skip to content

Read capitals in the given-name slot as initials, opt-in, for citation bylines (Lee JW gives given JW; Fox MA gives suffix MA) #1551

Todo

Description

@derek73

Citation lists write given names as capitals with no full stops: Lee JW, Lee WNP. No setting reads those letters as separate initials, and some of them are read as a credential or leave the surname as a title.

On master 876e0d15, under Policy(name_order=FAMILY_FIRST):

>>> p = Parser(policy=Policy(name_order=FAMILY_FIRST))
>>> p.parse("Lee J.W.")    # given 'J.', middle 'W.', family 'Lee'
>>> p.parse("Lee JW")      # given 'JW', family 'Lee'
>>> p.parse("Fox MA")      # given 'Fox', suffix 'MA', no family
>>> p.parse("Knight AK")   # title 'Knight', family 'AK'

and by default Smith, JP gives suffix JP and no given name.

How common it is

From the pmc-citations local corpus (PubMed Central reference lists, fetched 2026-12-01, 68,215 records), by how the given names are written:

Order written Records Two or three undotted capitals
Fox DE (surname, no comma) 43,500 16,821 (38.7%)
Fox, D. E. 12,883 106 (0.8%)
D. E. Fox 11,832 26 (0.2%)

It is a habit of the comma-less surname-first style. In that order 56.2% are one capital and 0.2% hold a full given name. Under FAMILY_FIRST the same fetch read 91.0% of these right, and 3,175 of the 3,929 misses were initials read as a credential (#1546).

Proposed rule

When the caller turns the setting on, and a word of two or three capitals stands where the name order puts the given name, in a name that is not written wholly in capitals.

Then its first letter is the given name and the rest are middle names, each an initial: Lee JW gives given J, middle W. The word is not read as a credential, and a title word alone before it is the surname.

Because the caller has said the list is bylines, where that slot holds initials. The word alone cannot say so: JO, AL and ED are also given names, which is why the default should not move (#1137 closed on the same reasoning for order).

Except, in the first version, a name written wholly in capitals (LEE JW), where capitals mark nothing. This is the test the name match already applies (_match._capitals_word, "Its given or family name holds a lower-case letter" in docs/matching.rst), so a parse under the setting and a match would agree on which words are initials. Whether it should stay an exception is an open question below.

Accepted: a real two-letter given name typed in capitals in such a list (Lee JO for Jo Lee) reads as two initials.

Open questions

Related: #1137, #1254, #1355, #1391, #1546, #1547, #995.

🤖 Generated with Claude Code

Activity

  1. added this to the 3.3 milestone on Dec 1, 2026
  2. self-assigned this
    on Dec 1, 2026
  3. added
    design
    name-order
    initials
    on Dec 1, 2026
  4. derek73 commented on Dec 2, 2026

    @derek73
    OwnerAuthor

    Evidence from one byline user: in #1540 (comment), the author of citesync and CRediT Matrix says name matching covers their need. Their tools read names whose parts are already split (CFF, CodeMeta, JATS, Crossref). Initials only come up when a contribution statement's "J.W.L." is matched against the author list, which Parser().matching() already handles, so they don't need given and middle split for Lee JW.

    Their OpenAlex comparison doesn't bear on this either way: its Armitage JO misses come from order (the run doesn't turn on a surname-first order, so JO reads as the family), not from how the capitals split, and only 3 of its 15,309 names take that shape.

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

Metadata

Metadata

Assignees

Labels

designenhancementinitialsname-order

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions