Repository navigation
Description
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
- Names written wholly in capitals.
SMITH JWis 6 of the 43,500 in this sample, so no list we hold is written that way, but one could be (a database export in capitals). There the word's case says nothing, and only the slot and its length can mark it as initials, soLEE JOandWANG LIwould split too. Options: leave such names out; read them the same way under this setting; or a second setting for a caller who knows the list is bylines in capitals. If the parse reads them, should the name match follow, which today conflictsJP SMITHwithJOHN PAUL SMITH? - Is matching enough?
JO Armitagealready matchesJohn O. ArmitageandJ. O. Armitage. PubMed Central tags the given names as one box (EJ), so its agreement score would not move. The OpenAlex gold standard labels them apart (firstj, middleo). Which do callers need? - Scope of the credential part. Should the setting also decide Should capitals after a lone surname need words to spare before they read as a credential, under a family-first order? (
Fox MAunderFAMILY_FIRSTgives suffixMAand no family name) #1546, Should a title word followed by nothing but initials read as the surname? (Knight AKgives titleKnight, familyAK) #1547 and Should two capitals after a surname and comma read as initials when they are also a credential? (Smith, JPgives suffixJPand no given name; citation lists) #1391 for a caller who sets it, or should those be settled on their own? - Four or more capitals. 51 of the 43,500 (
Morais MLGDS). Matching stops at three. - Hyphened initials.
Li M-X(395 of the 43,500) stays one given name today, asJ.-P.does. - The letters as written. The rule above keeps
JandWwithout full stops;J.O.is cut intoJ.andO.today. - Name and shape. A boolean beside
initials_as_familyandcapitals_as_family, or a value of something wider. - The suggester. Whether
Parser.suggestshould propose it for a list likeorcid-byline.
Related: #1137, #1254, #1355, #1391, #1546, #1547, #995.
🤖 Generated with Claude Code
Activity
derek73 commentedon Dec 2, 2026
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 needgivenandmiddlesplit forLee JW.Their OpenAlex comparison doesn't bear on this either way: its
Armitage JOmisses come from order (the run doesn't turn on a surname-first order, soJOreads as the family), not from how the capitals split, and only 3 of its 15,309 names take that shape.