Repository navigation
Description
Background. suffix_delimiter (#156, 1.x) and Policy.extra_suffix_delimiters (2.0) let a caller declare a separator between post-nominals, such as RN - CRNA. The v1 setting is the HumanName keyword and the Constants attribute, and the facade layers it onto the Policy field. Since then the default has learned most of what the knob was for: the comma tail's credential run, joined credentials (#887, MD/PhD, MD-PhD), and ; as a default delimiter after the first comma (#871).
What the default does today, measured on master, compared with a declared delimiter:
| Input | Default | Declared delimiter |
|---|---|---|
John Smith, MD - PhD |
given John, family Smith, suffix MD - PhD |
suffix MD, PhD (" - ") |
John Smith, M.D. - Ph.D. |
suffix M.D. - Ph.D. |
suffix M.D., Ph.D. (" - ") |
John Smith, MD - Chief of Surgery |
title Chief of Surgery, suffix MD - |
suffix MD (" - ") |
John Smith, MD / PhD |
suffix MD / PhD |
suffix MD, PhD (" / ") |
John Smith, MD | PhD |
suffix MD | PhD |
suffix MD, PhD (" | ") |
John Smith, MD & PhD |
suffix MD & PhD |
suffix MD, PhD (" & ") |
So the fields come out right by default, which was #156's request. The knob still does two things:
- it splits the suffix into separate entries (
MD, PhDrather thanMD - PhD); - it drops a stray separator when something other than a credential follows (
MD -→MD).
Questions
- Should
-,/,|and&be default suffix delimiters after the first comma, the way Read a semicolon between post-nominals as a comma (D15) #871 made;one? That gives the default both of the knob's remaining effects.- Measure as Read a semicolon between post-nominals as a comma (D15) #871 did: the committed snapshot, the agreement records, PSC, and the local corpora, with ctgov's after-comma text the main population. Use
--base. - The known risk is a spaced hyphenated surname (
Smith - Jones, Join a double name written with spaces around its hyphen (Hélène Roche - Vidalgives middleRoche -, familyVidal) #820). Keeping the defaults to the part after the first comma should keep such a surname out of reach, but the sweep has to show that: the four comma shapes, three orders, and each spacing of the separator (standing alone, or glued on either side). &also joins names (John & Mary Smith), and P3 reads it as a connective. Check that it stays one wherever no credential stands on both sides.
- Measure as Read a semicolon between post-nominals as a comma (D15) #871 did: the committed snapshot, the agreement records, PSC, and the local corpora, with ctgov's after-comma text the main population. Use
- If question 1 lands, should
suffix_delimiterandextra_suffix_delimitersbe deprecated in 2.7, with aDeprecationWarningnaming what to use instead, and removed in 3.0? That would add an entry to decisions/3-0-reevaluations. Removing them in a minor release would break callers who set them, so deprecation comes first. - Is there a separator a caller would still need to declare once these are defaults? If so, the knob stays and only its docs change.
Not in scope: MD;; PhD (a doubled separator), the full-width ;, and spaced hyphenated surnames as data cleanup (#820).
Activity
Record the decision to keep the connective join across a delimiter (#889
Address the code, test and comment reviews of #889
Address the review of the #889 fix commit