Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/design/decisions/indic-honorifics.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ Open: #514 (whether the Tibetan prefix titles Tulku, Khenpo, Geshe, Kyabje and J
- UNDER A STRICT CHOICE (`parser_for(locales.BN, strict=True)`, and HI's and MS's) the four read as the given name again, ar.toml not being chosen, as `mufti` and `hajji` already do.
- THE NAME WORDS: `syed`, `mian`, `chaudhry` and `makhdoom` open far more names as a given name or a surname than as an honorific, and the boxes agree with today's reading, so no reading is written for them.
- MEASURED (`tools/differential/measure.py --base <master checkout>`, master `34771e2d`): the committed snapshot, CLDR and GND agreement and every local corpus but four read as master did. JRC-Names moved 55 names (`qari` 53, `alhaj` 1, `moulana` 1), opensanctions-parliaments 2 (`moulana`, both `pk_na_members`), orcid-researchers 7 and psc-individuals 10 (`qari` 5, `moulana` 3, `alhaj` 2): in every one the word left the given name for the title, the words after it reading as a name without it (where one name word was left, in 14 names, 12 of two words and 2 written behind `Mr`, it is the family, rules/H1: `Qari Khan` → title 'Qari', family 'Khan'), save the byline above and two of orcid-researchers' that open with `Lama`, an Arabic given name that is also a listed title (rules/H1's renunciate class): one written `Lama Alhaj` and a surname, which master read title 'Lama', given 'Alhaj', now reads title 'Lama Alhaj' and the surname as the family, and one holding `Lama` and `Alhajj` and nothing else keeps title 'Lama', given 'Alhajj' and now reports `title-or-name`, its one name word being title vocabulary. Neither reading is the filer's; the cost is `lama`'s, which master paid already. Scored against the filers' boxes, psc-individuals loses 10 records, each a forename box holding the honorific (behind `Mr` in the title box in nine), and orcid-researchers moves 3; JRC-Names reads 8 persons' spellings apart that master read alike, the spellings with the title against those without it. my-candidates, FEC and ClinicalTrials.gov move nothing.
- 2026-11-21 #1180 — `haji` IS A TITLE UNDER `locales.MS`. ms.toml writes it a `religious` reading `default = false`, which the Malay pack turns on, plain or strict (`parser_for(locales.MS, strict=True).parse("Haji Abdul Hadi Awang")` gives title 'Haji'), where the #1469 entry left it out of every choice; that entry's strict-choice bullet, about qari, moulana, alhaj and alhajj, still holds under MS (`Qari Ahmed Khan` given 'Qari'), and the default is unchanged (decisions/salutation-titles, the 2026-11-21 #1180 entry).

