Repository navigation
Description
Policy.capitals_as_family (rules/O9, #659) reads the words a name writes in capitals as its family name, and the capitals outrank the title reading there. That is what makes a surname that is also a title read right:
>>> p = Parser(policy=Policy(capitals_as_family=True))
>>> p.parse("DOYEN Hugo").family
'DOYEN'
It also takes a title that is never a surname, written in capitals with no full stop and with no other word in capitals, as the family:
| Input | title | given | middle | family | with the switch off |
|---|---|---|---|---|---|
DR Anna Berg |
Anna |
Berg |
DR |
title DR, family Berg |
|
PROF Anna Berg |
Anna |
Berg |
PROF |
title PROF, family Berg |
|
MR Anna Berg |
Anna |
Berg |
MR |
title MR, family Berg |
|
MS Anna Berg |
Anna |
Berg |
MS |
title MS, family Berg |
|
ST Anna Berg |
ST |
Anna |
Berg |
the same | |
DR. Anna Berg |
DR. |
Anna |
Berg |
the same | |
DR Anna BERG |
DR |
Anna |
BERG |
the same | |
Dr Anna BERG |
Dr |
Anna |
BERG |
the same |
Measured on master 17bc612, 2026-11-15. A word holding a full stop is no capitals word, so DR. is unaffected, and where another run of capitals follows (DR Anna BERG) the title keeps its place. The gap is the bare title in capitals when nothing else in the name is. #659's amendment of 2026-11-12 counted 204 ORCID given boxes opening with a bare DR and left this undecided; decisions/O9's Open: line records it against #659 and should point here.
Options:
- (A) A title that is never borne as a name keeps the title reading at the head.
- When: the switch is on, the name's first word is its only capitals run, and that word is a title of a kind no one bears as a surname (
dr,mr,mrs,ms,prof). - Then: it is the title, and with no capitals run left the name reads by position (family
Berg), which is the reading with the switch off. - Because: no one is surnamed
DR; the capitals there are how the writer typed a title. - Accepted: to be measured.
- When: the switch is on, the name's first word is its only capitals run, and that word is a title of a kind no one bears as a surname (
- (B) Leave it. The switch is a caller's statement that the source writes its families in capitals; a caller whose source also writes bare titles in capitals strips them first. Stated in rules/O9's Accepted list.
Open:
- (A) or (B).
- Under (A), which titles. The vocabulary does not draw the line as it stands:
doyenandbaronare plain members of the title set likedrandmr(neither is intitles_ambiguous), so "a title with no name reading" would takeDOYEN Hugoback to titleDOYEN. The candidates are a kind (the salutations) or afamilyreading recorded on the titles that are surnames. SRandMSare also suffixes, andSTis a title-particle that already stays a title here; whichever line is drawn should say what each reads as.
🤖 Generated with Claude Code
Activity
Point the Open lines at #1402 and #1359, and scope four review findings
Correct stale Standing examples, closed Open lines and mechanisms ent…
derek73 commentedon Nov 19, 2026
Decided 2026-11-19: option (B), left as it is.
DR Anna Bergis not written in the format the switch is for: nothing in it marks a family in capitals, socapitals_as_familyis the wrong setting for that name.Counted the same day on the local corpora, names with a word in capitals and a word in mixed case before any comma, credentials and roman numerals left out (a crude classing; ORCID and the other large corpora sampled one name in five):
Dr Anna BERG)DR Anna BERG)ctgov-contactsctgov-officialsorcid-researchers, sampledukec-individualsgovuk-peopleopensanctions-parliamentsvn-assembly(675
ctgov-contactsentries openingUSare call centres and are left out.)DR Anna BERGreads right already, the capitals family behind it keeping the title its place.jrc-namesand 3 in the ORCID sample.Option (A) would need the vocabulary to tell a title never borne as a surname (
DR,MR) from one that is (DOYEN,BARON), which it does not, for about one name in ten thousand.What follows, with #1183's docs change: rules/O9's Accepted list and the user docs say a bare title in capitals is the family where nothing else in the name is in capitals, and that such a name is not in the switch's format; decisions/O9's
Open:line is closed with this entry.Not checked: whether
Parser.suggestcounts such a name as a vote forcapitals_as_family.Document lists that mix name orders, and two_given_names for Chinese …