Skip to content

Read a degree's possessive after a name and a comma as the title (#1487) - #1492

Merged
derek73 merged 5 commits into
masterfrom
fix/issue-1487-possessive-degrees
Nov 20, 2026
Merged

derek73 merged 5 commits into
masterfrom
fix/issue-1487-possessive-degrees

Conversation

@derek73

@derek73 derek73 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Closes #1487

What changes

master's, bachelor's and doctor's join en.toml as title modifiers:

Nadir Qassoumi, Master's degree   → title "Master's degree", given 'Nadir', family 'Qassoumi'

1.4.0 through 3.1 gave given "Master's", middle 'degree', family 'Nadir Qassoumi'. The name is invented, of the shape read.

  • Why a modifier, not an occupation (the issue proposed occupation; the decision was modifiers):
    • After a comma, a modifier is read as any title is: alone (, Bachelor's) or before its head (degree, student, candidate).
    • In front of a name, a modifier with no head after it claims nothing (rules/H9), so Master's Nadir keeps given "Master's", as before.
  • The apostrophe. The vocabulary folds no apostrophe into another (_normalize keeps U+2019), so one entry cannot match both. Each word is listed again with the typographic apostrophe, as fr.toml lists d’ beside d'.
    • No registry name writes the typographic one.
    • 4 registry names write ´ (MASTER´S). That spelling is left unlisted as a misspelling, and a boundary row holds it.
  • Readings that do not move (probed, with rows where the shape is reachable):
    • Doctor alone (a different word) and Masters.
    • Apostrophe surnames (O'Master).
    • A possessive ending a name (Nadir Master's, family).
    • A surname-first comma (Master's, John, family).
  • The cost, accepted as Should a spelled-out degree or job after a name and a comma read as one? (Ahmed Ali, Bachelor gives given Bachelor, family Ahmed Ali) #1457's for modifiers. A possessive opening the given part after a family comma is the title: Qassoumi, Master's Nadir → title "Master's".

Measured

tools/differential/measure.py --base against master 13cf07cd, 30 steps.

  • Two steps move: ctgov-contacts (183 entries) and ctgov-officials (98).
  • Nothing else moves: fec-individuals (surname-first), every other local corpus, the committed snapshot, and the CLDR and GND records.

Every one of the 274 distinct moved names was read:

Word Moved Name read right now Still wrong, as before
master's 167 160 7
bachelor's 73 64 9
doctor's 34 34 0
  • 251 of the 258 were read reversed before.
  • The other 7 were already read apart; only the possessive moved from the suffix into the title. One of them (…, MD, Master's in epi) leaves in epi in the suffix.
  • The 16 still wrong read the name before the comma as the family, as they did on master:
    • a field written after in or of (10, Master's Degree in Medicine → given 'in');
    • a bare field (1, Master's Nursing);
    • a word cut short or misspelled (4: deg, Stu, thrapy);
    • one part holding no name.
  • None reads worse in its name fields.

The full record, with a recompute recipe, is in decisions/salutation-titles' 2026-11-19 #1487 entry.

Also changed

Checks

  • uv run pytest passes (51,667), and so does uv run pytest -n0 -m serial.
  • uv run mypy and uv run ruff check pass.
  • sphinx-build -b doctest docs and python -m doctest README.rst pass.
  • tools/vocab/build.py --check reports the compiled files current.
  • tools/differential/parity_check.py: 0 of 656 rows read otherwise under 1.4.0.
  • The new fix(#1487) rows fail on master; the parity rows hold there and under 1.4.0.

Reviews

  • pr-review-toolkit: code-reviewer, pr-test-analyzer and comment-analyzer.
  • design-docs-reviewer: recomputed every count from full parses of both trees; axes 1, 2, 4, 7, 10 and 11 run, and 3, 5, 6, 8, 9 and 12 found nothing to apply.
  • Fix commits:
    • 98e0747 was reviewed by code-reviewer.
    • df6e6f5 (a note rewording and one boundary row) applies that review's points.
    • df6e6f5 was reviewed by code-reviewer, which found its "mostly" true of master's alone; 57f1dc6 restores the other two notes.
  • type-design-analyzer and silent-failure-hunter were not run: the change adds no types and no error handling.

Follow-up, not in this PR

Case repair writes Master'S under capitalized(force=True) (King'S Counsel too, on master). It shows more often now that these words read as titles.

🤖 Generated with Claude Code

derek73 and others added 3 commits November 19, 2026 16:41
master's, bachelor's and doctor's join en.toml as title modifiers, each
also written with the typographic apostrophe, which the vocabulary does
not fold: `Nadir Qassoumi, Master's degree` gives title "Master's
degree", given 'Nadir', family 'Qassoumi', where 1.4.0 through 3.1 gave
given "Master's", family 'Nadir Qassoumi'. A modifier claims no front
of a name alone, so `Master's Nadir` keeps its given name.

measure.py against master moves 274 ClinicalTrials.gov names and
nothing else; 258 now read the name apart and 16 read wrong as before
(a field after `in`, a word cut short). decisions/salutation-titles
records the measurement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1457's boundary row still expected `Master's degree` to read as the
given name and failed; it now holds U+02BC, the apostrophe left
unlisted. Rows hold the typographic twins, capitals, lower case, a
second head and the family comma, where a possessive opening the given
part is the title, the cost decisions/salutation-titles now records with
the seven moves that only took the possessive out of the suffix. The
doctor's note no longer names wrong readings it has none of, and the
release-log bullet and migrate.rst say a possessive opening a name alone
stays the given name, migrate.rst naming the modifier kind to remove.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… mostly reversed (#1487)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.2 milestone Nov 20, 2026
@derek73 derek73 added vocabulary Fixed by a word-list entry: per-word vocabulary and language packs titles Titles and honorifics (rules/H) commas Commas and name structure (rules/C) labels Nov 20, 2026
@derek73 derek73 self-assigned this Nov 20, 2026
derek73 and others added 2 commits November 19, 2026 16:58
… own (#1487)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…essive-degrees

# Conflicts:
#	tests/v2/cases.py
@derek73
derek73 merged commit d6453f3 into master Nov 20, 2026
14 checks passed
@derek73
derek73 deleted the fix/issue-1487-possessive-degrees branch November 20, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commas Commas and name structure (rules/C) titles Titles and honorifics (rules/H) vocabulary Fixed by a word-list entry: per-word vocabulary and language packs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read Master's degree after a name and a comma as the title (Nadir Qassoumi, Master's degree gives given "Master's")

1 participant