diff --git a/AGENTS.md b/AGENTS.md index e88006d8b..6ed5df0e8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -385,7 +385,7 @@ Don't use the bare `python3 -m doctest .rst` CLI (no `optionflags`) to che **`pr/NNN` local branches** track upstream PRs — don't commit to them by accident. Check `git branch --show-current` before starting work. -**Title vs suffix is positional for BARE words, and the leading period-abbreviation rule overrides even that** — a word matching `TITLES` at the front of a name becomes `title`; the same word matching `SUFFIX_ACRONYMS`/`SUFFIX_WORDS` at the end becomes `suffix` (never both, regardless of the word's real-world meaning). The `TITLES`/suffix overlap was audited in #296 (2026-08-23): the pure postnominals (`jr`, `junior`, `phd`, `do`, `se`) left `TITLES`, the v1-residue `dr`/`sra` left the suffix sets, and the ten words in both on 2026-11-21 (`ms`, `sr`, `lt`, `vc`, the ranks `cpl`, `cpo`, `cpt`, `csm`, `sgm`, and since #1128 the Cyrillic `д-р`; `md`, `sa` and `ra` were duals too until #853 took `md`'s title reading out, a leading `Md` being the given name Muhammad, #857 took `sa` out of the vocabulary, and #1483 gave `ra` a Korean name reading, which makes its title one only inside a title phrase, rules/H9) are deliberate duals that position decides (recount with `L = Parser().lexicon._sets; sorted(L.titles & (L.suffix_acronyms | L.suffix_words))`). External test sources (old issue gists, etc.) sometimes assert `suffix` for a leading professional abbreviation like `PD`/`Dipl.-Ing.` — that's the source data being wrong, not a parser bug. Verify position before "fixing" it. Two qualifications the older "purely positional" wording papered over, the first measured 2026-08-01 and the second answered 2026-09-08 (#316): a PERIOD-marked leading word is claimed by the shape rule before any vocabulary is read (`"Esq. Smith"` → `title`, though `esq` is suffix-only), save a listed title and, since #789, a given name written short (`"Chas. Smith"` → `given`), while a run of single letters, which the shape rule never takes, is a title at the head only by rules/H10's vocabulary (`"U.S. Senator John Smith"` → `title='U.S. Senator'`), and a PERIOD-marked trailing word is claimed by VOCABULARY — first the suffix sets, which the peel reads before anything else (`"John Smith Esq."` → `suffix`), then the titles (`"John Smith Prof."` → `title='Prof.'`, `rules/H5`) — while an unlisted abbreviation there stays a name part (`"John Smith Xyz."` → `family='Xyz.'`) unless it is written as two or more period-separated chunks, which since 2.4 IS a trailing shape rule (`Policy.unlisted_dotted_suffixes`, default on: `"John Smith X.Y.Z."` → `suffix='X.Y.Z.'`, read by the same words-to-spare count a bare ambiguous acronym takes, `rules/S3`), except paired initials in a script with capitals, which stay a name word (`"Ram Bahadur B.K."` → `family='B.K.'`, #864). The SINGLE trailing period is still not one, deliberately — it is the abbreviation shape any word can wear. The bare word is where "positional" still holds whole -- outside a part past the second comma, which holds no name word, so C2 reads a bare title word there as a title since #603 (`Eric H. Holder, Jr., Attorney General`), and outside a listed salutation ending the given part after a family comma, which rules/H8 reads as the title since #835 (`Doe, Jane Mrs`), the comma having marked the surname's place -- and the reason it must: `TITLES` holds words that are in no suffix set — 787 of them on 2026-10-11 (746 before #606's salutations), measured with `L = Parser().lexicon._sets; len(L.titles - L.suffix_acronyms - L.suffix_words)`, a figure that grows with the vocabulary and never shrinks the argument — and many are ordinary surnames (`pope`, `bishop`, `judge`, `sheriff`, `baron`, `master`, ...), so a vocabulary-first rule over BARE trailing words would read `"Mary Jane Pope"` as `title='Pope'`, `family='Jane'`. The period is what separates the safe case from that one, and it separates it by being a WRITING convention rather than by making the collision go away: `"Mary Jane Pope"` keeps `family='Pope'` while `"Mary Jane Pope."` reads `title='Pope.'`, `family='Jane'`, a cost accepted under the input-is-a-name premise rather than one the rule prevents (the trailing-position bullet in decisions/vocabulary-exclusions, measured 2026-09-09). Since #316 that sentence describes the shipped rule rather than an aspiration. +**Title vs suffix is positional for BARE words, and the leading period-abbreviation rule overrides even that** — a word matching `TITLES` at the front of a name becomes `title`; the same word matching `SUFFIX_ACRONYMS`/`SUFFIX_WORDS` at the end becomes `suffix` (never both, regardless of the word's real-world meaning). The `TITLES`/suffix overlap was audited in #296 (2026-08-23): the pure postnominals (`jr`, `junior`, `phd`, `do`, `se`) left `TITLES`, the v1-residue `dr`/`sra` left the suffix sets, and the ten words in both on 2026-11-21 (`ms`, `sr`, `lt`, `vc`, the ranks `cpl`, `cpo`, `cpt`, `csm`, `sgm`, and since #1128 the Cyrillic `д-р`; `md`, `sa` and `ra` were duals too until #853 took `md`'s title reading out, a leading `Md` being the given name Muhammad, #857 took `sa` out of the vocabulary, and #1483 gave `ra` a Korean name reading, which makes its title one only inside a title phrase, rules/H9) are deliberate duals that position decides (recount with `L = Parser().lexicon._sets; sorted(L.titles & (L.suffix_acronyms | L.suffix_words))`). External test sources (old issue gists, etc.) sometimes assert `suffix` for a leading professional abbreviation like `PD`/`Dipl.-Ing.` — that's the source data being wrong, not a parser bug. Verify position before "fixing" it. Two qualifications the older "purely positional" wording papered over, the first measured 2026-08-01 and the second answered 2026-09-08 (#316): a PERIOD-marked leading word is claimed by the shape rule before any vocabulary is read (`"Esq. Smith"` → `title`, though `esq` is suffix-only), save a listed title and, since #789, a given name written short (`"Chas. Smith"` → `given`), while a run of single letters, which the shape rule never takes, is a title at the head only by rules/H10's vocabulary (`"U.S. Senator John Smith"` → `title='U.S. Senator'`), and a PERIOD-marked trailing word is claimed by VOCABULARY — first the suffix sets, which the peel reads before anything else (`"John Smith Esq."` → `suffix`), then the titles (`"John Smith Prof."` → `title='Prof.'`, `rules/H5`) — while an unlisted abbreviation there stays a name part (`"John Smith Xyz."` → `family='Xyz.'`) unless it is written as two or more period-separated chunks, which since 2.4 IS a trailing shape rule (`Policy.unlisted_dotted_suffixes`, default on: `"John Smith X.Y.Z."` → `suffix='X.Y.Z.'`, read by the same words-to-spare count a bare ambiguous acronym takes, `rules/S3`), except paired initials in a script with capitals, which stay a name word (`"Ram Bahadur B.K."` → `family='B.K.'`, #864). The SINGLE trailing period is still not one, deliberately — it is the abbreviation shape any word can wear. The bare word is where "positional" still holds whole -- outside a part past the second comma, which holds no name word, so C2 reads a bare title word there as a title since #603 (`Eric H. Holder, Jr., Attorney General`), and outside a listed salutation ending the given part after a family comma, which rules/H8 reads as the title since #835 (`Doe, Jane Mrs`), the comma having marked the surname's place -- and the reason it must: `TITLES` holds words that are in no suffix set — 787 of them on 2026-10-11 (746 before #606's salutations), measured with `L = Parser().lexicon._sets; len(L.titles - L.suffix_acronyms - L.suffix_words)`, a figure that grows with the vocabulary and never shrinks the argument — and many are ordinary surnames (`pope`, `bishop`, `judge`, `baron`, `master`, ...), so a vocabulary-first rule over BARE trailing words would read `"Mary Jane Pope"` as `title='Pope'`, `family='Jane'`. The period is what separates the safe case from that one, and it separates it by being a WRITING convention rather than by making the collision go away: `"Mary Jane Pope"` keeps `family='Pope'` while `"Mary Jane Pope."` reads `title='Pope.'`, `family='Jane'`, a cost accepted under the input-is-a-name premise rather than one the rule prevents (the trailing-position bullet in decisions/vocabulary-exclusions, measured 2026-09-09). Since #316 that sentence describes the shipped rule rather than an aspiration. ### Tests (`tests/`) diff --git a/docs/customize.rst b/docs/customize.rst index 1a0632dd3..da907e6bb 100644 --- a/docs/customize.rst +++ b/docs/customize.rst @@ -1036,7 +1036,7 @@ Four things in the readings make this vocabulary: >>> parse("Chief Justice John Roberts").title 'Chief Justice' >>> [r.properties for r in Lexicon.default().readings_of("chief")] - [(('attaches', ('military', 'office')),)] + [(('attaches', ('imam', 'military', 'office')),)] >>> chief = Lexicon.default().add("chief", kind="nobility", ... attaches=["military"]) >>> Parser(lexicon=chief).parse("Chief Justice John Roberts").title diff --git a/docs/design/decisions/H9-title-phrase.md b/docs/design/decisions/H9-title-phrase.md index d1ca61554..8504a897e 100644 --- a/docs/design/decisions/H9-title-phrase.md +++ b/docs/design/decisions/H9-title-phrase.md @@ -15,6 +15,7 @@ - `lady` is a title that may be a given name only under a Spanish choice, es.toml's `given` reading being off by default, and `locales.ES` makes that choice; eight more titles borne as given names, `sir`, `general`, `bishop`, `colonel`, `canon`, `author`, `empress` and `lawyer`, stay titles everywhere, their counts on their title readings — 2026-11-03 #913, the last nine. - The article before any other title that may be a given name is no partner, save before a modifier, whose object of `the` decision 10 reads (`The Wing Smith` → title 'The Wing'), at the head, after a comma and under every order: `The Marquis de Sade` reads given 'The Marquis', `The Marquis of Tavistock` the title — 2026-11-03 #913, the article (Derek). - A pack's fragment may take a title's `given` reading out too, the caller's case above made by the pack: `locales.CS` removes `ing`'s, so its `Ing` is a title wherever a title is read before the name (`Ing Jan Novák` reads title 'Ing' under the pack, given 'Ing' by default) — 2026-11-21 #970, decisions/vocabulary-model. +- `imam`, `timi`, `sheriff` and `effendi` are titles that may be given names, `chief` and `deputy` attaching to `imam` and `sheriff` to `principal`, `clerk` and `officer`: `Imam Taufik Sasongko` and `Sheriff Kanteh Jallow` read the given name, reported `title-or-name`, `Timi Adebayo` and `Effendi Purnomo Sitorus` the given name with no report, and `Chief Imam Musa Bello`, `Grand Imam Yusuf Karimi`, `Sheriff Principal Jane Doe` and `Timi of Ede` the title, and `Kanteh Jallow, Sheriff` given 'Sheriff', family 'Kanteh Jallow', as `John Smith, Dean` reads; `mufti` and `lamido` stay titles — 2026-11-21 #1206. Not standing: what a v1 caller's `titles` list did to a title that may be a given name — emptying it, replacing it, removing a word 2.6.0 listed — overtaken by 3.0's removal of the v1 layer, #357 in decisions/3-0-reevaluations — 2026-10-25 #752, phase 2i; 2026-10-26 #752, the v1 title list. @@ -163,3 +164,21 @@ Not standing: what a v1 caller's `titles` list did to a title that may be a give - MEASURED under the choice (2026-11-03, py3.11): the 595 local-corpus texts holding `lady` as a word, distinct within each corpus (`(?i)(?`, 30 steps, none failed; the moves counted by the word each name holds, the fielded corpora's from `local_agreement.py --base --list 300`). Fixed and broken, records whose filed boxes the reading now agrees with and those it no longer does: + + | word | psc-individuals | orcid-researchers | patentsview-inventors | broken | + |---|---|---|---|---| + | `imam` | 19 | 36 | 1 | 0 | + | `timi` | 8 | 8 | 0 | 0 | + | `sheriff` | 14 | 8 | 0 | 0 | + | `effendi` | 0 | 1 | 1 | 0 | + + Besides those, records read wrong both before and after moved the word from the title to the given name (orcid-researchers 12, `imam` 11 and `sheriff` 1, most with the whole name typed into one box; psc-individuals 1, `sheriff`), and orcid-researchers 14 and patentsview-inventors 1 records with the word typed into the given-names box, counted apart as titled while the parse read the title, now read it as the given name. The unfielded corpora: opensanctions-parliaments 9 (Indonesia's lists, `imam` 8, the issue's 7 and one more since its fetch, and `effendi` 1, each a given name; its other chambers, Malaysia's, Pakistan's, Egypt's, Somalia's, Turkey's and India's among them, move nothing, and it holds no Nigerian list); fec-individuals 20 (`timi` 13, `imam` 5, `sheriff` 2, all given names after a family comma); ctgov-officials 4 and ctgov-contacts 3 (`imam` 5, `sheriff` 2); nepal-candidates 1; jrc-names 60 (`timi` 7, each a person named Timi, and `imam` 53, the issue's figure, most a cleric or a figure of history written with the bare title in news text); the committed corpora 2, both `imam`, one a cleric written with the bare title, the cost, and one a name GND's record files with no title and the word among its given names, whose title field now agrees with that record while its given and family fields still do not (`gnd_agreement.json` re-recorded). Spelling pairs: jrc-names 6 persons and nepal-candidates 1 pair now read alike, none apart. CLDR agreement does not move. These figures were taken before the reviews added the `deputy` and `sheriff` phrases; re-measured after them the same day, against master `9ec1fcb4`, every figure is the same, no corpus name holding those phrases. + - THE COST, accepted with the words: a cleric written with the bare title before his name reads it as the given name (the jrc-names and committed moves above), rules/H9's Accepted bullet for a religious title written bare; the ruler of Ede written bare, which no corpus measured, its bullet for a ruler. And the words now read as every title that may be a given name reads, found by the reviews and no corpus measure, since the local corpora hold almost none of these shapes (fec-individuals' 12 names ending in the word after a comma are all `FAMILY, GIVEN`): the word alone after a full name and a comma is the listing form's given name, so an office written after the name reverses it (`Kanteh Jallow, Sheriff` gives given 'Sheriff', family 'Kanteh Jallow', where 1.4.0 through 3.1.0 read the title), as `John Smith, Dean` reads; past a second comma it is a suffix (`Sasongko, Taufik, Imam`, 1.4.0's reading, where 2.4.0 through 3.1.0 read the title), as `Smith, John, Dean` reads; opening the part before a family comma it is not peeled (`Imam Sasongko, Taufik` gives family 'Imam Sasongko', 1.4.0's reading, where 2.5.0 through 3.1.0 read the title); a title after it that it does not attach to leaves it a name word (`Sheriff Deputy John Smith`, `Imam Dr. Musa Bello`); `effendi`, a style, is no longer the partner of a title that may be a given name after it (`Effendi Mahdi Karimi` gives given 'Effendi', where every release read title 'Effendi Mahdi'); and `chief`, which attaches to no ruler's title, leaves `Chief Timi Adebayo` the given name Timi behind the title 'Chief'. A strict choice of `en` alone leaves `Chief Imam` reading title 'Chief', as master read it, since the religious title is ar.toml's. + - UNDER A STRICT CHOICE. `imam`'s title is ar.toml's and `effendi`'s tr.toml's, their given readings id.toml's, so a strict Arabic choice reads `Imam Taufik Sasongko` as title 'Imam' and a strict Turkish one `Effendi Purnomo Sitorus` as title 'Effendi', as 1.4.0 through 3.1.0 read both by default: `STRICT_UNGATED` holds `ar`'s `imam` and `tr`'s `effendi`, reviewed and intended, since a caller choosing Arabic or Turkish alone has said the names are of that origin (docs/locales.rst). The plain choices, `locales.AR` and `locales.MS`, and a strict choice that keeps id.toml read the given name. `timi` and `sheriff` keep their gate under strict `yo` and strict `en`. + - LEFT OUT. `mufti`: its given name is Indonesian alone, and before a name in South Asia and the Arab world it is the cleric's title, which these corpora barely sample. The spike's moves were small and leaned to gains: PSC 3 records and orcid-researchers 2 brought to agree, 2 more orcid-researchers records with the word in the given-names box counted apart as titled, a ctgov-officials surname read right and one Indonesian MP's given name, against jrc-names 3 spellings of clerics lost, and PSC 1 and orcid-researchers 3 records read wrong both ways, several given boxes opening with a scholar's title (`Mufti` before a Pakistani or Qatari scholar's name). Too few either way to read a South Asian cost from, so it waits for a measure that holds one. `lamido`: 6 ORCID given boxes (Nigeria 3) and 1 Wikidata bearer; the 4 corpus names it opens, which the spike moved, are two people bearing it as a name, one orcid-researchers record and one person spelled three ways in jrc-names, too few to stand a reading on, so it waits for counts. Both stay titles, their counts here. + - NOT HERE. The issue's third question, a lone title word read as a title with nothing else (`Maharani`), is a rule rather than vocabulary, left to an issue of its own. + Recompute: `uv run python tools/differential/measure.py --base `; for the two left out, the same with a `given = { note = "spike" }` reading on `mufti` in id.toml and on `lamido` in ff.toml. diff --git a/docs/design/decisions/vocabulary-exclusions.md b/docs/design/decisions/vocabulary-exclusions.md index 1e45030a9..32ca356c5 100644 --- a/docs/design/decisions/vocabulary-exclusions.md +++ b/docs/design/decisions/vocabulary-exclusions.md @@ -62,7 +62,7 @@ Excluded (TITLES): - The per-word refusals are data since #750 (2026-10-19): each word refused a title reading — the Indic ঠাকুর/ठाकुर, कुमारी/কুমারী, बेगम/বেগম, शेख/শেখ, आचार्य and राजा/रानी (#343, #344), and #606's ông/bà, thiru, puan, pan, rodina, gróf, cik, paron, tikin, marshal and justice, #662's malam (Derek's decline) and bay, #660's shehu, #1179's tuan (2026-11-19), and #789's wm (2026-10-22) — is an `excluded` entry in its language's file (save `pan`, `puan` and `cik`, each since a reading off by default for a language's choice to turn on, decisions/salutation-titles' 2026-10-30 #753, phase 3f and 2026-11-19 #1179 entries) with its reason, and with its counts as name readings where they were taken. `uv run python tools/vocab/query.py --excluded title` lists them. A contributor who adds one back meets the reason as a build error. - shehu's counts do not settle a graf-class weighing, and must not be read as if they did: its one leading-position figure, the Wikidata given-name count on its entry, is a lower bound (Shagari's own entry has no given-name statement), and its other counts are family-name bearers, a position C-i does not ask about. The evidence that Shehu leads a name is not a count. It is Shagari himself, and CLDR's Hausa sample data, whose six renderings carrying the word all file it as the given name (`grep '"given": "Shehu"' tools/differential/cldr_fields.jsonl`). It arrived with an early bulk import (1a51555f) and was never put to C-i before #660. Whoever re-argues it counts Hausa given-name use first; the accepted cost is the honorific use, `Shehu Abubakar` reading given Shehu as any untitled name does, and the reading belongs in an opt-in pack if anyone asks for it. malam is the opposite case: CLDR's Hausa data files Malam as the title (`grep '"title": "Malam"' tools/differential/cldr_fields.jsonl`), so its refusal is a decline on the counts, not a shehu-style removal. - The class-level half of the Indic refusals stays here: the divergence on शेख/শেখ is deliberate and is the sri/shri case run backwards — the Latin sheikh cluster SHIPS as given-name titles for the Arabic addressing form, while the Indic spellings name the family. Since 2026-10-27 the Latin spellings but `shaykh` are titles only inside a title phrase (decisions/H9), so at the head of a name `Shekh Ahmed` and `शेख अहमद` both read the word as the given name, and the divergence stands only where a style, a modifier or `of` makes the Latin word a title, or a period does at the front by rules/H2's shape (`Sheikh. Ahmed` reads title 'Sheikh.', `शेख. अहमद` given 'शेख.'). shehu's removal moved three CLDR corpus names (`Shehu Muhammed`, `Muhammed, Shehu`, `Modibbo, Shehu Bello`), all three now agreeing with CLDR on every role (moves: `uv run python tools/differential/snapshot.py --since v2.4.1`). -- The trailing-position rule that must NOT be adopted, and 2026-09-08 says what the line is: TITLES holds hundreds of words in no suffix set, at least nineteen of them ordinary English surnames (king, judge, bishop, baron, sheriff, ...; `king` has since left TITLES, a title only inside a title phrase by decisions/H9's #752 phase 2j, so `Mary Jane King.` now reads family 'King.', while `Mary Jane Pope.` still reads title 'Pope.'), so a blanket "vocabulary outranks position in the trailing slot" reading would turn "Mary Jane King" into title="King" with the family name gone. The leading half of this argument is AGENTS.md's "Titles permanently shadow first names" gotcha, whose example is Dean; this is the trailing half, and it shadows the family name rather than the given (#316). What #316 settled is that the prohibition is on BARE words: "Mary Jane King" still reads family King, while "John Smith Prof." reads title Prof. **The second half of that argument is RETRACTED 2026-09-09**, in review of the docs commit: "a period-marked trailing word being one nobody writes as a surname" claimed the period keeps the collision out of the trailing slot, and it does not. Measured on the branch tree — "Mary Jane King." reads title "King.", given Mary, family Jane, the family name shadowed exactly as the bare reading would have shadowed it, and "John Smith Judge." reads title "Judge." The reach is the vocabulary rather than a handful: of the 746 titles in no suffix set, 627 read as a trailing title once a period is written behind them, and every one of the 119 that do not is kept out by the abbreviation SHAPE — a digit, a hyphen, an apostrophe, or a script whose letters carry combining marks (rules/H2 records that half) — no plain ASCII-letter title missing at all. So king, judge, bishop, baron and sheriff ARE reachable in the trailing slot; what the prohibition above buys is the bare spelling and nothing more. The period is a WRITING convention the rule can read, not evidence about the word, and reading it is an ACCEPTED COST under the premise that the input is a name (rules.md H Background): someone who ends a name with a period-marked word has written an abbreviation. rules/H5 carries it as an Accepted clause with "Mary Jane King." as the executable example. (Since 2026-10-26 `king` is a title only inside a title phrase, decisions/H9, #752 phase 2j: "Mary Jane King." reads family "King." and the surnames this paragraph names are pope, judge, bishop, baron and sheriff, rules/H5's example "Mary Jane Pope.".) Recompute the reach with `L = Parser().lexicon; ws = [w for w in L.titles - L.suffix_acronyms - L.suffix_words if " " not in w]; len([w for w in ws if parse("Mary Jane %s." % w).title])` against `len(ws)` — 627 of 746 on 2026-09-09 — the digits move as the vocabulary grows and neither argument does. See #H5. (Since 2026-11-06, decisions/H5's #1116 entry, a hyphen or a period inside the word no longer keeps a word out: 718 of 820 reach the trailing slot, 688 before, the 30 added including whole hyphenated words as well as abbreviations (`co-founder`, `senior-judge`, `singer-songwriter`, `priv.-doz`, `sig.ra`), and the recipe reads `Parser().lexicon._sets` since 3.0's 4i-b. Of the 102 still kept out, 35 hold a digit, 5 an apostrophe and 54 combining marks, and 8 are kept out by what the list above does not name: a slash (`mag/judge`), the Hebrew geresh and gershayim (`ד"ר`, `פרופ׳`), and the single letter `ড`.) The bare prohibition has one exception since #835 (decisions/H8): a listed salutation ending the given part after a family comma is the title, the comma having marked the surname's place and the salutations borne as names being excluded. +- The trailing-position rule that must NOT be adopted, and 2026-09-08 says what the line is: TITLES holds hundreds of words in no suffix set, at least nineteen of them ordinary English surnames (king, judge, bishop, baron, sheriff, ...; `king` has since left TITLES, a title only inside a title phrase by decisions/H9's #752 phase 2j, so `Mary Jane King.` now reads family 'King.', while `Mary Jane Pope.` still reads title 'Pope.'), so a blanket "vocabulary outranks position in the trailing slot" reading would turn "Mary Jane King" into title="King" with the family name gone. The leading half of this argument is AGENTS.md's "Titles permanently shadow first names" gotcha, whose example is Dean; this is the trailing half, and it shadows the family name rather than the given (#316). What #316 settled is that the prohibition is on BARE words: "Mary Jane King" still reads family King, while "John Smith Prof." reads title Prof. **The second half of that argument is RETRACTED 2026-09-09**, in review of the docs commit: "a period-marked trailing word being one nobody writes as a surname" claimed the period keeps the collision out of the trailing slot, and it does not. Measured on the branch tree — "Mary Jane King." reads title "King.", given Mary, family Jane, the family name shadowed exactly as the bare reading would have shadowed it, and "John Smith Judge." reads title "Judge." The reach is the vocabulary rather than a handful: of the 746 titles in no suffix set, 627 read as a trailing title once a period is written behind them, and every one of the 119 that do not is kept out by the abbreviation SHAPE — a digit, a hyphen, an apostrophe, or a script whose letters carry combining marks (rules/H2 records that half) — no plain ASCII-letter title missing at all. So king, judge, bishop, baron and sheriff ARE reachable in the trailing slot; what the prohibition above buys is the bare spelling and nothing more. The period is a WRITING convention the rule can read, not evidence about the word, and reading it is an ACCEPTED COST under the premise that the input is a name (rules.md H Background): someone who ends a name with a period-marked word has written an abbreviation. rules/H5 carries it as an Accepted clause with "Mary Jane King." as the executable example. (Since 2026-10-26 `king` is a title only inside a title phrase, decisions/H9, #752 phase 2j: "Mary Jane King." reads family "King." and the surnames this paragraph names are pope, judge, bishop, baron and sheriff, rules/H5's example "Mary Jane Pope.". Since 2026-11-21 `sheriff` is one too, decisions/H9's #1206 batch: "Jane Smith Sheriff." reads family "Sheriff.", leaving pope, judge, bishop and baron.) Recompute the reach with `L = Parser().lexicon; ws = [w for w in L.titles - L.suffix_acronyms - L.suffix_words if " " not in w]; len([w for w in ws if parse("Mary Jane %s." % w).title])` against `len(ws)` — 627 of 746 on 2026-09-09 — the digits move as the vocabulary grows and neither argument does. See #H5. (Since 2026-11-06, decisions/H5's #1116 entry, a hyphen or a period inside the word no longer keeps a word out: 718 of 820 reach the trailing slot, 688 before, the 30 added including whole hyphenated words as well as abbreviations (`co-founder`, `senior-judge`, `singer-songwriter`, `priv.-doz`, `sig.ra`), and the recipe reads `Parser().lexicon._sets` since 3.0's 4i-b. Of the 102 still kept out, 35 hold a digit, 5 an apostrophe and 54 combining marks, and 8 are kept out by what the list above does not name: a slash (`mag/judge`), the Hebrew geresh and gershayim (`ד"ר`, `פרופ׳`), and the single letter `ড`.) The bare prohibition has one exception since #835 (decisions/H8): a listed salutation ending the given part after a family comma is the title, the comma having marked the surname's place and the salutations borne as names being excluded. Excluded (Policy.script_orders defaults): Script.KATAKANA is deliberately absent — a pure-katakana token is predominantly a transcribed foreign name kept in its source order, so nothing defaults on it (rule W4's boundary). Noted 2026-08-15: of the three Script-keyed axes, this is the one with no force-a-decision guard (mechanisms.md#FORCE-A-DECISION-TABLE), so a new Script member silently gets no order. diff --git a/docs/design/rules/H9-title-phrase.md b/docs/design/rules/H9-title-phrase.md index 953d45971..dedf81c8f 100644 --- a/docs/design/rules/H9-title-phrase.md +++ b/docs/design/rules/H9-title-phrase.md @@ -43,6 +43,11 @@ "Pope Saint John Paul II" → title="Pope Saint" "Cheikh Anta Diop" → given="Cheikh" "Queen Mother Elizabeth" → title="Queen Mother" + "Chief Imam Musa Bello" → title="Chief Imam" + "Sheriff Principal Jane Doe" → title="Sheriff Principal" + "Mr Imam Hidayat" → given="Imam" + "Sheriff Kanteh Jallow" → given="Sheriff" + "Effendi Purnomo Sitorus" → given="Effendi" ``` - **A modifier in the leading run of titles before the first comma** has its phrase in a head title after it in that run, in a title before it that attaches to it, in `of` after it, or in the object of `of` or `the` there. A modifier outside that run, ending the name or after a comma, is read as any title is, save one that may be a given name, which is read everywhere as it is in that run. ``` @@ -169,12 +174,13 @@ "The Saint Thomas More" → given="The Saint" "The Marquis of Tavistock" → title="The Marquis of Tavistock" ``` -- A religious title that also opens given names, in its own tradition or another, written bare, reads as a name word before a name in every tradition, behind any title but a style, a modifier or one that attaches to it; the name data at hand writes the title there almost never. +- A religious title that also opens given names, in its own tradition or another, written bare, reads as a name word before a name in every tradition, behind any title but a style, a modifier or one that attaches to it; the record data at hand writes the title there almost never, and clerics written that way are mostly in news text. ``` "Gyani Zail Singh" → given="Gyani" "Lord Buddha Tamang" → given="Buddha" "The Rev. Deacon John Smith" → given="Deacon" "Saint Thomas More" → given="Saint" + "Imam Rasyid Hakim" → given="Imam" ``` - A ruler, a royal or a noble written with the bare title in front reads it as a name word, the given name in the default order, a style before it or `of` after it keeping the title; the record data at hand writes the word there almost only as a given name, and rulers, royals and nobles that way mostly in news text. ``` @@ -186,6 +192,7 @@ "Marquis de Lafayette" → given="Marquis" "Queen Elizabeth II" → given="Queen" "Pharaoh Ramesses II" → given="Pharaoh" + "Timi Oladele Akande" → given="Timi" "His Majesty King Charles" → title="His Majesty King" "Prince of Wales" → title="Prince of Wales" ``` diff --git a/docs/migrate.rst b/docs/migrate.rst index d31b0f945..d70249d4d 100644 --- a/docs/migrate.rst +++ b/docs/migrate.rst @@ -565,7 +565,7 @@ it: * - ``TITLE_PHRASES`` - No call: each two-word phrase is compiled from a title reading's ``attaches`` property (``readings_of("chief")`` shows - ``properties=(('attaches', ('military', 'office')),)``), and the + ``properties=(('attaches', ('imam', 'military', 'office')),)``), and the phrases are not listed * - ``PARTICLES`` - ``d.words(kind="particle")`` @@ -2439,6 +2439,34 @@ To read one of the four as a name, remove its reading: >>> as_31.parse("Qari Ahmed Khan").given 'Qari' +Imam, Timi, Sheriff and Effendi as given names +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +``Imam``, ``Timi``, ``Sheriff`` and ``Effendi`` opening a name are the +given name, as they are in Indonesia, Nigeria and West Africa, where +1.4 through 3.1 read them as the title. Written alone after a full +name and a comma, the word is the given name and the name before the +comma the family (``Kanteh Jallow, Sheriff``), as ``Dean`` reads there. +In a title phrase they stay titles (``Chief Imam``, ``Grand Imam``, +``High Sheriff``, ``Sheriff of Nottingham``): + +.. doctest:: + + >>> imam = parse("Imam Taufik Sasongko") + >>> imam.title, imam.given, imam.family + ('', 'Imam', 'Sasongko') + >>> parse("Chief Imam Musa Bello").title + 'Chief Imam' + +To read one of the four as a title wherever it opens a name, remove its +given reading: + +.. doctest:: + + >>> as_31 = Parser(lexicon=Lexicon.default().remove("imam", kind="given")) + >>> as_31.parse("Imam Taufik Sasongko").title + 'Imam' + Alias markers: @ and urf ^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/release_log.rst b/docs/release_log.rst index 45398110b..6240ba193 100644 --- a/docs/release_log.rst +++ b/docs/release_log.rst @@ -4,6 +4,7 @@ Release Log nameparser 3.2 is under development. + - **Read Imam, Timi, Sheriff and Effendi opening a name as the given name, as in Indonesia, Nigeria and West Africa.** ``parse("Imam Taufik Sasongko")`` gives given ``Imam``, middle ``Taufik``, family ``Sasongko``, where 1.4.0 through 3.1.0 gave title ``Imam``, given ``Taufik``; in a title phrase each stays the title (``Chief Imam``, ``Grand Imam``, ``Sheriff Principal``, ``Timi of Ede``), and a cleric written with the bare title before his name reads it as the given name too, as does the word written alone after a full name and a comma (``Kanteh Jallow, Sheriff`` gives given ``Sheriff``, family ``Kanteh Jallow``). :issue:`1206` - **Fix a title or suffix typed with a zero-width non-joiner or joiner at its edge, which read as a name word.** ``parse("Dr\u200c John Smith")`` gives title ``Dr\u200c``, given ``John``, where 1.4.0 through 3.1.0 gave given ``Dr\u200c``, middle ``John``; the Persian ``مهندس`` typed with a ZWNJ after it is the title the same way, and the name match reads a name typed with one as ``folded``. The field keeps the character, and one inside a word is still part of its spelling. A ``Lexicon`` pickled with a word added with one at its edge is refused on load. :issue:`1335` - **Read Ab opening a name as the given name, Abdul written short or the Dutch name, not the title Airman Basic.** ``parse("Ab. Ghani Harun")`` gives given ``Ab.``, middle ``Ghani``, where 1.4.0 through 3.1.0 gave title ``Ab.``, given ``Ghani``; ``Ab``, ``AB`` or ``AB.`` alone after a full name and a comma is now the given name, which reverses the name (``John Smith, AB`` gives given ``AB``, family ``John Smith``, where 1.4.0 through 3.1.0 gave title ``AB``). The rank is read alone only under a choice of English with ``strict=True``, choosing neither ``ms`` nor ``nl``; any choice of English reads it inside a title phrase (``Chief Ab Smith``). :issue:`1178` - **Read Ra as a Korean family name and given name, not only as a credential and a title.** ``parse("Sang Hak Ra")`` gives middle ``Hak``, family ``Ra``, where 1.4.0 through 3.1.0 gave family ``Hak``, suffix ``Ra``; ``RA`` ending a name after a comma in a name of mixed case, or written ``R.A.``, is still the credential, while ``Ra`` alone after a family comma (``Kim, Ra``), ``RA`` opening the part after a family comma in a name written wholly in capitals (``KING, RA``), ``RA`` in the given part after a family comma ahead of a name word (``Smith, RA John``) and ``RA`` opening a German name (Rechtsanwalt) are now the given name. :issue:`1483` diff --git a/nameparser/config/_compiled.py b/nameparser/config/_compiled.py index e85c13f32..3722c97bd 100644 --- a/nameparser/config/_compiled.py +++ b/nameparser/config/_compiled.py @@ -587,7 +587,6 @@ 'edmi', 'edohen', 'educator', - 'effendi', 'ekegbian', 'elerunwon', 'emeritus', @@ -706,7 +705,6 @@ 'ill.ma', 'ill.mo', 'illustrator', - 'imam', 'industrialist', 'information', 'ingeniera', @@ -1026,7 +1024,6 @@ 'sgtmajmc', 'shayk', 'shaykh', - 'sheriff', 'sig.na', 'sig.ra', 'signor', @@ -1092,7 +1089,6 @@ 'thlic', 'thmgr', 'ths', - 'timi', 'tirthankar', 'trainee', 'translator', @@ -1601,10 +1597,12 @@ 'cheikh', 'deacon', 'dean', + 'effendi', 'emerita', 'gen', 'grace', 'gyani', + 'imam', 'justice', 'king', 'mahdi', @@ -1628,9 +1626,11 @@ 'sheik', 'sheikh', 'shekh', + 'sheriff', 'siddha', 'sultan', 'sultana', + 'timi', 'wing', }) @@ -1934,6 +1934,7 @@ 'chief gral', 'chief gysgt', 'chief headman', + 'chief imam', 'chief intendant', 'chief judge', 'chief justice', @@ -2267,6 +2268,7 @@ 'deputy gov', 'deputy governor', 'deputy headman', + 'deputy imam', 'deputy intendant', 'deputy judge', 'deputy justice', @@ -2354,6 +2356,9 @@ 'sergeant major', 'sgt maj', 'sgt major', + 'sheriff clerk', + 'sheriff officer', + 'sheriff principal', 'solicitor gen', 'surgeon gen', 'vicar gen', diff --git a/nameparser/config/_index.py b/nameparser/config/_index.py index 23f9fb7c4..898351169 100644 --- a/nameparser/config/_index.py +++ b/nameparser/config/_index.py @@ -679,7 +679,7 @@ ('chichico', (('pt-BR', 'familiar', (('short_for', ('francisco',)),)),)), ('chico', (('pt-BR', 'familiar', (('short_for', ('francisco',)),)),)), ('chicão', (('pt-BR', 'familiar', (('short_for', ('francisco',)),)),)), - ('chief', (('en', 'nobility', (('attaches', ('military', 'office')),)),)), + ('chief', (('en', 'nobility', (('attaches', ('imam', 'military', 'office')),)),)), ('chief-marshal', (('en', 'military', ()),)), ('chieftain', (('en', 'nobility', ()),)), ('child', (('en', 'modifier', ()),)), @@ -1025,7 +1025,7 @@ ('denny', (('en', 'familiar', (('short_for', ('dennis',)),)),)), ('dentist', (('en', 'occupation', ()),)), ('dep', (('en', 'credential', ()),)), - ('deputy', (('en', 'office', (('attaches', ('office',)),)),)), + ('deputy', (('en', 'office', (('attaches', ('imam', 'office')),)),)), ('der', (('de', 'article', (('capital_opening', True),)), ('nl', 'article', (('capital_opening', True),)))), ('derson', (('pt-BR', 'familiar', (('short_for', ('anderson',)),)),)), ('des', (('en', 'familiar', (('short_for', ('desmond',)),)),)), @@ -1197,7 +1197,7 @@ ('eduardo', (('pt-BR', 'familiar', (('short_for', ('eduardinho',)),)),)), ('educator', (('en', 'occupation', ()),)), ('edw', (('en', 'given', (('same_as', 'edward'),)),)), - ('effendi', (('tr', 'style', ()),)), + ('effendi', (('id', 'given', ()), ('tr', 'style', ()))), ('efi', (('el', 'familiar', (('short_for', ('efthymia',)),)),)), ('ehsan', (('en', 'familiar', (('short_for', ('seyedehsan',)),)),)), ('ei', (('en', 'credential', ()), ('en', 'given', ()), ('en', 'family', ()))), @@ -1688,7 +1688,7 @@ ('ilona', (('hu', 'familiar', (('short_for', ('ilonka',)),)),)), ('ilus', (('hu', 'familiar', (('short_for', ('ilona',)),)),)), ('ilya', (('en', 'spelling', (('spelling_of', ('ilja',)),)), ('ru', 'spelling', (('spelling_of', ('ilia', 'iliya')),)))), - ('imam', (('ar', 'religious', ()),)), + ('imam', (('ar', 'religious', ()), ('id', 'given', ()))), ('iman', (('mul', 'spelling', (('spelling_of', ('eiman',)),)),)), ('inacio', (('pt-BR', 'familiar', (('short_for', ('inacinho',)),)),)), ('industrialist', (('en', 'occupation', ()),)), @@ -3197,7 +3197,7 @@ ('sheikh', (('ar', 'style', (('addresses', 'given'),)), ('ar', 'given', ()), ('ar', 'family', ()))), ('shekh', (('ar', 'style', (('addresses', 'given'), ('same_as', 'sheikh'))), ('ar', 'given', ()))), ('shelly', (('en', 'familiar', (('short_for', ('michelle',)),)),)), - ('sheriff', (('en', 'office', ()),)), + ('sheriff', (('en', 'office', (('attaches', ('clerk', 'officer', 'principal')),)), ('en', 'given', ()))), ('shri', (('hi', 'salutation', (('default', False),)),)), ('shrimati', (('bn', 'salutation', (('after_given', True), ('default', False))), ('hi', 'salutation', (('after_given', True), ('default', False))))), ('shriyut', (('hi', 'salutation', (('after_given', True), ('default', False))),)), @@ -3437,7 +3437,7 @@ ('tide', (('pt-BR', 'familiar', (('short_for', ('aristides',)),)),)), ('till', (('mul', 'familiar', (('short_for', ('tillmann',)),)),)), ('tim', (('en', 'familiar', (('short_for', ('timothy',)),)),)), - ('timi', (('yo', 'nobility', ()),)), + ('timi', (('yo', 'nobility', ()), ('yo', 'given', ()))), ('timofey', (('ru', 'spelling', (('spelling_of', ('timofei',)),)),)), ('tina', (('en', 'familiar', (('short_for', ('christina', 'kristina')),)), ('mul', 'familiar', (('short_for', ('martina',)),)), ('pt-BR', 'familiar', (('short_for', ('cristina',)),)))), ('tiquinho', (('pt-BR', 'familiar', (('short_for', ('francisco',)),)),)), diff --git a/nameparser/vocab/README.md b/nameparser/vocab/README.md index 38e314960..8460e827f 100644 --- a/nameparser/vocab/README.md +++ b/nameparser/vocab/README.md @@ -185,7 +185,7 @@ A property is **behavioral** when it compiles into a set and so changes how name | Property | Type | Applies to | Unwritten | Effect | |---|---|---|---|---| | `addresses` | behavioral | `title` | `"family"` | `"given"` adds the word to `GIVEN_NAME_TITLES`: `Sir John` reads `John` as the given name ([rules/H1](../../docs/design/rules/H1-title-and-one-name-word.md), a title and one name word) | -| `attaches` | behavioral | `title` | none | `TITLE_PHRASES`: the title kinds, or the title words, this word stands before in a title phrase, a list (`chief = { attaches = ["office", "military"] }`, `sergeant = { attaches = ["major"] }`, a word where a kind would reach too far; a name that is also a kind of another category names the word, `pope = { attaches = ["saint"] }`, `saint` being a particle kind too, as `family` is a name kind and a modifier title word), compiled into the two-word phrases it makes with each title word of those kinds and each word named (`chief justice`, `sergeant major`); a title that may be a given name on either side of one is a title there ([rules/H9](../../docs/design/rules/H9-title-phrase.md), the title phrase). A word named must have a title reading on by default, or, where the reading naming it is written `default = false`, one in the same file, which the one choice of that file turns on with it (`puan` and `sri` in ms.toml, `Puan Sri`, #1180); a title reading only another file turns on is refused, even one a choice of the reading's file also selects (`pt.toml` under `pt-BR`), so the two halves of such a phrase are written in one file | +| `attaches` | behavioral | `title` | none | `TITLE_PHRASES`: the title kinds, or the title words, this word stands before in a title phrase, a list (`chief = { attaches = ["office", "military", "imam"] }`, `sergeant = { attaches = ["major"] }`, a word where a kind would reach too far; a name that is also a kind of another category names the word, `pope = { attaches = ["saint"] }`, `saint` being a particle kind too, as `family` is a name kind and a modifier title word), compiled into the two-word phrases it makes with each title word of those kinds and each word named (`chief justice`, `sergeant major`); a title that may be a given name on either side of one is a title there ([rules/H9](../../docs/design/rules/H9-title-phrase.md), the title phrase). A word named must have a title reading on by default, or, where the reading naming it is written `default = false`, one in the same file, which the one choice of that file turns on with it (`puan` and `sri` in ms.toml, `Puan Sri`, #1180); a title reading only another file turns on is refused, even one a choice of the reading's file also selects (`pt.toml` under `pt-BR`), so the two halves of such a phrase are written in one file | | `after_given` | behavioral | `title` | false | `AFTER_GIVEN_TITLES`, on a `salutation` reading only: written bare at the end of the given part after a family comma, the word is the title, as in `Doe, Jane Mrs` ([rules/H8](../../docs/design/rules/H8-salutation-ending-the-given-part.md), a salutation ending the given part). A salutation borne as a given name or a surname is left out with an exclusion of the property, its counts beside it (`goodman`, `herr`), since a middle name may be either | | `abbreviation` | behavioral | `title` | false | `TITLE_ABBREVIATIONS`: true says the title reading is written short (`maj`, Major; `gen`, General). On a title that may be a given name ([rules/H9](../../docs/design/rules/H9-title-phrase.md)) it makes the word, written with its period at the end of the name, the trailing title, as in `SMITH, JOHN B. MAJ.` ([rules/H5](../../docs/design/rules/H5-trailing-title-run.md), the trailing title run), and on a style it makes the article before it the word's phrase partner, as in `The Hon John Smith` under a Chinese choice ([rules/H9](../../docs/design/rules/H9-title-phrase.md)); on any other title it changes nothing, H5 reading every listed title there already. `expands` names the full form and compiles to nothing | | `acronym` | behavioral | `suffix` | true for `credential`, false for every other kind | true: `SUFFIX_ACRONYMS`, matched with every period removed (`M.D.` is `md`); false: `SUFFIX_WORDS`, and a credential's `CREDENTIAL_WORDS`, a credential written as a word | diff --git a/nameparser/vocab/en.toml b/nameparser/vocab/en.toml index 6aff45c2c..ecc857888 100644 --- a/nameparser/vocab/en.toml +++ b/nameparser/vocab/en.toml @@ -335,7 +335,7 @@ nobility = { gender = "f" } [[word]] text = "chief" -nobility = { expands = "a chief of a people or clan, 'Chief Obafemi Awolowo'", attaches = ["office", "military"], issue = 752, note = "attaches: Chief Justice, Chief Clerk (rules/H9)" } +nobility = { expands = "a chief of a people or clan, 'Chief Obafemi Awolowo'", attaches = ["office", "military", "imam"], issue = 752, note = "attaches: Chief Justice, Chief Clerk, Chief Imam (rules/H9; imam since #1206, a title only in a phrase)" } [[word]] text = "chieftain" @@ -1058,7 +1058,7 @@ office = {} [[word]] text = "deputy" -office = { attaches = ["office"], issue = 913, note = "attaches: Deputy Chancellor, Deputy Judge (rules/H9), as chief does" } +office = { attaches = ["office", "imam"], issue = 913, note = "attaches: Deputy Chancellor, Deputy Judge, Deputy Imam (rules/H9; imam since #1206, a title only in a phrase), as chief does" } [[word]] text = "dpty" @@ -1200,7 +1200,8 @@ office = {} [[word]] text = "sheriff" -office = {} +office = { attaches = ["clerk", "officer", "principal"], note = "attaches: Sheriff Clerk, Sheriff Officer, Sheriff Principal, the Scottish offices written with the qualifier after the head (rules/H9, #1206), a title only in a phrase" } +given = { note = "a given name in West Africa, counted 2026-11-21 (tools/name_usage.py --boxes): ORCID given boxes 129, Nigeria 25, Ghana 5, Sierra Leone 3, The Gambia 2, US SSA 102, Wikidata 6 given. Without it the office read it as the title opening a name (rules/H9): it fixes 14 PSC records and 8 ORCID, moves 2 ClinicalTrials.gov names and 2 FEC donors to the given name, and breaks none (measure.py against 6ff048fe); High Sheriff, Deputy Sheriff and Sheriff of Nottingham stay titles (#1206)" } [[word]] text = "speaker" diff --git a/nameparser/vocab/id.toml b/nameparser/vocab/id.toml index d3ac1144c..88e4d6f15 100644 --- a/nameparser/vocab/id.toml +++ b/nameparser/vocab/id.toml @@ -97,6 +97,14 @@ credential = { cased = "SSos", expands = "Sarjana Sosial", note = "ORCID records text = "ach" given = { same_as = "achmad", note = "Achmad written short: ORCID given boxes 94 (Indonesia 48), family boxes 17 (2026-11-06); written with its period at the head of a name (Ach. Arfan Adinata), it read as a title by the leading-abbreviation shape (#1115)" } +[[word]] +text = "effendi" +given = { note = "a given name in Indonesia and Malaysia, counted 2026-11-21 (tools/name_usage.py --boxes): ORCID given boxes Indonesia 35, Malaysia 10 (family boxes Indonesia 122), PatentsView Malaysia 2, Wikidata 5 given (Indonesia 2). Without it tr.toml's style read it as the title opening a name (rules/H9): it fixes 1 ORCID record, 1 PatentsView record and 1 name of Indonesia's House of Representatives lists, and breaks none (measure.py against 6ff048fe) (#1206)" } + +[[word]] +text = "imam" +given = { note = "a given name in Indonesia, Bangladesh and Nigeria, counted 2026-11-21 (tools/name_usage.py --boxes): ORCID given boxes 1,392, Indonesia 567, Bangladesh 52, Nigeria 19 (family boxes 641), PatentsView 14, US SSA 24, Wikidata 7 given. Without it ar.toml's religious title read it as the title opening a name (rules/H9): it fixes 19 PSC records, 36 ORCID, 1 PatentsView and 8 names of Indonesia's parliament lists, and breaks none (measure.py against 6ff048fe); the cost is a cleric written with the bare title in running text, which reads it as the given name (jrc-names 53 names, the committed corpora 2) (#1206)" } + [[word]] text = "moch" given = { same_as = "muhammad", note = "Muhammad (Mochammad) written short: ORCID given boxes 462 (Indonesia 232), family boxes 46; US Census 2010 counts Moch 540 times as a surname, Wikidata 32 family bearers, none with Indonesian citizenship (2026-11-06); written with its period at the head of a name (Moch. Agus Choiron), it read as a title by the leading-abbreviation shape (#1115)" } diff --git a/nameparser/vocab/yo.toml b/nameparser/vocab/yo.toml index e85e6a84f..16a37ff3b 100644 --- a/nameparser/vocab/yo.toml +++ b/nameparser/vocab/yo.toml @@ -7,6 +7,7 @@ nobility = { expands = "the ruler of Erunwon" } [[word]] text = "timi" nobility = { expands = "the ruler of Ede" } +given = { note = "a Yoruba given name, counted 2026-11-21 (tools/name_usage.py --boxes): ORCID given boxes 51, Nigeria 7, US SSA 654, Wikidata 24 given (Nigeria 4). Without it the ruler's title read it as the title opening a name (rules/H9): it fixes 8 PSC records and 8 ORCID, moves 13 FEC donors written after a comma and 7 jrc-names spellings, each a person named Timi, to the given name, and breaks none (measure.py against 6ff048fe); the ruler written with the bare title before his name reads it as the given name, a cost no corpus measured (#1206)" } [[word]] text = "ajala" diff --git a/tests/v2/cases.py b/tests/v2/cases.py index bcc928dd0..082c5858f 100644 --- a/tests/v2/cases.py +++ b/tests/v2/cases.py @@ -18728,12 +18728,13 @@ def _check_cjk_shape_purity(self) -> None: Case("given_name_title_mahdi_after_an_empty_head", ", Mahdi", {"given": "Mahdi"}, classification="fix(#867)", notes="H9; read title 'Mahdi' before"), - Case("given_name_title_mahdi_after_a_title", "Imam Mahdi Karimi", - {"title": "Imam", "given": "Mahdi", "family": "Karimi"}, + Case("given_name_title_mahdi_after_a_title", "Mufti Mahdi Karimi", + {"title": "Mufti", "given": "Mahdi", "family": "Karimi"}, classification="fix(#867)", notes="H9: a title that is no style, modifier or attaching " "partner leaves the word a given name; read title " - "'Imam Mahdi' before"), + "'Mufti Mahdi' before; 'Imam' stood here until #1206 " + "gave it a given reading"), Case("given_name_title_mahdi_as_an_epithet", "Muhammad Ahmad al-Mahdi", {"given": "Muhammad", "middle": "Ahmad", "family": "al-Mahdi"}, notes="the epithet the title reading names reads as the family " @@ -18749,6 +18750,253 @@ def _check_cjk_shape_purity(self) -> None: {"given": "John", "middle": "Karimi", "family": "Mahdi."}, notes="H9; 1.4.0's reading, which 2.3.0 through 2.6.0 read as " "title 'Mahdi.' (H5)"), + Case("given_name_title_imam_at_the_head", "Imam Taufik Sasongko", + {"given": "Imam", "middle": "Taufik", "family": "Sasongko"}, + ambiguities=("title-or-name",), classification="fix(#1206)", + notes="H9: an Indonesian given name; 'Chief Imam' holds the " + "word, so it reports; read title 'Imam' 1.4.0 through " + "3.1.0"), + Case("given_name_title_imam_in_capitals", "IMAM TAUFIK SASONGKO", + {"given": "IMAM", "middle": "TAUFIK", "family": "SASONGKO"}, + ambiguities=("title-or-name",), classification="fix(#1206)", + notes="H9, in one case; read title 'IMAM' before"), + Case("given_name_title_imam_behind_a_salutation", "Mr Imam Hidayat", + {"title": "Mr", "given": "Imam", "family": "Hidayat"}, + ambiguities=("title-or-name",), classification="fix(#1206)", + notes="H9: a salutation is no partner (#853); read title " + "'Mr Imam' before"), + Case("given_name_title_imam_after_a_family_comma", "Hidayat, Imam", + {"given": "Imam", "family": "Hidayat"}, + classification="fix(#1206)", + notes="H9: the comma marks the given name, so no report; read " + "title 'Imam' before"), + Case("given_name_title_imam_after_an_empty_head", ", Imam", + {"given": "Imam"}, classification="fix(#1206)", + notes="H9; read title 'Imam' before"), + Case("given_name_title_imam_behind_chief", "Chief Imam Musa Bello", + {"title": "Chief Imam", "given": "Musa", "family": "Bello"}, + notes="H9: 'chief' attaches to 'imam' since #1206, so the " + "phrase keeps the title, as 1.4.0 read it"), + Case("given_name_title_imam_behind_a_modifier", "Grand Imam Yusuf Karimi", + {"title": "Grand Imam", "given": "Yusuf", "family": "Karimi"}, + notes="H9: a modifier before the word is its partner"), + Case("given_name_title_imam_before_of", "Imam of the Mosque Musa Bello", + {"title": "Imam of the Mosque", "given": "Musa", + "family": "Bello"}, + notes="H9: 'of' after the word is its partner"), + Case("given_name_title_imam_ending_the_name", "Musa Bello Imam.", + {"given": "Musa", "middle": "Bello", "family": "Imam."}, + notes="H9; 1.4.0's reading, which 2.3.0 through 3.1.0 read as " + "title 'Imam.' (H5)"), + Case("given_name_title_timi_at_the_head", "Timi Adebayo", + {"given": "Timi", "family": "Adebayo"}, + classification="fix(#1206)", + notes="H9: a Yoruba given name; no listed phrase holds 'timi', " + "so no report; read title 'Timi', no given name, before"), + Case("given_name_title_timi_after_a_family_comma", "Adebayo, Timi", + {"given": "Timi", "family": "Adebayo"}, + classification="fix(#1206)", + notes="H9; read title 'Timi' before"), + Case("given_name_title_timi_before_of", "Timi of Ede", + {"title": "Timi of Ede"}, + notes="H9: the ruler's title keeps 'of' as its partner"), + Case("given_name_title_sheriff_at_the_head", "Sheriff Kanteh Jallow", + {"given": "Sheriff", "middle": "Kanteh", "family": "Jallow"}, + ambiguities=("title-or-name",), classification="fix(#1206)", + notes="H9: a West African given name; the listed phrases " + "'Chief Sheriff', 'Deputy Sheriff' and 'Sheriff " + "Principal' hold the word, so it reports; read title " + "'Sheriff' before"), + Case("given_name_title_sheriff_behind_a_salutation", + "Mr Sheriff Jallow", + {"title": "Mr", "given": "Sheriff", "family": "Jallow"}, + ambiguities=("title-or-name",), classification="fix(#1206)", + notes="H9: a salutation is no partner; read title " + "'Mr Sheriff' before"), + Case("given_name_title_sheriff_behind_a_modifier", + "High Sheriff John Smith", + {"title": "High Sheriff", "given": "John", "family": "Smith"}, + notes="H9: a modifier before the word is its partner"), + Case("given_name_title_sheriff_behind_an_attaching_title", + "Deputy Sheriff John Smith", + {"title": "Deputy Sheriff", "given": "John", "family": "Smith"}, + notes="H9: 'deputy' attaches to an office"), + Case("given_name_title_sheriff_before_principal", + "Sheriff Principal Jane Doe", + {"title": "Sheriff Principal", "given": "Jane", "family": "Doe"}, + notes="H9: a qualifier after its head; 'sheriff' attaches to " + "'principal' since #1206, so the phrase keeps the title"), + Case("given_name_title_sheriff_ending_the_name", "Jane Smith Sheriff.", + {"given": "Jane", "middle": "Smith", "family": "Sheriff."}, + notes="H9; 1.4.0's reading, which 2.3.0 through 3.1.0 read as " + "title 'Sheriff.' (H5)"), + Case("given_name_title_effendi_at_the_head", "Effendi Purnomo Sitorus", + {"given": "Effendi", "middle": "Purnomo", "family": "Sitorus"}, + classification="fix(#1206)", + notes="H9: an Indonesian given name; no listed phrase holds " + "'effendi', so no report; read title 'Effendi' before"), + Case("given_name_title_imam_alone", + "Imam", + {"given": "Imam"}, + ambiguities=("title-or-name", "given-or-family",), + classification="fix(#1206)", + notes="H9 and O5: a lone name word is the given name; read title " + "'Imam' before"), + Case("given_name_title_imam_in_lower_case", + "imam taufik sasongko", + {"given": "imam", "middle": "taufik", "family": "sasongko"}, + ambiguities=("title-or-name",), + classification="fix(#1206)", + notes="H9, in lower case; read title 'imam' before"), + Case("given_name_title_imam_with_its_period_at_the_head", + "Imam. Taufik Sasongko", + {"title": "Imam.", "given": "Taufik", "family": "Sasongko"}, + notes="H2: the abbreviation shape takes the period-marked word at " + "the head whatever the vocabulary says, as for 'Dean.'"), + Case("given_name_title_imam_under_family_first", + "Imam Taufik Sasongko", + {"given": "Taufik", "middle": "Sasongko", "family": "Imam"}, + policy=Policy(name_order=FAMILY_FIRST), + ambiguities=("title-or-name",), + classification="fix(#1206)", + notes="H9 under a family-first order: the word is the family " + "name; read title 'Imam', family 'Taufik' before"), + Case("given_name_title_imam_opening_the_part_before_a_family_comma", + "Imam Sasongko, Taufik", + {"given": "Taufik", "family": "Imam Sasongko"}, + notes="H9 and H6: a title that may be a given name is not peeled " + "before a family comma outside a phrase, 1.4.0's reading; " + "2.5.0 through 3.1.0 read title 'Imam', family 'Sasongko'"), + Case("given_name_title_imam_after_a_full_name_and_a_comma", + "Musa Bello, Imam", + {"given": "Imam", "family": "Musa Bello"}, + classification="fix(#1206)", + notes="H9's Because: the word after a full name and a comma is " + "the listing form's given name, as 'John Smith, Dean' " + "reads; the accepted cost for an office written after the " + "name; read title 'Imam' before"), + Case("given_name_title_imam_in_a_third_comma_part", + "Sasongko, Taufik, Imam", + {"given": "Taufik", "family": "Sasongko", "suffix": "Imam"}, + ambiguities=("comma-structure",), + notes="C2: a part past the second comma holds no name word, so " + "the unlisted word is a suffix, as 'Smith, John, Dean' " + "reads and 1.4.0 read it; 2.4.0 through 3.1.0 read title " + "'Imam'"), + Case("given_name_title_imam_behind_deputy", + "Deputy Imam Musa Bello", + {"title": "Deputy Imam", "given": "Musa", "family": "Bello"}, + notes="H9: 'deputy' attaches to 'imam' since #1206, so the phrase " + "keeps the title, as 1.4.0 read it"), + Case("given_name_title_imam_before_another_gated_title", + "Imam Mahdi Karimi", + {"given": "Imam", "middle": "Mahdi", "family": "Karimi"}, + ambiguities=("title-or-name",), + classification="fix(#1206)", + notes="H9: two words that may be given names; neither is the " + "other's partner; read title 'Imam', given 'Mahdi' 2.7.0 " + "through 3.1.0, title 'Imam Mahdi' before"), + Case("given_name_title_imam_before_a_plain_title", + "Imam Dr. Musa Bello", + {"given": "Imam", "middle": "Dr. Musa", "family": "Bello"}, + ambiguities=("title-or-name",), + classification="fix(#1206)", + notes="H9: a title after the word that it does not attach to is " + "no partner, so the word is a name word and the title " + "behind it joins the middle name; the accepted cost; read " + "title 'Imam Dr.' 1.4.0 through 3.1.0"), + Case("given_name_title_sheriff_before_a_title_it_does_not_attach_to", + "Sheriff Deputy John Smith", + {"given": "Sheriff", "middle": "Deputy John", "family": "Smith"}, + ambiguities=("title-or-name",), + classification="fix(#1206)", + notes="H9: 'sheriff' attaches to clerk, officer and principal, " + "not deputy, so the word is a name word; the accepted cost; " + "read title 'Sheriff Deputy' 1.4.0 through 3.1.0"), + Case("given_name_title_timi_alone", + "Timi", + {"given": "Timi"}, + ambiguities=("given-or-family",), + classification="fix(#1206)", + notes="H9 and O5; no listed phrase holds 'timi', so only O5's " + "fork reports; read title 'Timi' before"), + Case("given_name_title_timi_after_an_empty_head", + ", Timi", + {"given": "Timi"}, + classification="fix(#1206)", + notes="H9; read title 'Timi' before"), + Case("given_name_title_timi_ending_the_name", + "Taufik Sasongko Timi.", + {"given": "Taufik", "middle": "Sasongko", "family": "Timi."}, + notes="H9; 1.4.0's reading, which 2.3.0 through 3.1.0 read as " + "title 'Timi.' (H5)"), + Case("given_name_title_timi_behind_chief", + "Chief Timi Adebayo", + {"title": "Chief", "given": "Timi", "family": "Adebayo"}, + classification="fix(#1206)", + notes="H9: 'chief' attaches to office and military titles and to " + "'imam', not to a ruler's title, so a chief named Timi " + "reads the given name; read title 'Chief Timi' before"), + Case("given_name_title_sheriff_alone", + "Sheriff", + {"given": "Sheriff"}, + ambiguities=("title-or-name", "given-or-family",), + classification="fix(#1206)", + notes="H9 and O5; read title 'Sheriff' before"), + Case("given_name_title_sheriff_after_a_family_comma", + "Jallow, Sheriff", + {"given": "Sheriff", "family": "Jallow"}, + classification="fix(#1206)", + notes="H9: the comma marks the given name, so no report; read " + "title 'Sheriff' before"), + Case("given_name_title_sheriff_after_an_empty_head", + ", Sheriff", + {"given": "Sheriff"}, + classification="fix(#1206)", + notes="H9; read title 'Sheriff' before"), + Case("given_name_title_sheriff_after_a_full_name_and_a_comma", + "Kanteh Jallow, Sheriff", + {"given": "Sheriff", "family": "Kanteh Jallow"}, + classification="fix(#1206)", + notes="H9's Because, as 'John Smith, Dean' reads: the office " + "written after the name reverses it, an accepted cost; read " + "title 'Sheriff' before"), + Case("given_name_title_sheriff_before_clerk", + "Sheriff Clerk John Smith", + {"title": "Sheriff Clerk", "given": "John", "family": "Smith"}, + notes="H9: 'sheriff' attaches to 'clerk' since #1206"), + Case("given_name_title_sheriff_before_officer", + "Sheriff Officer John Smith", + {"title": "Sheriff Officer", "given": "John", "family": "Smith"}, + notes="H9: 'sheriff' attaches to 'officer' since #1206, as 1.4.0 " + "read it"), + Case("given_name_title_effendi_in_capitals", + "EFFENDI TAUFIK SASONGKO", + {"given": "EFFENDI", "middle": "TAUFIK", "family": "SASONGKO"}, + classification="fix(#1206)", + notes="H9, in one case; read title 'EFFENDI' before"), + Case("given_name_title_effendi_after_a_family_comma", + "Sasongko, Effendi", + {"given": "Effendi", "family": "Sasongko"}, + classification="fix(#1206)", + notes="H9; read title 'Effendi' before"), + Case("given_name_title_effendi_after_an_empty_head", + ", Effendi", + {"given": "Effendi"}, + classification="fix(#1206)", + notes="H9; read title 'Effendi' before"), + Case("given_name_title_effendi_ending_the_name", + "Taufik Sasongko Effendi.", + {"given": "Taufik", "middle": "Sasongko", "family": "Effendi."}, + notes="H9; 1.4.0's reading, which 2.3.0 through 3.1.0 read as " + "title 'Effendi.' (H5)"), + Case("given_name_title_effendi_before_another", + "Effendi Mahdi Karimi", + {"given": "Effendi", "middle": "Mahdi", "family": "Karimi"}, + classification="fix(#1206)", + notes="H9: a style that may be a given name is no partner of the " + "word after it, the accepted cost of gating the style; read " + "title 'Effendi Mahdi' 1.4.0 through 3.1.0"), Case("given_name_title_maj_at_the_head", "Maj Sjöwall", {"given": "Maj", "family": "Sjöwall"}, ambiguities=("title-or-name",), classification="fix(#999)", diff --git a/tests/v2/test_cases.py b/tests/v2/test_cases.py index 90e878ca4..5043fbc16 100644 --- a/tests/v2/test_cases.py +++ b/tests/v2/test_cases.py @@ -535,9 +535,16 @@ def test_the_field_sweep_sees_the_claims_it_checks() -> None: # comma, order and spelling rows; 2367 -> 2373 the same day, its # second review's 'SMITH, RA MD' and 'Smith, RA John'; 2373 -> 2382 # the same day, #1178's review's `ab` rows reporting suffix-or-name - # ('Ab. Smith, Ed', 'Vice Ab. Smith, Ed', 'Ali Budi Santoso.AB'). - assert claims == 2382, ( - f"the field sweep checks {claims} claims, recorded as 2382 on " + # ('Ab. Smith, Ed', 'Vice Ab. Smith, Ed', 'Ali Budi Santoso.AB'); + # 2382 -> 2397 the same day, #1206's five Imam and Sheriff rows + # reporting title-or-name under three orders; 2397 -> 2419 the same + # day, its review's reporting rows (the word alone, in lower case, + # before another gated word and in a third comma part, and a + # family-first row under its declared policy); 2419 -> 2425 the same + # day, its second review's 'Imam Dr. Musa Bello' and 'Sheriff Deputy + # John Smith' under three orders. + assert claims == 2425, ( + f"the field sweep checks {claims} claims, recorded as 2425 on " f"2026-11-21") diff --git a/tests/v2/test_lexicon.py b/tests/v2/test_lexicon.py index fc5b221f1..5f1e194fa 100644 --- a/tests/v2/test_lexicon.py +++ b/tests/v2/test_lexicon.py @@ -753,11 +753,13 @@ def test_every_shipped_reading_holds_its_properties_canonical() -> None: def test_words_matches_a_list_property_whatever_its_order() -> None: - # `chief`'s nobility reading attaches to military and office titles; - # the asked list is folded and sorted as add folds it - lex = Lexicon.default() + # a reading attaching to two kinds; the asked list is folded and + # sorted as add folds it, so the order and case it is asked in do not + # matter (built here, so the shipped `chief`'s list may change freely) + lex = Lexicon.empty().add("chief", kind="nobility", + attaches=["office", "military"]) held = lex.words(kind="nobility", attaches=["military", "office"]) - assert "chief" in held + assert held == ("chief",) assert lex.words(kind="nobility", attaches=["Office", "military"]) == held diff --git a/tests/v2/test_reading_index.py b/tests/v2/test_reading_index.py index 470337b24..69ff4cb78 100644 --- a/tests/v2/test_reading_index.py +++ b/tests/v2/test_reading_index.py @@ -397,12 +397,15 @@ def test_a_file_holding_only_familiar_readings_is_chosen_only_strictly( #: 2026-11-21, a strict German or English choice reading the #: credential as master's default did, and a strict German one the #: title in front; en's ab, #1178, decisions/vocabulary-collisions' -#: 2026-11-21 #1178 entry). A +#: 2026-11-21 #1178 entry; ar's imam and tr's effendi, #1206 on +#: 2026-11-21, whose given readings id.toml writes, a strict Arabic +#: choice reading imam and a strict Turkish one effendi as the title +#: opening a name again, as 1.4.0 through 3.1.0 read both by default). A #: word leaves this table when a name reading is written in the chosen #: file whose names carry it, and joins it when a chosen file's #: vocabulary reading loses its gate: review each move. STRICT_UNGATED = { - "ar": {"ben"}, + "ar": {"ben", "imam"}, "ca": {"del", "la"}, "cs": {"st"}, "de": {"ra"}, @@ -422,6 +425,7 @@ def test_a_file_holding_only_familiar_readings_is_chosen_only_strictly( "pt-PT": {"da", "do", "santa"}, "sk": {"st"}, "sl": {"st"}, + "tr": {"effendi"}, } @@ -561,3 +565,47 @@ def test_a_regated_word_names_its_chosen_file_in_either_name_role( token = next(t for t in strict.parse(name).tokens if t.text == word) assert token.reading is not None assert tag in token.reading.languages + + +#: The two titles #1206's batch gave a given reading in another file +#: (id.toml), with a name each opens: a strict choice of the title's own +#: tag drops id.toml and reads the word as the title again, as +#: STRICT_UNGATED records, while the plain choice, the shipped pack, and +#: a strict choice that keeps id.toml read the given name. +_UNGATED_BY_ANOTHER_FILE = { + "ar": "Imam Taufik Sasongko", + "tr": "Effendi Purnomo Sitorus", +} + + +@pytest.mark.parametrize("tag", sorted(_UNGATED_BY_ANOTHER_FILE)) +def test_a_strict_choice_of_the_titles_own_tag_reads_it_as_the_title( + tag: str) -> None: + from nameparser import locales, parse, parser_for + name = _UNGATED_BY_ANOTHER_FILE[tag] + word = name.split()[0] + ungated = [parser_for(_choice((tag,)), strict=True)] + gated = [parser_for(_choice((tag,))), + parser_for(_choice((tag, "id")), strict=True), + parser_for(locales.MS)] + if tag == "ar": + ungated.append(parser_for(locales.AR, strict=True)) + gated.append(parser_for(locales.AR)) + for parser in ungated: + got = parser.parse(name) + assert (got.title, got.given) == (word, name.split()[1]), parser + for read in [parse, *(parser.parse for parser in gated)]: + got = read(name) + assert (got.title, got.given) == ("", word), read + + +@pytest.mark.parametrize(("tag", "name"), [ + ("yo", "Timi Adebayo"), ("en", "Sheriff Kanteh Jallow"), +]) +def test_a_strict_choice_of_the_titles_own_file_keeps_its_gate( + tag: str, name: str) -> None: + # timi's and sheriff's given readings sit beside their titles (#1206), + # so a strict choice of that file keeps the word a name word + from nameparser import parser_for + got = parser_for(_choice((tag,)), strict=True).parse(name) + assert (got.title, got.given) == ("", name.split()[0]) diff --git a/tools/differential/corpus_rules.jsonl b/tools/differential/corpus_rules.jsonl index 19fbf31cb..672c42ead 100644 --- a/tools/differential/corpus_rules.jsonl +++ b/tools/differential/corpus_rules.jsonl @@ -241,6 +241,7 @@ "Cheikh Anta Diop" "Chibrikova, Yu. A." "Chief Dean and Mary Smith" +"Chief Imam Musa Bello" "Chief Justice John Roberts" "Col. (Ret.) Smith" "D.R. Judge Smith" @@ -422,6 +423,7 @@ "E.T. Smith" "Edward Smith (Ed Jr)" "Efe ALA" +"Effendi Purnomo Sitorus" "Eric H. Holder Jr. Attorney General" "Eric H. Holder, Jr., Attorney General" "Eric H. Holder, Jr., Secretary of State" @@ -527,6 +529,7 @@ "II Van Johnson" "IVANOV Roman MBA" "IVOI, PAUL D'" +"Imam Rasyid Hakim" "Ing Jan Novák" "Ing. et Ing. Jan Novák" "Ivan FAN R IVANOV MD de" @@ -1405,6 +1408,7 @@ "Mr Buddha. Tamang" "Mr Deacon Smith" "Mr Dean Smith" +"Mr Imam Hidayat" "Mr Justice Smith" "Mr Mahdi Karimi" "Mr Robert Alexander (Jnr) Halliday" @@ -1644,6 +1648,8 @@ "Shaikh Hamad bin Isa" "Shaikh. Sultan Khan" "Sheikh Mohammed bin Rashid" +"Sheriff Kanteh Jallow" +"Sheriff Principal Jane Doe" "Shin Ae-ra" "Sidorov Ivan Petrovich" "Sidorov Ivan Petrovich Jr." @@ -1859,6 +1865,7 @@ "The Right Hon. the President of the Queen's Bench Division" "The Rt Hon Nadia Abdul Rahim" "The Saint Thomas More" +"Timi Oladele Akande" "Tkachuk Olena Petrivna" "Tom N/A Reed" "Torres Sánchez-Cid Andrés" diff --git a/tools/differential/gnd_agreement.json b/tools/differential/gnd_agreement.json index 927ee05d6..2cc1bd1b0 100644 --- a/tools/differential/gnd_agreement.json +++ b/tools/differential/gnd_agreement.json @@ -1940,13 +1940,9 @@ }, "given_names": { "expected": "Imam Bonjol", - "got": "" - }, - "text": "Imam Bonjol", - "title": { - "expected": "", "got": "Imam" - } + }, + "text": "Imam Bonjol" }, "142486175/direct-my-id/givenFirst": { "family": { diff --git a/tools/differential/snapshot.jsonl b/tools/differential/snapshot.jsonl index c2ab83ed9..52d3cc97d 100644 --- a/tools/differential/snapshot.jsonl +++ b/tools/differential/snapshot.jsonl @@ -681,6 +681,7 @@ {"name": "Cherice J. (Johnson) Williams", "given": "Cherice", "middle": "J.", "family": "Williams", "nickname": "Johnson", "initials": "C. J. W."} {"name": "Chibrikova, Yu. A.", "given": "Yu.", "middle": "A.", "family": "Chibrikova", "initials": "Y. A. C."} {"name": "Chief Dean and Mary Smith", "title": "Chief Dean and Mary", "family": "Smith", "initials": "S."} +{"name": "Chief Imam Musa Bello", "title": "Chief Imam", "given": "Musa", "family": "Bello", "initials": "M. B."} {"name": "Chief Judge J. Leon Holmes", "title": "Chief Judge", "given": "J.", "middle": "Leon", "family": "Holmes", "initials": "J. L. H."} {"name": "Chief Judge Sharon Lovelace Blackburn", "title": "Chief Judge", "given": "Sharon", "middle": "Lovelace", "family": "Blackburn", "initials": "S. L. B."} {"name": "Chief Justice John Roberts", "title": "Chief Justice", "given": "John", "family": "Roberts", "initials": "J. R."} @@ -1133,6 +1134,7 @@ {"name": "Eemil", "given": "Eemil", "ambiguities": ["GIVEN_OR_FAMILY"], "alternatives": ["GIVEN_OR_FAMILY: name as family (position)"], "initials": "E."} {"name": "Eemil", "order": "FAMILY_FIRST", "given": "Eemil", "ambiguities": ["GIVEN_OR_FAMILY"], "alternatives": ["GIVEN_OR_FAMILY: name as family (position)"], "initials": "E."} {"name": "Efe ALA", "given": "Efe", "suffix": "ALA", "ambiguities": ["GIVEN_OR_FAMILY"], "alternatives": ["GIVEN_OR_FAMILY: name as family (position)"], "initials": "E."} +{"name": "Effendi Purnomo Sitorus", "given": "Effendi", "middle": "Purnomo", "family": "Sitorus", "initials": "E. P. S."} {"name": "Egbert van Heemskerck", "given": "Egbert", "family": "van Heemskerck", "initials": "E. H."} {"name": "Egill Eyjólfsson", "given": "Egill", "family": "Eyjólfsson", "initials": "E. E."} {"name": "Einar Arnórsson", "given": "Einar", "family": "Arnórsson", "initials": "E. A."} @@ -1608,8 +1610,9 @@ {"name": "Ilir Rustemi", "given": "Ilir", "family": "Rustemi", "initials": "I. R."} {"name": "Ilmarinen Seppo", "order": "FAMILY_FIRST", "given": "Seppo", "family": "Ilmarinen", "initials": "S. I."} {"name": "Ilmarinen, Seppo", "given": "Seppo", "family": "Ilmarinen", "initials": "S. I."} -{"name": "Imam Bonjol", "title": "Imam", "family": "Bonjol", "initials": "B."} -{"name": "Imam Khomeini", "title": "Imam", "family": "Khomeini", "initials": "K."} +{"name": "Imam Bonjol", "given": "Imam", "family": "Bonjol", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "I. B."} +{"name": "Imam Khomeini", "given": "Imam", "family": "Khomeini", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "I. K."} +{"name": "Imam Rasyid Hakim", "given": "Imam", "middle": "Rasyid", "family": "Hakim", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "I. R. H."} {"name": "Imanishi, Kinji", "given": "Kinji", "family": "Imanishi", "initials": "K. I."} {"name": "Indalecio Soriano Fuertes", "given": "Indalecio", "middle": "Soriano", "family": "Fuertes", "initials": "I. S. F."} {"name": "Ing Jan Novák", "given": "Ing", "middle": "Jan", "family": "Novák", "initials": "I. J. N."} @@ -3359,6 +3362,7 @@ {"name": "Mr Buddha. Tamang", "title": "Mr Buddha.", "family": "Tamang", "initials": "T."} {"name": "Mr Deacon Smith", "title": "Mr", "given": "Deacon", "family": "Smith", "initials": "D. S."} {"name": "Mr Dean Smith", "title": "Mr", "given": "Dean", "family": "Smith", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "D. S."} +{"name": "Mr Imam Hidayat", "title": "Mr", "given": "Imam", "family": "Hidayat", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "I. H."} {"name": "Mr Justice Smith", "title": "Mr", "given": "Justice", "family": "Smith", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "J. S."} {"name": "Mr MA", "title": "Mr", "family": "MA", "initials": "M.", "capitalized_force": "Mr Ma"} {"name": "Mr Mahdi Karimi", "title": "Mr", "given": "Mahdi", "family": "Karimi", "initials": "M. K."} @@ -4033,6 +4037,8 @@ {"name": "Sheik abdul salam", "given": "Sheik", "middle": "abdul", "family": "salam", "initials": "S. a. s.", "capitalized_force": "Sheik Abdul Salam"} {"name": "Sheikh Mohammed bin Rashid", "given": "Sheikh", "middle": "Mohammed", "family": "bin Rashid", "initials": "S. M. R.", "patronymic": "bin Rashid"} {"name": "Shemuʾel ben Ḥofni", "given": "Shemuʾel", "middle": "ben", "family": "Ḥofni", "initials": "S. b. Ḥ.", "capitalized_force": "Shemuʾel Ben Ḥofni"} +{"name": "Sheriff Kanteh Jallow", "given": "Sheriff", "middle": "Kanteh", "family": "Jallow", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "S. K. J."} +{"name": "Sheriff Principal Jane Doe", "title": "Sheriff Principal", "given": "Jane", "family": "Doe", "initials": "J. D."} {"name": "Shin Ae-ra", "given": "Shin", "family": "Ae-ra", "initials": "S. A.", "capitalized_force": "Shin Ae-Ra"} {"name": "Shirley Maclaine", "given": "Shirley", "family": "Maclaine", "initials": "S. M."} {"name": "Shree Lalit Kumaar Bharati Jr, MP", "given": "Shree", "middle": "Lalit Kumaar", "family": "Bharati", "suffix": "Jr, MP", "initials": "S. L. K. B.", "generation": "Jr", "credentials": "MP"} @@ -4466,6 +4472,7 @@ {"name": "Thurn und Taxis, Mathilde Therese von", "given": "Mathilde", "middle": "Therese", "family": "von Thurn und Taxis", "ambiguities": ["PARTICLE_OR_GIVEN"], "alternatives": ["PARTICLE_OR_GIVEN: name as middle (declared)"], "initials": "M. T. T. T."} {"name": "Théodore Agrippa d'Aubigné", "given": "Théodore", "middle": "Agrippa", "family": "d'Aubigné", "initials": "T. A. d.", "capitalized_force": "Théodore Agrippa D'Aubigné"} {"name": "Tiburcio Pérez Cuervo", "given": "Tiburcio", "middle": "Pérez", "family": "Cuervo", "initials": "T. P. C."} +{"name": "Timi Oladele Akande", "given": "Timi", "middle": "Oladele", "family": "Akande", "initials": "T. O. A."} {"name": "Tisza, István", "given": "István", "family": "Tisza", "initials": "I. T."} {"name": "Title First Middle Middle Last, Jr.", "given": "Title", "middle": "First Middle Middle", "family": "Last", "suffix": "Jr.", "initials": "T. F. M. M. L.", "generation": "Jr."} {"name": "Tito, Santi di", "given": "Santi", "family": "di Tito", "ambiguities": ["PARTICLE_OR_GIVEN"], "alternatives": ["PARTICLE_OR_GIVEN: name as middle (declared)"], "initials": "S. T."}