7 changes: 7 additions & 0 deletions docs/design/decisions/salutation-titles.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Closes #606 (#662 later added owura and bapak, its bullet below, and #847 cllr).
- The Italian abbreviated salutations and letter-heading honorifics whose letters after the full stop are the word's own ending ship as titles with `cased` masks: `sig.ra`, `sig.na`, `dott.ssa`, `prof.ssa`, `gent.mo`, `gent.ma`, `gent.le`, `ill.mo`, `ill.ma`, `ch.mo`, `ch.ma`, `preg.mo`, `preg.ma` (`Dott.ssa Anna Bianchi` reads title 'Dott.ssa', given 'Anna'; `SIG.RA MARIA ROSSI` repairs to 'Sig.ra Maria Rossi'); the bare `sig` and `ing` are excluded as given names, their period-marked spellings already titles by H2's shape, except `Ing.` after a full name and a comma, which is the ambiguous credential decisions/suffix-acronym-collisions lists (#848) — 2026-10-22 #840.

- `puan` and `cik` (salutations), `ustaz` and `ustazah` (`religious`) and `cikgu` (`occupation`) are titles written `default = false` in ms.toml, which `locales.MS`, a pack choosing `ms` and nothing else, turns on; `tuan` stays out under that choice too, an `excluded` entry, being the hereditary prefix Malaysians file as part of the name and a Vietnamese given name; the pack is a plain choice, a strict one reading Malaysian lists worse — 2026-11-19 #1179.
- The Malaysian honours `datuk`, `dato'` (and `dato’`, the typographic apostrophe), `datin` (`nobility`) and `hajah` (`religious`) are titles by default, each addressing the given name as `sir` does (rules/H1), on no bearer found leading a name but one; `tun`, `haji`, the bare `dato` and the phrases `Tan Sri` and `Puan Sri` (rules/H9, `tan` and `puan` attaching to `sri`, `tan` and `sri` each gated by mul.toml's `given` reading) are titles written `default = false` in ms.toml, which `locales.MS` turns on, each word being a name elsewhere; `Sri` and `Seri` written behind a head honour stay name words (#1334) — 2026-11-21 #1180.

Elsewhere: `justice` and `marshal`, excluded here as common leading-position names, are titles only inside a title phrase since 2026-10-25 and 2026-10-26 (`Chief Justice John Roberts` reads title 'Chief Justice' and `Field Marshal Bernard Montgomery` title 'Field Marshal', `Justice Smith` and `Marshal Yanda` the given name) — decisions/H9's 2026-10-25 #752, phase 2i entry; decisions/H9's 2026-10-26 #752, phase 2i (Derek) entry.
- A Persian title is a plain title that addresses the family name (`دکتر رضایی` reads family), written in fa.toml, and an Arabic title typed with Persian yeh and kaf is a `same_as` spelling of ar.toml's, listed rather than folded; the words that open real Persian family names (`شیخ`, `حاج`, `حاجی`, `آقا`) stay out — 2026-11-10 #1151
Expand Down Expand Up @@ -87,3 +88,9 @@ Elsewhere: `justice` and `marshal`, excluded here as common leading-position nam
- 2026-11-20 #966 — RANKS WRITTEN WITH A HYPHEN ARE TITLES: EIGHT, THEN FIVE MORE ON REVIEW. `vice-admiral`, `rear-admiral`, `vice-marshal`, `air-marshal`, `lieutenant-colonel`, `lieutenant-general`, `major-general` and `brigadier-general` join en.toml as `military` readings, `co-chair` the precedent for an entry holding a hyphen: tokenize keeps a hyphenated word whole, so `Air Vice-Marshal Ann Reed` read given 'Air', middle 'Vice-Marshal Ann', the spaced rank's phrase never reaching it, and reads title 'Air Vice-Marshal' now, the modifier `air` finding its head after it (rules/H9). Each reads as its spaced twin does at the head, after a family comma and after a second comma, under all three orders, save where the twin is two words: a bare rank ending a name stays a name word either way (`John Smith Vice-Admiral` keeps it one family word), and after a second comma `vice-marshal`, `air-marshal` and `major-general` report no comma fork where their spaced twins do, the twin holding a title that may be a given name (`marshal`, `major`, rules/H9) and the hyphenated word holding none (`Smith, John, Major General` reports `comma-structure`, `Smith, John, Major-General` nothing). None of the eight is borne as a name in any source tools/name_usage.py reads. Measured 2026-11-20 against master `cb5088a9` with `uv run python tools/differential/measure.py --base <export>`: govuk-people moves 6, every one `Air Vice-Marshal` gaining the title, and no other local corpus moves (ukec-individuals 0 of 15,214). DECLINED: splitting a hyphenated word at its hyphen to find a title in it, which would reach every hyphenated name holding a title word (`Smith-Major`) and every hyphenated rank the vocabulary does not list; listing the ranks reaches the shape written, and an unlisted one stays a name word, as before.
- **Five more, added on the PR's review** (2026-11-20): `field-marshal`, `lieutenant-commander`, `wing-commander`, `chief-marshal` (`Air Chief-Marshal`) and `sergeant-major`, the British ranks the review found still read as name words. Each reads as its spaced twin does at the head, after a family comma and after a second comma, save the same two shapes: a bare rank ending a name, and after a second comma no comma fork where the twin holds a title that may be a given name (`marshal`, `wing`, `major`). None is borne as a name in any source tools/name_usage.py reads, and none moves a name in govuk-people (0 of 6,021) or ukec-individuals (0 of 15,214), measured against the eight with `uv run python tools/differential/snapshot.py --local <corpus> --base <checkout>`.
- **Where no twin is promised:** a rank that is the whole part before a family comma (`Field-Marshal, Ann` gives family 'Field-Marshal', `Field Marshal, Ann` title 'Field', family 'Marshal'), a rank written alone, and a rank ending a name with a full stop (`John Smith Wing-Commander.` gives title 'Wing-Commander.', the spaced twin title 'Commander.', family 'Wing') read otherwise than the spaced words, which split there; the first eight read the same way (the PR's review, 2026-11-20).
- **2026-11-21 #1180 — MALAYSIAN HONOURS: `datuk`, `dato'`, `datin` AND `hajah` ARE TITLES BY DEFAULT; `tun`, `haji`, THE BARE `dato`, `Tan Sri` AND `Puan Sri` UNDER `locales.MS`.** Malaysian names in official use open with a run of honours, and 1.4.0 through 3.1.0 read the first as the given name (`Datuk Ahmad bin Ali` given 'Datuk', middle 'Ahmad'). Decided 2026-11-21 on the issue's scope: the honours as titles, each addressing the given name as `sir` does (rules/H1), so `Datuk Ahmad` gives given 'Ahmad'. `datuk`, `dato'` and `datin` are `nobility`, `hajah` and `haji` `religious`, as `ustaz` is: not `style`, whose words make a phrase with a title that may be a given name behind them (`Hajah Sri Wahyuni` would read title 'Hajah Sri', rules/H9).
- **THE COUNTS** (`tools/name_usage.py --no-wikidata --boxes --country MY`, 2026-11-21, ORCID's 24,990,909 holders and PatentsView's 5,508,446 inventors; each on its word's note). On by default, none borne leading a name but `hajah` once: `datuk` ORCID given box 4 (none Malaysian) and family 3, PatentsView given 2 (both Malaysian, the honour typed in); `dato'` ORCID given 7 (Malaysia 4) and family 3; `datin` ORCID given 13 (Malaysia 1) and family 2; `hajah` ORCID given 32 (Brunei 3, 28 with no country), PatentsView given 2, and one Companies House filer who bears it as her given name (below). Off by default: `tun` ORCID given 241 (Myanmar 30, China 21) and family 395, US Census 2010 1,908; `haji` given 232 and family 1,178, US SSA 105+ births (decisions/indic-honorifics left its title wanting a choice, 2026-11-19 #1469); the bare `dato` an Italian surname (US Census 2010 633, ORCID family 68) and a Georgian given name (ORCID's given box 3 in Georgia, and 3 of the regressions below); `tan` ORCID given 2,867 and family 20,353, US SSA 597+; `sri` ORCID given 7,047, US SSA 109+. The 2015 King's birthday honours list, as #1180 measured it on 2026-11-08 and not rebuilt here, misses `Dato'` in 32 runs of 1,504 names, `Datuk` 23, `Datin` 23, `Haji` 40, `Hajah` 16, `Tun` 1 and `Puan Sri` 1.
- **THE PHRASES.** `tan` and `sri` hold a `given` reading in mul.toml, so each title is gated (rules/H9) and a title only in a phrase: `tan` and `puan` attach to `sri`. Alone each stays a name word under the pack (`Tan Chee Chai` given 'Tan', `Sri Mulyani` given 'Sri'), reporting `title-or-name`. The build refused a phrase whose two halves are both off by default; it admits one written in one file since this day (decisions/vocabulary-model, the 2026-11-21 #1180 entry, which records why the alternative, `sri`'s title on by default, was declined). By default no phrase is compiled and no `tan`, `sri` or `puan` title.
- **MEASURED** against master `488ea605`, py3.11, `tools/differential/local_agreement.py SOURCE --base <master checkout>` (and with `--locale ms`, whose figures compare the pack in this tree with master's pack), `snapshot.py --local SOURCE --base <master checkout>`, and `config_diff.py diff --local SOURCE default plain:MS` run in each tree (the pack against the default in that tree). By default: my-candidates 174 of 3,077 distinct names move, each now reading an honour as the title (`DATO'` first 101, `DATUK` 69, `DATIN` and `HAJAH` 1 each, and 2 with `DATO'` behind `PROF.` or `UST.`). The word behind the honour is then the given name, which is the person's in most (`DATO' AZAMI` given 'AZAMI') and not where a word the default does not read stands there: a qualifier (given 'SERI' 23, 'SRI' 14, 'WIRA' 5, #1334) or a title off by default (given 'HAJI' 11, 'HJ' 3, 'CIKGU' 4, 'USTAZ' 3); and peeling the honour leaves `ABDUL` short of rules/P12's four name words (`DATO' RADHI ABDUL RAZAK` family 'ABDUL RAZAK' → 'RAZAK', middle 'ABDUL', 2 names), the reading the name has without the honour. ORCID 0 fixed, 0 broken, 3 changed (an honour typed into the given box, now the title); PatentsView 0 broken, 1 title typed in; Companies House 1 regression, `Hajah` (below); opensanctions-parliaments, nepal-candidates and the committed snapshot no move. Under `locales.MS`, against master's pack: ORCID 26 regressions (`haji` 17, Tanzania 8, Ethiopia 3 and one each in six other countries; `tun` 5, Myanmar 4 and a Burmese name in Malaysia; the bare `dato` 4, Georgia 3), 14 changed, 7 of them a Burmese, Singaporean or Thai given name Tun read as the title (a name shaped `Tun Tun Hla`, title 'Tun Tun', given 'Hla'), and 19 more counted as a title typed into the given box, 10 of which are such a given name Tun (Singapore 4, Myanmar 3) and 9 `Haji`, with 2 fewer (a name shaped `Dr. Haji Ali`, losing the given name Haji); Companies House 36 (`haji` 30, 20 of them British filers and 4 Pakistani, most the honour typed into the forename box, which a box score counts as a miss, decisions/indic-honorifics' #1469 entry; `tun` 2, given names; the bare `dato` 1, Georgian; `hajah` 1, the default's; and 2 where the filer typed the honours into the forename box, one read right and one, `Tan Sri Dato Seri …`, reading given 'Seri', #1334's shape); PatentsView 4 (2 a given name Tun, 2 honours typed into the given box, read right), and 3 more given names Tun counted as a title typed in. On my-candidates the pack reads 248 names differently from the default, where master's reads 117: 197 a title in the role fields (`ustaz` 72, `cikgu` 45, `haji` 37, `dato` 29, `Tan Sri` 6, `ustazah` 5, `cik` 2, `Puan Sri` 1), and 51 the same roles with a new `title-or-name` report (36 Chinese names written family first with `TAN`, 14 `DATO' SRI`, 1 `DATO' TAN`). None of the five local corpora config_diff read has a name with a style before `Tan` or `Sri` (a salutation before the phrase, `Mr Tan Sri …`, is no such style).
- **ACCEPTED.** By default, a woman whose given name is Hajah reads it as the title (one Companies House filer, a name shaped `Miss Hajah Kamara`, title 'Miss Hajah'), and peeling an honour leaves a name its reading without the honour (rules/P12's `abdul`, above). Under the pack: a given name or surname `Tun` opening a name, Burmese, Chinese or Singaporean (`Tun Tun Hla` title 'Tun Tun', given 'Hla'; `Encik Tun Yoke Wah` title 'Encik Tun', as #1180 found in the honours list); a given name `Haji` opening one (`Haji Juma` given 'Juma') and the citation `Haji A` (title 'Haji', given 'A'); the surname `Tan` before a given name `Sri` (`Tan Sri Wahyuni` title 'Tan Sri'); a style before `Tan` or `Sri`, which makes a phrase (`Hon. Tan Ah Kow` title 'Hon. Tan', `Hon. Sri Mulyani` title 'Hon. Sri', rules/H9; a strict choice keeps given 'Tan' and 'Sri', dropping en.toml's style), the `Hon. Sri` half being the cost option A would have put in the default (decisions/vocabulary-model, the same day's entry), paid here under the pack alone, and the `Hon. Tan` half the pack's own; the phrase cut short, which leaves its first half a title as `Field Marshal` does by default (`Tan Sri` alone title 'Tan', given 'Sri'; `Tan Sri, Muhyiddin` title 'Tan', family 'Sri'); the bare `Dato` of an Italian or Georgian name (`Dato Mario`); and the `title-or-name` report on `Tan` or `Sri` wherever no phrase takes it, opening a name or behind another title (`Tan Chee Chai`, `Dato' Sri Ahmad`), the cost of a gated title, which by default reports nothing.
- **LEFT OUT**, each the issue's: `Sri` and `Seri` behind a head honour (`Dato' Sri`, `Datuk Seri`, which read given 'Sri'), `Laks. Muda` and `Prof. Madya`, the qualifier written after its head (#1334); `YB`, `YM` and `YA`, two capitals, the shape of paired initials (#1205); the police ranks `ASP`, `ACP`, `DSP`, `SAC` and `DCP`; the service designations `TUDM` and `TLDM`; the apostrophes `‘` (U+2018) and `ʼ` (U+02BC), which no local corpus writes after `Dato` (nor `’`, listed as the brief asked, 2026-11-21). Found here and not changed: under the pack `Dato' Ustaz Idris` reads family 'Idris', the run addressing as its last title, `ustaz`, does, by the family (#1179's reading).
Loading