Skip to content

Read Lady as a given name under a Spanish choice; keep #913's last eight titles - #1055

Merged
derek73 merged 4 commits into
masterfrom
feat/913-kept-titles
Nov 4, 2026
Merged

derek73 merged 4 commits into
masterfrom
feat/913-kept-titles

Conversation

@derek73

@derek73 derek73 commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Settles the last nine words #913 held. The default parse changes for none of them. A Spanish choice of languages, and so locales.ES, now reads Lady as a given name.

How they were measured

All nine were given a given reading in a throwaway tree and measured against master. Following the lesson of #1054, the fielded corpora were read by the boxes their filers typed the word into (local_agreement.py --list), not by reading the names.

Eight stay titles

Most of their filers typed the word in the title box, and most other moves are real titles:

Word PSC title box PSC forename box Elsewhere
sir 287 17 govuk and UK donors' knights (Admiral Sir Ben Key)
bishop 18 1 FEC's clergy (GORDON, BISHOP SIMON)
canon 16 0 JRC's camera maker (Canon PowerShot)
colonel 7 0 FEC's officers
general 5 1 govuk and JRC's officers (Lieutenant General Ian Cave)
author, empress, lawyer — — 3 to 9 moves each, mostly role labels or titles

Each word's counts are recorded in the note on its title reading in en.toml, following judge's note.

Lady: a title by default, a given name under Spanish

  • A British title: 160 PSC title boxes against 19 forename boxes, and all 59 UK donors (Lady Annabel Goldsmith).
  • A given name: 137 ORCID researchers typed it in their given-name box, 111 of them in Spanish-speaking countries. Ecuador has 41, Colombia 30 and Peru 12.

es.toml gives it a given reading written default = false, which a Spanish choice turns on, the same way zh.toml's hon works under a Chinese choice. locales.ES makes that choice, so the pack reads Lady Heidenreich as given 'Lady'. The title is then one only inside a phrase. Hon Lady Smith, Lady of Shalott and the offices lady now attaches to by name keep it: Lady Justice, Lady Chief Justice, Lady Mayor, Lady Provost and Lady Captain.

The costs matter only to someone parsing British names under a Spanish choice. A peeress written with the bare title reads given 'Lady', and under locales.ES her own given name joins the family (Lady Annabel Goldsmith → family 'Annabel Goldsmith'). John Smith, Lady reverses, as Hon does. A title after Lady other than the five loses the phrase too (Lady Judge Smith → given 'Lady'). All of these are recorded in decisions/H9.

Under the choice, 556 local-corpus texts move against master. The default parse moves nothing. Every local-corpus text holding lady or one of the four office words reads as it does on master, ambiguity reports included, and the committed snapshot gains only the new rules example.

Changes

  • Vocabulary: nameparser/vocab/en.toml gets notes on the nine words; nameparser/vocab/es.toml gets lady's given reading.
  • Design docs:
    • decisions/H9: a Standing line and a Log entry with the tally, the country breakdown, the choice's costs and a recompute recipe. The move totals come from the fourteen-word spike and the filed boxes from a nine-word tree; the entry says which is which.
    • decisions/vocabulary-model: a Log line.
    • The Open: #913 lines in decisions/H1, decisions/vocabulary-collisions and decisions/vocabulary-model are removed, and the RFC's two mentions are dated.
    • rules/H9: the language-choice Accepted bullet now covers a title borne as a whole given name, with a Lady Heidenreich example with and without [es]. H9's Accepted bullets grew from 545 to 590 words in all, this one from 115 to 160, so tests/v2/rules_budget.json is re-recorded. The new clause reads the signal the bullet already reads, the language choice.
  • User docs: docs/locales.rst adds Lady to the es row and a doctest after Hon's. docs/release_log.rst folds Lady into the new ES pack's bullet, since no released version had the pack.
  • Tests:
    • test_a_spanish_choice_reads_lady_as_a_given_name covers the plain choice and locales.ES: the given name, the seven phrases that keep the title, and the costs.
    • In tests/v2/test_locales.py, the ES pack's list of words its choice changes gains lady, and its witness names gain Lady Heidenreich.
    • The rules corpus and snapshot are re-recorded.

The suite, the serial benchmark tests, ruff, mypy and the Sphinx doctests pass locally.

Closes #913.

🤖 Generated with Claude Code

…ght titles (#913)

The nine words #913 held after baron were measured with the fielded
corpora read by their filed boxes. Eight lose where their filers state
the reading (sir: 287 title boxes against 17 forenames), and stay titles,
their counts recorded on their title readings. Lady splits by country:
a British title (160 title boxes, 59 UK donors) and a given name for 137
ORCID researchers, 111 in Spanish-speaking countries, so es.toml gives
it a given reading a Spanish choice turns on, as zh.toml's hon is under
a Chinese one; locales.ES makes that choice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added design vocabulary Per-word vocabulary model and language packs labels Nov 4, 2026
@derek73 derek73 self-assigned this Nov 4, 2026
derek73 and others added 3 commits November 3, 2026 22:00
Add the Lady choice test the first commit's body named but never wrote;
attach lady to chief, mayor, provost and captain, so Lady Chief Justice
and the offices keep the title under a Spanish choice; record the
choice's costs (the peeress's given name joining the family under
locales.ES, the comma reversal, a leading The, a conjoined pair); state
the move totals' provenance (the fourteen-word spike) and count sir and
bishop by every name holding them; make the recipe's unit and comparator
explicit; fold Lady into the new ES pack's release bullet; widen H9's
language-choice bullet to a title borne as a whole given name; retire
the Open: #913 lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Correct the title-or-name claim (the family-comma site reports nothing),
the choice's count (556: Lady Captain keeps the title with the new
partner), bishop's count alone (43, the spike's 44 holding one name sir
moved), and carry the peeress's cost into the merged ES release bullet;
record that a title after Lady other than the five loses the phrase.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/design/decisions/H9-title-phrase.md
#	tests/v2/rules_budget.json
@derek73
derek73 enabled auto-merge (squash) November 4, 2026 06:14
@derek73
derek73 merged commit 07b70ff into master Nov 4, 2026
13 checks passed
@derek73
derek73 deleted the feat/913-kept-titles branch November 4, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design vocabulary Per-word vocabulary model and language packs

Projects

None yet

1 participant