After a family comma, a credential-shaped word at the END of the given part is read as a middle name, and nothing is reported.
>>> parse("Doe, John MA").middle
'MA'
>>> parse("Doe, John MA").ambiguities
()
>>> parse("Doe, John X.Y.Z.").middle
'X.Y.Z.'
The comma-less spelling of the same name does the opposite on both counts: John Doe MA gives suffix MA and reports suffix-or-name. So two writings of one name disagree about the reading and about whether a fork was called.
This is a 2.0-era reading, not a long-standing one. 1.4.0 read Doe, John MA as suffix MA. Every release from 2.0.0 through 2.3.0 reads middle MA, and 2.4 does not move it. Doe, John X.Y.Z. is middle in every release including 1.4.0.
What 2.4 changed nearby. The ambiguous credential class now reports at the trailing slot, at the first word after a family comma, in the part before a suffix comma, and in third-and-later comma segments. The given part's trailing slot is the one place it stays silent. PR #530 also retired an accident that had been reading some dotted words as suffixes, which moved a few names into this silent slot: Doe, John J.u.n.i.o.r. and Doe, John X.Y.I. went from suffix to middle, and John Smith nee Jones R.A.I. from suffix to maiden.
Two separate questions.
- Should the words-to-spare rule apply at this slot, so
Doe, John MA reads suffix MA again as 1.4.0 did? It has the words to spare: a family and a given name stand without it.
- If the reading stays, should the slot at least report
suffix-or-name? The argument against is noise: a word sitting where a middle initial sits may be a place nobody hesitates, which is the reasoning that keeps Smith, John V silent. The argument for is that the comma-less spelling reports.
The boundary is written down for now: AmbiguityKind.SUFFIX_OR_NAME's docstring names the slots it covers and this one it does not, and docs/design/decisions.md#S2 records the slot as open with these measurements.
Found during the review of #530.
After a family comma, a credential-shaped word at the END of the given part is read as a middle name, and nothing is reported.
The comma-less spelling of the same name does the opposite on both counts:
John Doe MAgives suffixMAand reportssuffix-or-name. So two writings of one name disagree about the reading and about whether a fork was called.This is a 2.0-era reading, not a long-standing one. 1.4.0 read
Doe, John MAas suffixMA. Every release from 2.0.0 through 2.3.0 reads middleMA, and 2.4 does not move it.Doe, John X.Y.Z.is middle in every release including 1.4.0.What 2.4 changed nearby. The ambiguous credential class now reports at the trailing slot, at the first word after a family comma, in the part before a suffix comma, and in third-and-later comma segments. The given part's trailing slot is the one place it stays silent. PR #530 also retired an accident that had been reading some dotted words as suffixes, which moved a few names into this silent slot:
Doe, John J.u.n.i.o.r.andDoe, John X.Y.I.went from suffix to middle, andJohn Smith nee Jones R.A.I.from suffix to maiden.Two separate questions.
Doe, John MAreads suffixMAagain as 1.4.0 did? It has the words to spare: a family and a given name stand without it.suffix-or-name? The argument against is noise: a word sitting where a middle initial sits may be a place nobody hesitates, which is the reasoning that keepsSmith, John Vsilent. The argument for is that the comma-less spelling reports.The boundary is written down for now:
AmbiguityKind.SUFFIX_OR_NAME's docstring names the slots it covers and this one it does not, anddocs/design/decisions.md#S2records the slot as open with these measurements.Found during the review of #530.