You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should a French choice read M. as a title, now that French data shows almost no initials? (M. Jean Dupont gives given 'M.') #1161
locale-packsLocale packs and language choices (nameparser.locales)titlesTitles and honorifics (rules/H)vocabularyFixed by a word-list entry: per-word vocabulary and language packs
M. (Monsieur) is excluded in fr.toml (#658, decided 2026-11-03), under every choice including French. The reason: it's written exactly like an initial, and 782 ORCID records and 168 PatentsView inventors open with M. before two or more name words, every one an initial. Those counts are worldwide. French data looks different (2026-11-07):
ORCID's agreement sample: 0 of 1,505 records from France open with M.; 2 of 2,622 from Belgium, Switzerland, Luxembourg and Monaco do (M. Ángeles, M. Malek).
So under a French choice the competing reading, M. as an initial, is rare. The exclusion's cost, M. Jean Dupont read as given 'M.', middle 'Jean', is borne by every French text that writes the salutation.
How it would work: a default = false salutation reading on fr.toml's m, replacing the exclusion, which a French choice turns on. No reading can apply only under strict=True: strictness is the caller's, never data (decisions/vocabulary-model, 2026-10-31). Plain and strict French choices would read it alike, because the competing reading is a shape (an initial), not another language's file. There's no locales.FR today, but a caller can make the choice: parser_for(Locale(code="fr", lexicon=Lexicon(), languages=frozenset({"fr"}))).
Questions:
Is a French choice enough licence? The caller is stating the data is French, which is the evidence the worldwide counts lacked.
What's the cost under that choice? M. Smith in French data, where M is an initial (Martin, Marie), would read title 'M.', given ''. How often do French sources write a bare initial plus a surname?
Should this wait for a French prose source that writes the salutation (the Journal officiel's nominations, through DILA's open data)? That would measure the gain, not just the cost.
Decided 2026-11-20: deferred, left open; design it with #1205. A listed one-letter title reaches further than the dotted word at the head of a name. Measured on master 0d8c6fa, with the letter listed under the language's choice, all of these read the title: the bare letter (M Dupont), citation initials after a family comma (Dupont, M.), joined initials (J.M. Dupont, S.H.), a word glued at its period, and the letter behind another title (Dr M. Dupont gives no given name). Arabic's one-letter titles avoid this only because that script writes no initials.
So it needs a rule first: a listed one-letter title reads as a title only written with its period, at the head of the part holding the given name, with a name word behind it; with exceptions so that it does not make a joined run a title (rules/S3) or divide a glued word (rules/T8); and a vocabulary property to carry that, since the word cannot be listed with its period.
Then m would go in fr.toml as an off-by-default salutation. What can be measured today: 25 French title boxes in the UK companies register, 17 of them a bare M, against 53 records broken of 181,204 scored.
Closing as declined (decided 2026-11-20), with #1205 kept open as the home of the rule this would need.
The evidence is thin. No corpus of French names shows M. in front of a name; the one count is 25 French title boxes in the UK companies register, 17 of them a bare M, against 53 records broken of 181,204 scored when the letter is listed.
A caller whose data writes it can add it, at a cost to initials. Measured on master 3ca31c2:
>>> from nameparser import Lexicon, Parser
>>> parser = Parser(lexicon=Lexicon.default().add("m", kind="salutation"))
>>> parser.parse("M. Jean Dupont").title
'M.'
>>> parser.parse("Jean M. Dupont").middle # an initial inside the name is untouched
'M.'
>>> parser.parse("Dupont, M.").title # the cost: citation initials read the title
'M.'
>>> parser.parse("J.M. Dupont").title # and so does a joined run holding the letter
'J.M.'
Reading it without that cost needs a rule (a listed one-letter title read only with its period, at the head of the name, with a name word behind it), which #1205 holds, since Indonesian H. is where a population writes the shape in its own name lists. M. would be a candidate for that rule; #978 (Mexican C.) is another.
locale-packsLocale packs and language choices (nameparser.locales)titlesTitles and honorifics (rules/H)vocabularyFixed by a word-list entry: per-word vocabulary and language packs
Activity
derek73 commentedon Nov 21, 2026
Decided 2026-11-20: deferred, left open; design it with #1205. A listed one-letter title reaches further than the dotted word at the head of a name. Measured on master 0d8c6fa, with the letter listed under the language's choice, all of these read the title: the bare letter (
M Dupont), citation initials after a family comma (Dupont, M.), joined initials (J.M. Dupont,S.H.), a word glued at its period, and the letter behind another title (Dr M. Dupontgives no given name). Arabic's one-letter titles avoid this only because that script writes no initials.So it needs a rule first: a listed one-letter title reads as a title only written with its period, at the head of the part holding the given name, with a name word behind it; with exceptions so that it does not make a joined run a title (rules/S3) or divide a glued word (rules/T8); and a vocabulary property to carry that, since the word cannot be listed with its period.
Then
mwould go infr.tomlas an off-by-default salutation. What can be measured today: 25 French title boxes in the UK companies register, 17 of them a bareM, against 53 records broken of 181,204 scored.🤖 Generated with Claude Code
derek73 commentedon Nov 21, 2026
Closing as declined (decided 2026-11-20), with #1205 kept open as the home of the rule this would need.
M.in front of a name; the one count is 25 French title boxes in the UK companies register, 17 of them a bareM, against 53 records broken of 181,204 scored when the letter is listed.Reading it without that cost needs a rule (a listed one-letter title read only with its period, at the head of the name, with a name word behind it), which #1205 holds, since Indonesian
H.is where a population writes the shape in its own name lists.M.would be a candidate for that rule; #978 (MexicanC.) is another.🤖 Generated with Claude Code