Skip to content

Read Emeritus and Emerita as title modifiers (#1471) - #1473

Merged
derek73 merged 4 commits into
masterfrom
fix/issue-1471-emeritus
Nov 19, 2026
Merged

derek73 merged 4 commits into
masterfrom
fix/issue-1471-emeritus

Conversation

@derek73

@derek73 derek73 commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Closes #1471

What changes

Name master (a6198e5d) this branch
Emeritus Professor John Smith given 'Emeritus', middle 'Professor John' title 'Emeritus Professor', given 'John'
Professor Emeritus John Smith title 'Professor', given 'Emeritus', middle 'John' title 'Professor Emeritus', given 'John'
John Smith, Professor Emeritus title 'Professor', given 'Emeritus', family 'John Smith' title 'Professor Emeritus', given 'John', family 'Smith'
John Smith, PhD, Emeritus suffix 'PhD, Emeritus' title 'Emeritus', suffix 'PhD'
Emerita Smith given 'Emerita' given 'Emerita', reports title-or-name
Professor Emerita Garcia given 'Emerita' title 'Professor Emerita', no given (accepted cost)
  • emeritus and emerita join en.toml as modifier readings: a title only beside a head title (rules/H9, the title phrase). 1.4.0 read the first four rows as master does.
  • professor and prof (in mul.toml) gain attaches = ["emeritus", "emerita"]. This is what puts the modifier written after its head in the phrase, as princess attaches to royal.
  • Bearers. emeritus is below the US Census and SSA floors and absent from nam_dict and Wikidata. emerita has US SSA 142 (female), 3 given names on Wikidata, and nam_dict band 1 in Spain and Greece. So it carries a given reading and stays the given name outside a phrase. Inside one, the phrase takes it silently, as Associate Dean Smith is taken; a row records that cost. The counts are on the readings.

locales.ES_AR's given-name list (two commits)

The list may hold no word the default vocabulary lists as a title, and its length is pinned to its cutoff, so only its tool writes it.

  1. Rewrite the es-AR given-name list from its tool: the tool on master, before this change.
    • It swaps six words of the list last written on 2026-11-05.
    • Out: abdeladim, gentzane, gerhard, gica, zakarya and zuleyma, which tie at the cutoff.
    • In: azhar, ghali, houari, jilali, mamoun and miloudi. Their surname tallies fell once uses after el, ait, ould and ouled stopped counting.
  2. The Emeritus commit: emerita leaves the list, and zakarya returns at the cutoff.

Under parser_for(locales.ES_AR), a word leaving the list joins the family behind a given name: Juan Gerhard Lopez gives family 'Gerhard Lopez', and Maria Emerita Garcia gives family 'Emerita Garcia', as locales.ES already reads it. A word joining it stays the middle name: Ahmed Azhar Garcia gives middle 'Azhar'. A release bullet records this.

Known cost: under parser_for(locales.ES_AR, strict=True) en.toml is not read, so emerita leaves the list there without being read as a title.

Measured

  • config_diff.py diff --local all --match '(?i)emerit' compares the tree against itself with both modifier readings removed. 70 names across the local corpora contain the word, and 27 move:
    • 18 are title fixes (Emeritus Prof. Harold Messer, Ph.D., Jaakko Tuomilehto, professor emeritus, Hannu Alho, Professor Emeritus, PhD, MD).
    • 9 are new title-or-name reports on the given name Emerita (Mrs Emerita Enriquez Williams), whose reading does not move.
  • The committed snapshot does not move. parity_check.py reports 0 of 640 rows differing.

Not covered

  • Other heads before Emeritus still read it as a name word: Bishop Emeritus John Smith, Pope Emeritus Benedict XVI, Dean Emeritus John Smith. Each needs its own attaches.
  • A trailing phrase in the given part after a family comma (Smith, Jane Professor Emerita) reads middle 'Professor Emerita', the same as a bare trailing title there.
  • The accented Emérita is not listed.

Tests and review

  • 16 rows in tests/v2/cases.py. The field sweep's claim count moves 2187 → 2190 (Emerita Smith's report under three orders). The full suite is green.
  • Reviewed by pr-review-toolkit:
    • code-reviewer: a sweep of comma shapes, orders, case and the Spanish packs plain and strict.
    • pr-test-analyzer and comment-analyzer.
    • code-reviewer again on the fix commit.
  • The first round found the ES_AR moves, the missing rows and the drift; the fix commit's review corrected a mechanism claim.

🤖 Generated with Claude Code

@derek73 derek73 self-assigned this Nov 19, 2026
derek73 and others added 3 commits November 19, 2026 10:30
tools/es_given_names.py --list es-AR --write on the tree as it stands
swaps six words of the committed list, which was last written on
2026-11-05: out abdeladim, gentzane, gerhard, gica, zakarya and
zuleyma, the last words at the cutoff, where several tie at 200 given
uses; in azhar, ghali, houari, jilali, mamoun and miloudi, whose given
share now passes the list's half, the surname tally no longer
counting a use written after a word the vocabulary has claimed since
(el, ait, ould and ouled: 'El Houari' is no surname use of houari). Under locales.ES_AR a word
leaving the list joins the family behind a given name ('Juan Gerhard
Lopez' family 'Gerhard Lopez') and a word joining it stays the middle
name ('Ahmed Azhar Garcia' middle 'Azhar').

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Emeritus and Emerita join en.toml as modifiers (rules/H9, the title
phrase), and professor and prof attach to both in mul.toml, so the
qualifier written after its head is in its phrase:
'Professor Emeritus John Smith' gives title 'Professor Emeritus',
given 'John', where 1.4.0 through 3.1.0 gave given 'Emeritus'.
Emerita keeps a given reading (US SSA 142, nam_dict band 1 in Spain
and Greece), so alone it stays the given name, reported title-or-name.

The es-AR given-name list may hold no word the default reads as a
title, so its tool rewrites it: emerita leaves it and zakarya, the next
word past the cutoff, returns.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1471)

Rows for Emerita before its head, the phrase taking a name word
unreported ('Professor Emerita Garcia'), the credential part where
Emerita stays a suffix, the phrase on both sides of a family comma and
under a family-first order, and locales.ES_AR's reading of Emerita
once it leaves the given-name list. 'Emerita Smith' is parity, only
its report new. A release bullet for the list's moves, a limit on the
Emeritus one, and the vetting notes corrected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@derek73
derek73 force-pushed the fix/issue-1471-emeritus branch from ab6cd9a to 4f69fd5 Compare November 19, 2026 18:37
@derek73 derek73 added this to the 3.2 milestone Nov 19, 2026
@derek73
derek73 enabled auto-merge (squash) November 19, 2026 18:46
@derek73
derek73 disabled auto-merge November 19, 2026 18:46
@derek73
derek73 merged commit 6560abd into master Nov 19, 2026
14 checks passed
@derek73
derek73 deleted the fix/issue-1471-emeritus branch November 19, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Emeritus is not vocabulary (Emeritus Professor John Smith gives given Emeritus, middle Professor John)

1 participant