Repository navigation
Read a job or degree written after a name and a comma as the title (#1457) - #1486
Merged
Merged
Conversation
…1457) ClinicalTrials.gov's officials and contacts write a job or a degree spelled out after the name and a comma (`Nadir Qassoumi, Bachelor`), and an unlisted word there was read as the given name, the whole name before the comma as the family. Thirty-nine job and degree words join TITLES as `occupation` readings and nineteen qualifiers as `modifier` readings, each vetted on its bearer counts and recorded on its entry, so `Medical Doctor` and `Clinical Research Coordinator` read as one title; `principle` (principal misspelled) is refused. Of the registry's 9,000 names read reversed (the whole text before the comma as the family), 4,972 now read apart and none newly reversed. The costs taken, and how each figure is recounted, are in decisions/salutation-titles' 2026-11-19 #1457 entry; the README's `occupation` and `modifier` definitions say why degrees are occupations and surnames that qualify a head are modifiers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1457
ClinicalTrials.gov's officials and contacts write a job or a degree after the name and a comma, and an unlisted word there took the name over:
Nadir Qassoumi, Bachelorread givenBachelor, familyNadir Qassoumi(1.4.0 through 3.1.0). As decided on the issue, this lists the words: 39 jobs and degrees asoccupationtitles and 19 qualifiers asmodifiers, inen.toml, each with its counts on its entry. A modifier chains into the title after it, soMedical DoctorandClinical Research Coordinatorread as one title. No rule or pipeline code changes.principle(principal misspelled) is refused with anexcludedentry.Totals (ClinicalTrials.gov, 652,782 distinct names, against master d12af9d)
A name is reversed when its part after the first comma opens with a spelled word (
Siteleft out) and the parse reads the whole text before the comma (two words or more) as the family. Before: 9,000 reversed. After: 4,972 read apart, 3,685 still reversed by an unlisted word (misspellings, fields of study, abbreviations, other languages), 343 still reversed by an unlisted word after a listed one (Clinical Pharmacologist; 74 of them a title run withinbehind it,Masters in …). No name newly reversed.Ten countries with most names read apart (reversed names, before → after; share of the country's names):
Per word
bachelorbachelorsdoctoratemastersMasters Johnfamily-first with no comma,John Masters.with a full stop;Mr Mastersnow reportstitle-or-name(no corpus writes it)studentspecialistpharmacistphysiotherapistoncologistmidwifecardiologistpostgraduategraduateundergraduatefellowdentistneurologiststatisticiandemonstratorcoordinatorpostdocpostdoctorphysioacademiciananesthesiologistinterntraineenephrologistdietitiannutritionisturologistphysiatristoptometristgastroenterologistradiologisttherapistdegreediplomacandidatemedicalclinicalresearchstudydoctoralfullattendingassociatedregisteredprojectteachingadjunctoccupationalphysicalpostdoctoralpediatricchildChild.org); 53 FEC surname-first names unmovedleadheadprincipleexcluded): principal misspelledCosts, measured in the other corpora (
measure.py --base <master>)MASTERSbefore a family comma and lose it to the title (rules/H6); 1 hasMASTERSin a part past the second comma (C2); 1 is a label. No listed word stands after a comma as a given name.HEAD(186),CHILD(53) andMASTERS, Xnames keep their family.local_agreementscores 4 regressions: two given boxes opening withDegree(Nigeria, Papua New Guinea),Child.org, and a box openingSpecialist in ….Head Of Marketing …read as the title); the one filer opening withStudenttyped it in the title box.Deputy Head of Mission …), jrc-names 2; cz-candidates, ukec-individuals, patentsview-inventors, tse-donors, the rest: none. CLDR and GND: none.Student Mary Jones;Masters JohnunderFAMILY_FIRST); a lone word after a surname and a comma leaves no given name (Qassoumi, Student); a modifier opening the given part after a family comma (Qassoumi, Medical Nadir);John Masters.with a full stop;Mr Mastersnow reportstitle-or-name(no local corpus writes the shape). Surnames that mostly qualify a head (head,child) are modifiers, soHead Mary Smith,Head Boyd, MaryandAnna Childkeep the name.Master's degreeNot listed. It would take three possessive entries (
master's,bachelor's,doctor's) besidedegree, which now ships; with them 248 of 277 such registry names would read right (master's166,bachelor's73,doctor's34), measured with a caller's lexicon. Left for its own decision, as the issue asked.Changes
nameparser/vocab/en.toml: 58 readings with notes, oneexcluded; compiled modules rebuilt.tests/v2/cases.py: 30 rows (everyfix(#1457)row fails on master;parityrows checked withparity_check.py: 0 of 652 differ from 1.4.0).tests/test_suffixes.py: the delimiter test moved offFellow.test_cases.py: field-sweep claim count 2195 → 2198.docs/design/decisions/salutation-titles.md: Standing bullet and the 2026-11-19 Should a spelled-out degree or job after a name and a comma read as one? (Ahmed Ali, Bachelorgives givenBachelor, familyAhmed Ali) #1457 entry (population, recipes, words, refusals, measurement, costs).decisions/H9: pointer.rules/H9: two examples.nameparser/vocab/README.md:occupationandmodifierdefinitions.docs/migrate.rst"Changed in 3.2" entry with doctests; one release-log bullet. Snapshot re-recorded (one committed name moves:Doe, John, MD PhD - FACS Fellow→ title 'Fellow').Checks
uv run pytest(51,425 passed, after rebasing on 25423c5),uv run pytest -n0 -m serial(38 passed),uv run mypy,uv run ruff check,uv run sphinx-build -b doctest docs(0 failures),python -m doctest README.rst,tools/vocab/build.py --check,tools/differential/parity_check.py.Review
Reviewed with pr-review-toolkit's code-reviewer, comment-analyzer and pr-test-analyzer, and the design-docs-reviewer; each fix commit reviewed again (code-reviewer and design-docs-reviewer on the first fix, design-docs-reviewer on the second, its three findings fixed; the review commits are squashed into one commit here). Not applicable: silent-failure-hunter and type-design-analyzer (no code, no types), code-simplifier (no code).
Example names are invented and appear in no local corpus.
🤖 Generated with Claude Code