diff --git a/docs/design/decisions/README.md b/docs/design/decisions/README.md index 7dc9878ae..75f5d990a 100644 --- a/docs/design/decisions/README.md +++ b/docs/design/decisions/README.md @@ -126,6 +126,7 @@ Entry conventions: - [T6 — a narrow no-break space between Mongolian letters joins them](T6-narrow-no-break-space-between-mongolian-letters-joins-them.md) - [T7 — a given name written as a run of initials](T7-given-name-written-as-a-run-of-initials.md) - [T8 — a word glued to the next at its full stop](T8-word-glued-to-the-next-at-its-full-stop.md) +- [T9 — a slash written for a title's full stop](T9-slash-written-for-a-titles-full-stop.md) ## Ambiguity & tie-breaking (A) diff --git a/docs/design/decisions/T9-slash-written-for-a-titles-full-stop.md b/docs/design/decisions/T9-slash-written-for-a-titles-full-stop.md new file mode 100644 index 000000000..32c1c55ee --- /dev/null +++ b/docs/design/decisions/T9-slash-written-for-a-titles-full-stop.md @@ -0,0 +1,20 @@ +# T9 — a slash written for a title's full stop + +## Standing + +- A listed title opening the name, or the given part after a family comma, written with a slash in place of its full stop reads as that title, the slash a separator in no field, in each of its four writings (`د/ أحمد`, `د/أحمد`, `د / أحمد`, `د /أحمد`; `Dr/ Jane Smith`), any script alike; a title that is also a suffix, a given name or a saint particle is none, a title listed with a slash of its own is the title whole, and the name after the slash must be one name word in T8's shape that no title or suffix reading claims outright, a title or suffix that is also a given name read as after the title's full stop (`Dr/ Dean Smith` → given 'Dean') — 2026-11-20, #1149. +- The part before a family comma is not read, a slash there joining two surnames (`JURIST/KOVAC, DANIEL/KAREN`); the comma's own decision is asked first, so a part after it that C1 reads as post-nominals leaves the head read (`Dr/ Jane Smith, Jr.`) — 2026-11-20, #1149. + +Elsewhere: a slash joining credentials, decisions/S3; a slash standing alone after the first comma, decisions/C10; how the slash's question was measured before it was built, decisions/script-properties' 2026-11-19 #1149 entry. + +## Log + +- 2026-11-20 #1149 — THE SLASH READS AS THE TITLE'S FULL STOP, AT THE HEAD ONLY. #1149 listed the Arabic titles written short (`د.`, `أ.د.`, the ranks) and measured a fourth writing it left open: a title with a slash for its full stop, Egypt's parliament's usual form. A listed title written so opens 86 names in the local corpora, recounted from master e0f698c8's vocabulary by the recipe below: Egypt's parliament 37 (Arabic), ORCID 24 (Arabic) and 13 (Latin), psc-individuals 7, ClinicalTrials.gov 3 (contacts 2, officials 1) and fec-individuals 2 (Latin), by the title opening them `د` 33, `dr` 14, `أ.د` 9, `الدكتور` 4, `اللواء` 4, `دكتور` 3, `م` 3, `founder` 3, `prof` 2, `director` 2, `لواء` 2, and `mr`, `dean`, `jurist`, `president`, `ا`, `المستشار` and `دكتورة` 1 each. Read as written, the title and its slash were the given name (`د/ أحمد علي` → given 'د/', middle 'أحمد'), the glued name with them (`Dr/Jane` given), and a slash written apart was the given name itself (`Dr / Jane Smith` → given '/'). + THE MECHANISM: the slash's token is cut off the title at the head and dropped, in script_segment beside T8's division, so every later stage reads `Dr Jane Smith`, the spans still indexing the original. Declined, as narrower: listing the slashed spellings (`د/`) as titles, which reads `X/ word` alone (38 of the 86) and copies the vocabulary per title, the glued and spaced writings needing a division all the same; and reading `X/` as a title in classify, the same 38. Declined, as wider: folding a slash at a word's edge as `_normalize` folds a full stop, which would read a trailing `Dr/` anywhere and reach every listed word written with a slash. Dropping the slash in group, as C10 drops a delimiter, was declined because classify and C1's comma decision run before group and would read a `/` word. + THE SCOPE, AS FIRST BUILT AND AS NARROWED: the first build read the head of the part before a family comma too, as H6 reads a title there, and a title that is also a suffix, as position reads one at the head. `tools/differential/measure.py --base` against e0f698c8 found both wrong: `JURIST/KANJO, DAVID/KATHRYN` (fec-individuals, a couple's surnames, `jurist` a listed title) read title 'JURIST', family 'KANJO', and `CPO/L` (a credential, `cpo` a title and a suffix) and `MS/CCRP` read title 'Cpo' and suffix 'MS CCRP'. So the part before a family comma is not read, the comma's decision (rules/C1, asked of a classified copy, as the tail peel asks it) deciding which part is the given part; and a title/suffix dual is none, which leaves `Ms/Kanna` (nepal-candidates, one name) whole. + WHAT IS LEFT ALONE, each a case row run against e0f698c8 and reading as it does there: credentials joined by a slash (`MD/PhD`, `M.D/Ph.D`, `OTR/L`), the Malaysian relations (`a/l`, `a/p`, `s/o`), `c/o`, `A/Prof` (`a` no title), `A/S`, a bracketed `(UTC/GMT`, a title with a slash later in the name, behind another title or ending it, two titles or a title and a credential joined by one (`Dr/Mrs`, `Dr/MD`), a saint particle and a title that is also a given name (`St/`, `Dean/`), a title and a slash with no name after it (`Dr/`), and a slash standing alone before a credential after a comma, which C10 parts. + MEASURED against master e0f698c8 with `tools/differential/measure.py --base `, the narrowed rule as first measured, before the review fixes below: 87 snapshot entries move, opensanctions-parliaments 37, orcid-researchers 36, ctgov-contacts 5, ctgov-officials 3 and psc-individuals 6; every other local corpus, the committed snapshot and the CLDR, GND and Wikidata records read as the base. 76 gain the title the slash stood after (`د/ أحمد علي` → title 'د', given 'أحمد'; `أ.د/ ...` → title 'أ.د', where the base kept the slash in it); 11 read wrong before and after: two roles joined by a slash in a box meant for a title (psc-individuals' `Director/Owner Joanne ...` → title 'Director', given 'Owner', where the base read given 'Director/Owner'; 5 such) and ClinicalTrials.gov's job descriptions (`General/Surgical`, `Assist/Lec`, `Lecturer/ Pedodontist`, 6). None reads wrong that read right. ACCEPTED: those 11, the second role or word read as the given name. The scores' moves are the boxes' writing, not misreadings: orcid-researchers counts 9 records worse, each a holder who typed the title and slash into the given-name box (`Dr/Amira`, `د/ أحمد`), and psc-individuals 1, a forename box holding `/James`; opensanctions-parliaments' alike view counts 19 Egyptian members apart, the short spelling (`د/ محمد علي`) now reading a title the full chain of names beside it does not. + THE TWO COUNTS ARE TWO POPULATIONS: the 86 count a shape by the vocabulary, the 87 (88 after the reviews) what the narrowed rule moves. The shape's count takes a title that is also a given name and the head of the part before a family comma, which the rule does not read (FEC's two are the couple above and a second of its kind), and does not count the job descriptions and boxes above, whose first word is a title outside the list it counted by, or a slash after a title behind a word it did not count. It also settles the cost decisions/script-properties' 2026-11-19 #1149 entry recorded, the slash written apart after a listed title read as the given name (15 names there): of the 23 snapshot entries reading `/` as the given name at e0f698c8, the 19 behind a listed title opening the name now read the name after it (opensanctions-parliaments 15, orcid-researchers 3, psc-individuals 1, the last a second role, `Founder / Owner / Ceo …`), and the 4 with no listed title before the slash keep it. + RECOMPUTE: the 86 by a script over every local corpus's names (`local_corpora.require(source).records`, each source's `corpus_keys`) counting a first word that is a listed title, `Lexicon.default()._sets.titles` or `titles_ambiguous` and in neither suffix set, followed by its slash in one of the four writings, by source and script; the moves by `uv run python tools/differential/measure.py --base `, and the records by `local_agreement.py orcid-researchers --base --list 25`. + THE REVIEWS, and what they moved. The first round's code review found the name after the slash, then any word with a letter and no slash that no title or suffix reading claimed, cutting a word that holds a delimiter, which leaves an earlier stage's report on the wrong token (`Dr /(Jane Smith` dropped its unbalanced-bracket report; `Dr/Jim" Smith` would have pinned it on the title): the name is now one name word in T8's shape (`_vocab.is_name_word`, T8's own pattern), a word holding a delimiter or a digit never cut. It found the refusal reaching a title or suffix that is also a given name (`Dr/ Dean Smith`, `Dr/ Ed Smith`, `Dr/ Junior Smith` kept given 'Dr/'), where `Dr. Dean Smith` reads given 'Dean': only the unambiguous are refused now, so those read as after the full stop, `Dean` with its title-or-name report. And it measured the comma's decision costing every family-comma name holding a slash about 60 frames (`Smith, Jane MD/PhD` 142 → 203): the heads are tested against the vocabulary first and the decision asked only where one is a site, so that name costs 147 and only a listed title at a head pays it (`JURIST/KOVAC, …` 127 → 203). The design-docs review found a listed title holding a slash of its own cut at it (`mag/judge / Jane Smith` read given '/'): the cut is at the last slash, and a glued reading refused falls through to the spaced writings. With those applied, `measure.py --base` moved the same 87 entries the same way. + The fix commit's review found T8's shape asked with the full stops in, which refused every initial and name written short after the slash (`Dr/ J. Smith`, `Dr / J. Smith`, `Smith, Dr/ J.`, `Dr/ Wm. Smith` back to master's readings, none of them a case row), the narrowing AGENTS.md warns a widened check brings: the stops are set aside for the shape, a word opening with one refused, and each reads as its full-stop spelling does; a dotted credential is still refused by the vocabulary (`Dr/M.D.`). It also found a glued title and name standing alone before a suffix comma unread (`Dr/Jane, PhD` → family 'Dr/Jane'), the comma decided on the word undivided, which master and the first build read the same way: accepted, with a row. That fix's own review found `Md.` (Muhammad written short, a credential too since #1383) refused by the acronym arm though `Dr. Md. Smith` reads given 'Md.': a given name written short and not in capitals is read as a name first, as rules/H2 yields to it (`MD` in capitals stays the credential T9's Except keeps whole, `Dr/MD`). After both, `measure.py --base` moves 88 entries, the 87 above and one more fix, `V. Gross, Prof/ md` (ctgov-officials), reading title 'Prof', given 'V.', suffix 'md' as `V. Gross, Prof. md` does, where the base read given 'Prof/', family 'V. Gross': 77 gain the title, the same 11 read wrong before and after, and none reads wrong that read right. Each fix has case rows run against e0f698c8. diff --git a/docs/design/decisions/script-properties.md b/docs/design/decisions/script-properties.md index 479629d85..3717e9c0e 100644 --- a/docs/design/decisions/script-properties.md +++ b/docs/design/decisions/script-properties.md @@ -73,8 +73,8 @@ The ja, ko, th and ru counts are 2026-08-02's (#320) too. The King Saud University directory the issue read (2026-11-07, 401 names) holds no initial and writes the letter with a full stop as a title; it was not re-read. - **Citation practice is consistent with it**, not evidence for it: Arabic-language APA guides give the given name in full in Arabic references (an Al-Azhar University Gaza guide's examples), and users of Zotero and RefWorks report Arabic entries keeping full names where English ones take initials. A web search on 2026-11-19 found no authority stating the convention either way, and nothing on Persian or Urdu. - **What the row moves.** `initials()` gives nothing for a word in Arabic script, where 1.4.0 through 3.1.0 gave its first letter (the committed snapshot's 333 Arabic-script entries; `jrc-names` 17,065, ORCID 6,203 and the parliaments 1,143 moved in that view alone); the name match reads a single letter as a whole word; T5's veto reads no Arabic letter with a full stop as an initial, so a listed title letter is read as the title it is, and the order report on letters ending a name is not made for them, as for Thai (`محمد ع. ب.`, `محمد R. S.` behind an Arabic given name). The row's spans hold the script's digits and punctuation too, which no reader asks about but `initials()`, which leaves them out (`John ۳. Smith` gives 'J. S.'). The cost: a transliterated Western name written in Arabic script with an initial has no initials, and its letter is no initial to the parse; `و.`, also the connective "and", then joins its neighbours (`جورج و. بوش` → given 'جورج و. بوش', reported given-or-family), a shape no list measured writes (0 of the lists above) and a case row pins. About 6 such names in 17,101. A run of Arabic letters joined by full stops is no run of initials either, and one holding a listed title letter (`م`, `د`, `ا`) anywhere reads as a title: `علي ح.م.` → title 'ح.م.', family 'علي', where master read given 'علي', family 'ح.م.', and a run of transliterated initials (`ا.ب. علي`) reads as a title too; a run holding none is no title and reads as on master, a name word in `علي ح.ب.` (family 'ح.ب.') and S3's suffix with a name word to spare (`محمد علي ح.ب.` → suffix 'ح.ب.'). - - **The titles** (ar.toml, each with its counts on its note): `د`, `أ` and `م` with their full stops, `ا` (`أ` written without the hamza, as ORCID's records write it), `أ.د`, `ا.د`, `أ.م.د`, `ا.م.د`, `م.د` and `م.م` as `academic`; the ranks Egypt's parliament writes, each measured alone on the parliaments, `jrc-names` and ORCID with the word added (moved names, all to the title, none from a name): `اللواء` 4 and `لواء` 2 (`military`), `المستشار` 1, `المستشارة` 1 and `السفيرة` 1 (`office`), and `الاستاذ` (`الأستاذ` without the hamza) 1 there and 10 in ORCID. `دكتور`, `الدكتور`, `الحاج` and `الشيخ` read right already. The cost of listing them before question A is settled: a slash written apart after one (`اللواء / X`, `د / X`) leaves `/` as the given name, where master read the title word as the given name and `/` as a middle name, 14 of the parliaments' names reading a title now and 1 of ORCID's; both readings are wrong, and A's proposed reading would take the slash out. - - **The questions the decision left open, measured.** A slash (A): a listed title written with a slash for its full stop (`د/`, `د/منى`, `د / منى`, `Dr/ John`) opens 86 names in the local corpora, 61 in Arabic script (Egypt's parliament 37, ORCID 24) and 25 in Latin; the glued slash (`د/`, `د/منى`) stays the given name, and a spaced one (`د / منى`) reads the letter as the title and `/` as the given name; not built, a reading needing a tokenize rule, and recorded on #1149. A bare letter (B): listing `د.` lists `د`, the fold leaving the bare letter, and every bare Arabic letter opening a name in ORCID (51, names and credit lines) and the parliaments (16) is a title; the only others are `jrc-names`' 5 cut-off `د آل خليفة`. Glued (C): `Dr.John` divides already (rules/T8), and `د.أحمد` divides once `د` is listed, as T8's one-letter clause reads a listed caseless letter; ORCID writes the Arabic glued form 217 times and Latin 1,348. + - **The titles** (ar.toml, each with its counts on its note): `د`, `أ` and `م` with their full stops, `ا` (`أ` written without the hamza, as ORCID's records write it), `أ.د`, `ا.د`, `أ.م.د`, `ا.م.د`, `م.د` and `م.م` as `academic`; the ranks Egypt's parliament writes, each measured alone on the parliaments, `jrc-names` and ORCID with the word added (moved names, all to the title, none from a name): `اللواء` 4 and `لواء` 2 (`military`), `المستشار` 1, `المستشارة` 1 and `السفيرة` 1 (`office`), and `الاستاذ` (`الأستاذ` without the hamza) 1 there and 10 in ORCID. `دكتور`, `الدكتور`, `الحاج` and `الشيخ` read right already. The cost of listing them before question A is settled: a slash written apart after one (`اللواء / X`, `د / X`) leaves `/` as the given name, where master read the title word as the given name and `/` as a middle name, 14 of the parliaments' names reading a title now and 1 of ORCID's; both readings are wrong, and A's proposed reading would take the slash out, as rules/T9 has since done (decisions/T9, 2026-11-20). + - **The questions the decision left open, measured.** A slash (A): a listed title written with a slash for its full stop (`د/`, `د/منى`, `د / منى`, `Dr/ John`) opens 86 names in the local corpora, 61 in Arabic script (Egypt's parliament 37, ORCID 24) and 25 in Latin; the glued slash (`د/`, `د/منى`) stays the given name, and a spaced one (`د / منى`) reads the letter as the title and `/` as the given name; not built here, a reading needing a tokenize rule, and recorded on #1149; built since as rules/T9 (decisions/T9, 2026-11-20). A bare letter (B): listing `د.` lists `د`, the fold leaving the bare letter, and every bare Arabic letter opening a name in ORCID (51, names and credit lines) and the parliaments (16) is a title; the only others are `jrc-names`' 5 cut-off `د آل خليفة`. Glued (C): `Dr.John` divides already (rules/T8), and `د.أحمد` divides once `د` is listed, as T8's one-letter clause reads a listed caseless letter; ORCID writes the Arabic glued form 217 times and Latin 1,348. - **NFD and the joiners.** T8 counts an Arabic letter's combining marks with it (`_vocab._ARABIC_MARKS`, every mark Unicode names ARABIC) in the gate `_script_segment` asks first, on the chunk and on the name after the stop, so a decomposed `أ.محمد` or `أ.د.أحمد` divides as the composed one does; the first review found the gate left out, a single decomposed `أ.` then swallowing the name into the title. The name after the stop also admits a zero-width non-joiner or joiner between two letters, as Persian spells a name (`د.محمد‌رضا` divides; `Dr.Jean‌Paul` with it). A joiner ending the word or right after the stop is no part of a name, so the word does not divide and reads whole as the listed title, the name with it (`د.محمد‌ رضا` → title 'د.محمد‌'), as `Dr.Jean‌ Smith` read on master: accepted, a case row pinning it. The shape's letter class (`_MARKS`, decisions/H2) still counts no Arabic mark. A vowel mark written on the title letter (`دُ.`) and a presentation form (`ﺩ.`) are not read as the title, and a title written with a vowel (`أَ.د.`) is a title by shape, not the listed one, so it addresses no given name. - **MEASURED** against master `667828ae` (`tools/differential/measure.py --base`): the committed snapshot moves the 333 `initials()` views and no field; the CLDR, GND and Wikidata native records do not move. `orcid-researchers` moves 7,018 entries, 6,203 in `initials()` alone and 814 reading a title (663 with the middle, 149 with the given name, 2 with the family) and 1 an ambiguity alone; its agreement scores 423 records as regressions and 211 as changed to a reading neither side agrees with, which are holders who typed the title into the given-name box (629 records open that box with a newly listed title). The parliaments move 1,181 entries (38 reading a title) and their alike view reads 35 persons apart, each spelled once with a title it now reads and once without, the title field alone differing. `jrc-names` moves 17,070 entries, 5 reading a title (the cut-off `د آل خليفة`). ClinicalTrials.gov moves 9 `initials()` views; every other local corpus moves nothing. `tools/differential/match_diff.py --base` moves 0 of 690,426 rows, its draw holding no Arabic-script pair with a letter and a full stop, so `tests/v2/test_match.py` holds the match's move (`فؤاد علي` against `ف. علي` now conflicts); `suggest_measure.py --base` moves no cell (decisions/group-suggestion's entry of the same date). - Recompute: the CLDR table with the Standing recipe on `common/main/{en,ar,fa,ur}.xml` at `c0b65ae3`, `،` added to the copy test's commas; the lists by scanning each corpus's Arabic-script names (U+0600–06FF and the other spans above) for words that are one letter with or without a full stop, by position, and reading each; the measurement with `measure.py --base `. diff --git a/docs/design/rules/README.md b/docs/design/rules/README.md index 9f8f7c7cc..d97eaccea 100644 --- a/docs/design/rules/README.md +++ b/docs/design/rules/README.md @@ -221,6 +221,7 @@ Terms the rules use without defining them each time, each with the rule that def - [T6 — a narrow no-break space between Mongolian letters joins them](T6-narrow-no-break-space-between-mongolian-letters-joins-them.md) - [T7 — a given name written as a run of initials](T7-given-name-written-as-a-run-of-initials.md) - [T8 — a word glued to the next at its full stop](T8-word-glued-to-the-next-at-its-full-stop.md) +- [T9 — a slash written for a title's full stop](T9-slash-written-for-a-titles-full-stop.md) ## [Ambiguity & tie-breaking (A)](A-ambiguity-and-tie-breaking.md) diff --git a/docs/design/rules/T9-slash-written-for-a-titles-full-stop.md b/docs/design/rules/T9-slash-written-for-a-titles-full-stop.md new file mode 100644 index 000000000..411a38dcd --- /dev/null +++ b/docs/design/rules/T9-slash-written-for-a-titles-full-stop.md @@ -0,0 +1,94 @@ +# T9 — a slash written for a title's full stop + +**When:** a listed title opens the name, or the given part after a family comma, written with a slash where its full stop would stand, as in "Dr/ Jane Smith" or "د/ أحمد علي". + +**Then:** the slash reads as the title's full stop would, a separator: the title is read as it is written without the slash, and the slash is in no field, whether it stands glued to the title before a space, glued to both the title and the name after it, alone between them, or glued to the name. +``` +"د/ أحمد علي" → title="د" +"د/ أحمد علي" → given="أحمد" +"د/أحمد علي حسن" → given="أحمد" +"د / أحمد علي" → title="د" +"د /أحمد علي" → given="أحمد" +"Dr/ Jane Smith" → title="Dr" +"Prof/Jane Smith" → given="Jane" +"Smith, Dr/ Jane" → title="Dr" +"أ.د/ أحمد علي" → title="أ.د" +``` + +- **A listed title** is a title the vocabulary lists that is neither a saint particle, nor a suffix too, nor a given name too (H9). + ``` + "اللواء/ أحمد علي" → title="اللواء" + ``` +- **The name after the slash** is one name word as T8 reads the name after a stop — letters, apostrophes and hyphens, its full stops set aside, so an initial or a name written short counts, with no delimiter, digit or slash of its own — that no title, title modifier or suffix reading claims outright; a title or a suffix that is also a given name is read as it is after the title's full stop, and so is a given name written short that is also a credential, unless written in capitals, where it is the credential. There must be one, so a title and a slash ending the part keep their word. + ``` + "Dr/ Dean Smith" → given="Dean" + "Dr/ Ed Smith" → given="Ed" + "Dr/ J. Smith" → given="J." + "Dr/ Md. Smith" → given="Md." + ``` +- **A title listed with a slash of its own** is the title whole, the slash after it the one read. + ``` + "mag/judge / Jane Smith" → title="mag/judge" + ``` +- **The rendering drops the slash**, the title and the name standing apart as written with a space. + ``` + "Dr/Jane Smith" → str="Dr Jane Smith" + ``` + +**Because:** Egypt's parliament writes a title with a slash in place of its full stop as its usual form (`د/`, `أ.د/`, `اللواء/`), ORCID's Arabic-script holders write it too, and a few Latin writers do (`Dr/`, `Prof/`). Read as written, the title was the given name and the slash a word of the name. Elsewhere a slash joins words that are no title — credentials, a Malaysian name's relation, care of, a company's form — so the reading stays at the head, where a listed title says what the slash is. + +**Except:** + +- **A word the slash joins with no listed title in front** keeps its reading: credentials joined by it, a relation, care of, an abbreviation whose first chunk is no title. + ``` + "Jane Smith MD/PhD" → suffix="MD/PhD" + "Jane Smith OTR/L" → suffix="OTR/L" + "Kumar a/l Rajan" → family="a/l Rajan" + "A/Prof Jane Smith" → given="A/Prof" + ``` +- **A title the slash joins to a title or a credential** keeps the one word, a slash between two titles reading "or" where glued. + ``` + "Dr/Mrs Jane Smith" → given="Dr/Mrs" + "Dr/MD Jane Smith" → given="Dr/MD" + "Dr/ MD Smith" → given="Dr/" + ``` +- **A title with a slash anywhere but the head** is a name word as it was: later in the name, behind another title, or ending it. + ``` + "Jane Dr/ Smith" → middle="Dr/" + "Mr. Dr/ Jane Smith" → given="Dr/" · boundary + "Jane Smith Dr/" → family="Dr/" + ``` +- **A saint particle, a title that is also a given name and a title that is also a suffix** with a slash keep their word, the last joined so as often in a credential. + ``` + "St/ John Smith" → given="St/" + "Dean/ Jane Smith" → given="Dean/" + "CPO/L Jane Smith" → given="CPO/L" + "Ms/ Jane Smith" → given="Ms/" + ``` +- **The part before a family comma** is a surname, and a slash glued there joins two, a couple's or a person's, so T9 does not read it and the word stays whole. + ``` + "JURIST/KOVAC, DANIEL/KAREN" → family="JURIST/KOVAC" · boundary + "Dr/ Smith, Jane" → family="Dr/ Smith" + ``` + +**Precedence:** + +- **A slash standing alone after the first comma** before a credential ("Jane Smith, Dr / PhD"): no name follows it, so C10 reads it as a suffix delimiter. + ``` + "Jane Smith, Dr / PhD" → suffix="PhD" + ``` + +**Accepted:** + +- The rendering does not keep the slash, where T8 keeps a glued word as written: the slash is a separator, as a delimiter C10 drops is. +- A title behind the title that opens the name stays a name word with its slash ('Mr. Dr/ Jane Smith'), a title run's later words being written so in none of the lists. +- A title standing as its own word after the slash keeps the word whole, though a slash written before a space may join a title run ('Prof/ Dr Jane Smith' → given 'Prof/', as before T9); glued to a name at its own stop it divides as after the full stop ('Dr/Mrs.Jane Smith' → title 'Dr Mrs.', as 'Dr. Mrs.Jane Smith' reads). +- A slash written apart after a title opening the part before a family comma is left where H6's title peel leaves it, in the surname ('Dr / Smith, Jane' → family '/ Smith', as before T9). +- A degree's field glued after the slash divides as a name, as T8 divides it after a stop ('Dr/Med Hans Meier' → given 'Med'). +- A title glued at its slash to a name standing alone before a suffix comma is not read ('Dr/Jane, PhD' → family 'Dr/Jane'), the comma's decision being asked of the word undivided, where T8's 'Dr.Jane, PhD' reads title 'Dr.'. +- A given name written short that is also a credential reads as the credential after the slash where written in capitals, though the full stop's spelling reads the name ('Dr/ MD Smith' → given 'Dr/', where 'Dr. MD Smith' reads given 'MD'), so in a name written wholly in capitals it is never the given name ('DR/ MD YUSRI BIN ALI', as before T9). +- Two roles joined by a slash in front of a name read the first as the title and the second as the given name ('Director/Owner Jane Smith' → given 'Owner'), where before T9 the pair was the given name. + +--- +**Signal:** shape: a slash after a listed title opening the name or the given part after a family comma +**history:** decisions/T9 · **implemented:** nameparser/_pipeline/_script_segment.py diff --git a/docs/languages.rst b/docs/languages.rst index 3f9720198..093b2d38c 100644 --- a/docs/languages.rst +++ b/docs/languages.rst @@ -1075,6 +1075,20 @@ judge's title in Egypt) and ``السفيرة`` (ambassador): >>> parse("اللواء أحمد علي").title 'اللواء' +Egypt writes a title with a slash in place of its full stop (``د/``, +``أ.د/``, ``اللواء/``). Opening the name, or the given part after a +family comma, the slash reads as the full stop would, a separator in no field, +glued to the name or spaced from it; a Latin title written so reads +the same (``Dr/ Jane Smith``): + +.. doctest:: + + >>> arabic_slash = parse("د/ أحمد علي") + >>> arabic_slash.title, arabic_slash.given + ('د', 'أحمد') + >>> [parse(n).title for n in ("د/أحمد علي", "د / أحمد علي", "Prof/Jane Smith")] + ['د', 'د', 'Prof'] + Initials ~~~~~~~~ @@ -1093,9 +1107,6 @@ of its own, not as an initial: Where the reading stops ~~~~~~~~~~~~~~~~~~~~~~~ -- **A title written with a slash** in place of its full stop - (``د/ أحمد علي``, Egypt's usual writing) is still read as the given - name; how a slash should read is an open question (:issue:`1149`). - **A title behind another title** that is not listed stays a name word: ``الأستاذ المساعد`` (assistant professor) reads ``المساعد`` as the given name. @@ -1105,10 +1116,6 @@ Where the reading stops initials, and ``و.`` (W.) is read as ``و``, "and", which joins the name: ``جورج و. بوش`` reads as one given name. -.. doctest:: - - >>> parse("د/ أحمد علي").given - 'د/' .. _maghrebi-hebrew-particles: diff --git a/docs/migrate.rst b/docs/migrate.rst index 497894564..544263727 100644 --- a/docs/migrate.rst +++ b/docs/migrate.rst @@ -2378,6 +2378,16 @@ title reading: >>> as_31.parse("د. أحمد علي حسن").given 'د.' +A listed title opening the name, or the given part after a family +comma, written with a slash for its full stop reads as that title too, +in any script, the slash in no field, where 1.4 through 3.1 read the +title and its slash as the given name (``Dr/ Jane`` gave given ``Dr/``): + +.. doctest:: + + >>> [parse(n).title for n in ("د/ أحمد علي حسن", "Dr/ Jane Smith")] + ['د', 'Dr'] + Religious titles before a name ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/release_log.rst b/docs/release_log.rst index cbfec6953..888cac325 100644 --- a/docs/release_log.rst +++ b/docs/release_log.rst @@ -9,7 +9,7 @@ Release Log - **Fix Abdel, Abd and Abou past the first word of a name, which read as a middle name of their own.** ``parse("Tariq Abdel Aziz")`` gives family ``Abdel Aziz``, where 1.4.0 through 3.1.0 gave middle ``Abdel``, family ``Aziz``. ``Abdul`` joins only in a name of four words or more, titles and suffixes not counted, so ``Tariq Abdul Aziz`` keeps middle ``Abdul``; and after a family comma ``Abd`` before a name word is no longer the credential ABD. :issue:`1464` - **Add locales.MS, a Malay pack, which reads Malaysian titles written before a name: Puan, Cik, Ustaz, Ustazah and Cikgu.** ``parser_for(locales.MS).parse("Puan Siti binti Ahmad")`` gives title ``Puan``, given ``Siti``, family ``binti Ahmad``, where the default, as 1.4.0 through 3.1.0, gives given ``Puan``; ``Tuan`` stays a name word, being a hereditary prefix and a Vietnamese given name, and the pack reads the Indonesian given name ``Puan`` as the title too (``Puan Maharani``): keep it to Malaysian names. See :ref:`malay-names`. :issue:`1179` - **Change Parser.suggest() to suggest two_family_names for a list whose names end in two family names, and add Signal.FIRST_SURNAME, the signal that votes for it.** ``Parser().suggest(["María García López", "Juan Pérez Ruiz", "Ana Martínez Soto"]).patch`` gives ``PolicyPatch(two_family_names=True)``, where 3.1.0 suggested nothing; it is weighed only where the list's order is given-first, and lists measured from Argentina, Brazil and Portugal are rarely or never suggested it. ``NameEvidence.votes`` may now hold ``True`` or ``False``, the switch's value a name votes for. :issue:`1452` - - **Fix Arabic titles written short, which read as the given name, and stop giving initials for Arabic-script names.** ``parse("د. أحمد علي حسن")`` gives title ``د.``, given ``أحمد``, where 1.4.0 through 3.1.0 gave given ``د.``; ``أ.د.``, ``م.م.``, a title glued to the name and the ranks ``اللواء`` and ``المستشار`` read as titles too, and ``initials()`` gives nothing for a word in Arabic script, as for Thai and Burmese, nor does the name match read its letter as an initial. A title written with a slash (``د/``) still reads as the given name. :issue:`1149` + - **Fix Arabic titles written short, which read as the given name, and stop giving initials for Arabic-script names.** ``parse("د. أحمد علي حسن")`` gives title ``د.``, given ``أحمد``, where 1.4.0 through 3.1.0 gave given ``د.``; ``أ.د.``, ``م.م.``, a title glued to the name and the ranks ``اللواء`` and ``المستشار`` read as titles too, and ``initials()`` gives nothing for a word in Arabic script, as for Thai and Burmese, nor does the name match read its letter as an initial. A title written with a slash for its full stop reads as the title too, in any script (``د/ أحمد``, ``Dr/Jane Smith``), where 1.4.0 through 3.1.0 read the given name. :issue:`1149` - **Change Parser.suggest() to read where a Russian-style patronymic stands as a vote on the order, and add Signal.PATRONYMIC_POSITION, the signal that casts it.** ``Parser().suggest(["Sidorov Ivan Petrovich", "Volkov Pavel Sergeevich", "Orlova Anna Ivanovna", "Zaitsev Oleg Nikolaevich", "Belova Vera Andreevna"]).patch`` gives ``PolicyPatch(name_order=FAMILY_FIRST, patronymic_rules=...)``, where 3.1.0 gave the rule with the given-first order, which misread any name of two words in such a list (``Sidorov Ivan`` gave family ``Ivan``); a patronymic in the middle votes given-first. :issue:`1447` - **Fix ud inside a South Asian compound name, which read as a credential and took the rest of the name.** ``parse("NADIR ZIA UD DIN")`` gives middle ``ZIA UD``, family ``DIN``, as 1.4.0 through 2.3.0 did, where 2.4.0 through 3.1.0 gave family ``ZIA``, suffix ``UD DIN``; ``UD`` alone after a name and a comma now reads as initials (``Anke Vissering, UD`` gives given ``UD``, family ``Anke Vissering``, where 1.4.0 through 3.1.0 gave suffix ``UD``). ``bt`` stays a credential: for Malay names remove it, as :doc:`customize` shows. :issue:`1467` - **Fix the surname1 and surname2 views, which left a family of two surnames whole before a family comma, opening with a particle, or behind a given name a particle completes.** Under ``two_family_names``, as ``locales.ES``, ``ES_AR``, ``CS``, ``SK``, ``PT_BR`` and ``PT_PT`` turn it on, ``parser_for(locales.ES).parse("García Márquez, Gabriel")`` gives surname1 ``García``, surname2 ``Márquez``, as ``Gabriel García Márquez`` does, where 3.0.0 through 3.1.0 gave surname1 ``García Márquez``, surname2 ``''``. No field moves; a family joined by ``y`` or written as one hyphenated word stays whole, and so, where 3.0.0 through 3.1.0 divided them, do a lone particle and the word after it under a family-first order (``Van Gogh``) and a Turkic father's name with its marker; with ``capitals_as_family`` on too, the family the capitals name is divided. :issue:`1456`, :issue:`1479` diff --git a/nameparser/_pipeline/_script_segment.py b/nameparser/_pipeline/_script_segment.py index 1d3590ddc..696c6390d 100644 --- a/nameparser/_pipeline/_script_segment.py +++ b/nameparser/_pipeline/_script_segment.py @@ -5,7 +5,9 @@ own-words span `_one_case` asks the fact over where segment did not (#613; the answer is not recorded, classify recording its own), and original, for the peel's ASCII bail. -Produces: tokens, by four independent splits into sub-slices -- a +Produces: tokens, first with the slash after a listed title opening +the name or the given part after a family comma cut off and the slash's token +dropped (rules/T9), then by four independent splits into sub-slices -- a word of the part before any comma glued to the next at its full stop divided there (rules/T8), with a SUFFIX_OR_NAME report where an initial is cut from the word ending the name, a listed title peeled @@ -16,11 +18,14 @@ first activated-script token of the name segment split into n+1 (into its two surnames and, undivided, the given name behind them, where a Han surname pair stands there, the second surname carrying -SURNAME_PAIR_TAG for post_rules, rules/W5) -- segments (index runs remapped past the insertions), ambiguities +SURNAME_PAIR_TAG for post_rules, rules/W5) -- segments (index runs remapped past the insertions and T9's removal), ambiguities (indices likewise remapped, plus a SEGMENTATION report when more than one split was vocabulary-supported, or when a segmenter's answer scored under the confidence floor). -Reads: the vocabulary `_vocab.glued_cuts` reads for T8 (Lexicon.titles, +Reads: Lexicon.titles, suffix_acronyms, suffix_words and +saint_particles (T9's title before the slash) and titles, +title_modifiers, suffix_words and suffix_acronyms with their ambiguous +sets (T9's name after it), the vocabulary `_vocab.glued_cuts` reads for T8 (Lexicon.titles, titles_ambiguous, title_modifiers, title_styles, saint_particles, given_name_abbreviations, suffix_acronyms and its ambiguous set, suffix_words and its ambiguous set, credential_words, and @@ -62,16 +67,16 @@ split being the half that flips "田中さん, Jr./V." under {"/"} and the bare core the half that flips "田中さん, /"). -Implements rules T8 (a word glued at its full stop), W1 (the +Implements rules T9 (a slash for a title's full stop), T8 (a word glued at its full stop), W1 (the vocabulary/segmenter division), W2 (the glued-honorific peel), W6 (the glued-title peel), W3 (the writer's divisions are respected) and W5's division (a Han surname pair) of docs/design/rules/, cited at their code below; the decision chain (#308, #312, #319, the vetting bars, the measured spaced-honorific trade) is decisions/W1, #W2 and #W3, and T8's -decisions/T8. Every split makes sub-slices of one token, rewriting nothing -- spans still index -the original exactly, so the anti-#100 invariant holds by -construction. The script splits also match on the token's CORE, its +decisions/T8, and T9's decisions/T9. Every split makes sub-slices of one token, rewriting nothing, and +T9's drop removes a token whole -- spans still index the original +exactly, so the anti-#100 invariant holds by construction. The script splits also match on the token's CORE, its text.rstrip(FULL_STOPS) (#323) -- rstrip and never strip, because both offsets are measured from the text's START, so the core has to stay a prefix of the text for the offset the match yields to land @@ -90,7 +95,7 @@ import unicodedata from collections.abc import Callable, Sequence -from nameparser._lexicon import FULL_STOPS, _normalize +from nameparser._lexicon import FULL_STOPS, Lexicon, _normalize import nameparser._pipeline._comma as _comma from nameparser._pipeline._classify import classify from nameparser._pipeline._state import ( @@ -98,7 +103,7 @@ Structure, WorkToken, copy_with, ) from nameparser._pipeline._vocab import ( - GLUED_SHAPE, dotted_title_end, effective_script, + GLUED_SHAPE, dotted_title_end, effective_script, is_name_word, glued_cuts, glued_saint_cut, title_prefixes, is_initial_chunk, is_one_case, period_joined_vocab, @@ -161,6 +166,8 @@ def _split(state: ParseState, i: int, splits: tuple[int, ...], range(cap, 0, -1) construction and its len-1 cap. From T8's division: `_vocab.glued_cuts` appends each offset after a matched stop, so each is >= 2, ascending, and < len(text), a name following. + From T9's division: (slash,), (slash, slash + 1) or (1,), each + interior, a title before the slash and a slash or a name after it. The ONE split path: the vocabulary hit is the single-offset case, and the segmenter's answer and T8's division the general one, so @@ -911,6 +918,126 @@ def _split_surname_site(state: ParseState) -> ParseState: return _split(state, i, answer.splits, detail) +def _drop(state: ParseState, i: int) -> ParseState: + """Token `i` removed, a slash T9 reads as a separator: every later + index shifts down by one, in the segment runs and the reports + alike, as `_split` shifts them up.""" + tokens = state.tokens[:i] + state.tokens[i + 1:] + segments = tuple(tuple(j - 1 if j > i else j for j in run if j != i) + for run in state.segments) + ambiguities = tuple( + copy_with(a, indices=tuple( + j - 1 if j > i else j for j in a.indices if j != i)) + for a in state.ambiguities) + return copy_with(state, tokens=tokens, segments=segments, + ambiguities=ambiguities) + + +def _slash_title(text: str, lexicon: Lexicon) -> bool: + """Whether `text` is a listed title T9 reads before a slash: one no + suffix reading claims and no saint particle, since a title/suffix + dual joined by a slash is a credential as often (`CPO/L`, + `MS/CCRP`).""" + word = _normalize(text) + sets = lexicon._sets + return (word in sets.titles and word not in sets.suffix_acronyms + and word not in sets.suffix_words + and word not in sets.saint_particles) + + +def _slash_name(text: str, lexicon: Lexicon) -> bool: + """Whether `text`, written after a title's slash, is a name word + T9 divides at the slash: one name word in T8's shape (no delimiter, + digit or slash) once its full stops are set aside, so an initial or + a name written short reads as after the title's full stop (`J.`, + `Wm.`), which no title, title modifier or suffix reading claims + outright (`Dr/Mrs`, `Dr/MD`, `Dr/M.D.` keep their one word). A + title or suffix that is also a given name (`Dean`, `Ed`, `Junior`) + is read as it is after the title's full stop, and so is a given name + written short that is also a credential where it is not written in + capitals (`Md.`, rules/H2's yield), `MD` being the credential.""" + if text.startswith(".") or not is_name_word(text.replace(".", "")): + return False + word = _normalize(text) + sets = lexicon._sets + if word in sets.given_name_abbreviations and not text.isupper(): + return True + # the acronyms both as stored and without their stops: a caller's + # acronym may be stored with them ('q.z'), the shipped ones never + return not (word in sets.titles or word in sets.title_modifiers + or (word in sets.suffix_words + and word not in sets.suffix_words_ambiguous) + or (word in sets.suffix_acronyms + and word not in sets.suffix_acronyms_ambiguous) + or (word.replace(".", "") in sets.suffix_acronyms + and word.replace(".", "") + not in sets.suffix_acronyms_ambiguous)) + + +# rules/T9: "the slash reads as the title's full stop would, a +# separator" -- the word opening the name, or the given part after a +# family comma, and only there (decisions/T9 (#1149)) +def _divide_title_slash(state: ParseState) -> ParseState: + """The slash after a listed title opening the name, or the given + part after a family comma, cut off and dropped. Group decides the + comma later, so a comma is asked its decision here, and only where + a head is a site, the decision costing a classify pass: a part + after it read as post-nominals leaves the name whole before it, + where the head is read, and a family comma leaves the part before + it a surname, where a slash joins two (`JURIST/KANJO, + DAVID/KATHRYN`), so only the given part after it is read.""" + plan = _slash_plan(state, 0) + if state.structure is Structure.FAMILY_COMMA: + given = _slash_plan(state, 1) + if plan is None and given is None: + return state + if not _postnominal_behind_a_whole_name(state): + plan = given + if plan is None: + return state + split_at, splits, slash = plan + if split_at is not None: + state = _split(state, split_at, splits, None) + return _drop(state, slash) + + +def _slash_plan(state: ParseState, site: int + ) -> tuple[int | None, tuple[int, ...], int] | None: + """T9's cut at the head of segment `site`, in each of the slash's + four writings (`X/`, `X/word`, `X / word` and `X /word`): the token + to split and where (None where the slash stands alone), and the + index the slash's token then holds. None where the head is no + site.""" + if len(state.segments) <= site or not state.segments[site]: + return None + run = state.segments[site] + lexicon = state.lexicon + tokens = state.tokens + i = run[0] + text = tokens[i].text + # the last slash, so a title listed with one of its own ('mag/judge') + # is X whole; the name after it holds none + slash = text.rfind("/") + if slash > 0 and _slash_title(text[:slash], lexicon): # glued to X + rest = text[slash + 1:] + name = rest or (tokens[run[1]].text if len(run) > 1 else "") + if name and _slash_name(name, lexicon): + # `X/word` or `X/ word` + return i, ((slash, slash + 1) if rest else (slash,)), i + 1 + # a word refused there may be a title listed with its slash + # ('mag/judge'), read as X whole before a spaced slash + if len(run) < 2 or not _slash_title(text, lexicon): + return None + nxt = tokens[run[1]].text # the slash spaced from X + if nxt == "/": # `X / word` + if len(run) < 3 or not _slash_name(tokens[run[2]].text, lexicon): + return None + return None, (), run[1] + if nxt.startswith("/") and _slash_name(nxt[1:], lexicon): + return run[1], (1,), run[1] # `X /word` + return None + + # rules/T8: "the word reads as it does with a space there" -- the part # before any comma, where the division acts (decisions/T8 (#1230, #1235)) def _divide_glued(state: ParseState) -> ParseState: @@ -1068,6 +1195,9 @@ def _ends_the_name(cuts: tuple[int, ...], texts: Sequence[str], # family by declaration and never divides, and the post-comma side # is given text with no family to find" (history: decisions/W3) def script_segment(state: ParseState) -> ParseState: + # a C-level test first, so a name with no slash pays no frame + if "/" in state.original and state.segments: + state = _divide_title_slash(state) if state.segments and GLUED_SHAPE.search(state.original): state = _divide_glued(state) if state.original.isascii(): diff --git a/nameparser/_pipeline/_state.py b/nameparser/_pipeline/_state.py index 05a847e8b..73c36957a 100644 --- a/nameparser/_pipeline/_state.py +++ b/nameparser/_pipeline/_state.py @@ -429,7 +429,10 @@ class ParseState: changes the token COUNT: an unspaced CJK token, or a word glued at its full stop before any comma (rules/T8), splits into n+1 pieces, still as sub-slices of the original, and every later index in the - segment runs shifts by n); classify -> token tags AND + segment runs shifts by n; the slash after a title opening the name + or the given part after a family comma is cut off its word where + glued and its token dropped, rules/T9, every later index remapped + by the net count); classify -> token tags AND one_case; group -> structure (its head decides a comma form, #613) AND the SUFFIX/TITLE roles of a postnominal part after the comma, whose segment it empties so no join reaches it, diff --git a/nameparser/_pipeline/_vocab.py b/nameparser/_pipeline/_vocab.py index bb7f9d753..336b7e772 100644 --- a/nameparser/_pipeline/_vocab.py +++ b/nameparser/_pipeline/_vocab.py @@ -987,6 +987,15 @@ def _dotted(text: str) -> bool: + _ARABIC_MARKS + r"|['’\-]|[\u200c\u200d](?=[^\W\d_]))*") +def is_name_word(text: str) -> bool: + """Whether `text` is wholly one name word as T8 reads the name after + a stop: letters, apostrophes and hyphens, a letter's marks counted + with it and a joiner between two letters. rules/T9 asks it of the + name after a title's slash, so a word holding a delimiter, a digit + or another slash is never cut.""" + return _GLUED_WORD.fullmatch(text) is not None + + def _is_cased_letter(chunk: str) -> bool: """One letter in a script with case: the initial T8 reads alone (rules/T8); a single letter in a script without case is read alone diff --git a/tests/v2/cases.py b/tests/v2/cases.py index 5b19525a7..f05e80a07 100644 --- a/tests/v2/cases.py +++ b/tests/v2/cases.py @@ -22380,7 +22380,378 @@ def _check_cjk_shape_purity(self) -> None: notes="the accepted cost: with no initial in the script, 'و.' is " "the connective 'and' (P3); read middle 'و.' 1.4.0 through " "3.1, a transliterated initial no corpus writes so"), - Case("arabic_title_with_a_slash_is_still_read_as_the_name", "د/ أحمد علي", - {"given": "د/", "middle": "أحمد", "family": "علي"}, - notes="boundary: the slash is #1149's open question A"), + # rules/T9 (#1149): a listed title opening the name, or the given + # part after a family comma, written with a slash for its full stop + Case("arabic_title_with_a_slash_reads_as_the_title", "د/ أحمد علي", + {"title": "د", "given": "أحمد", "family": "علي"}, + classification="fix(#1149)", + notes="1.4.0 through 3.1 read given 'د/', middle 'أحمد'"), + Case("arabic_title_glued_to_the_name_at_its_slash", "د/أحمد علي حسن", + {"title": "د", "given": "أحمد", "middle": "علي", "family": "حسن"}, + classification="fix(#1149)", + notes="1.4.0 through 3.1 read given 'د/أحمد'"), + Case("arabic_title_glued_at_its_slash_decomposed", + unicodedata.normalize("NFD", "د/أحمد علي"), + {"title": "د", "given": unicodedata.normalize("NFD", "أحمد"), + "family": "علي"}, + classification="fix(#1149)", + notes="the NFD twin: the word after the slash holding a " + "combining hamza"), + Case("arabic_title_and_a_slash_written_apart", "د / أحمد علي", + {"title": "د", "given": "أحمد", "family": "علي"}, + classification="fix(#1149)", + notes="1.4.0 read given 'د', middle '/ أحمد'; 3.1 read given " + "'/'"), + Case("arabic_title_and_a_slash_glued_to_the_name", "د /أحمد علي", + {"title": "د", "given": "أحمد", "family": "علي"}, + classification="fix(#1149)", + notes="1.4.0 read given 'د', middle '/أحمد'; 3.1 read given " + "'/أحمد'"), + Case("arabic_rank_with_a_slash_reads_as_the_title", "اللواء/ أحمد علي", + {"title": "اللواء", "given": "أحمد", "family": "علي"}, + classification="fix(#1149)", + notes="the parliament's writing of a rank (#1149)"), + Case("arabic_title_with_a_slash_before_a_bound_pair", + "د/ نور الدين محمد علي", + {"title": "د", "given": "نور الدين", "middle": "محمد", + "family": "علي"}, + classification="fix(#1149)", + notes="T9 beside P12's bound_second pair (#1072): reads as " + "'د. نور الدين محمد علي' does"), + Case("arabic_title_glued_by_a_slash_to_a_bound_pair", + "د/نور الدين محمد علي", + {"title": "د", "given": "نور الدين", "middle": "محمد", + "family": "علي"}, + classification="fix(#1149)", + notes="the pair joins the word cut off the title (#1072)"), + Case("arabic_rank_with_a_slash_before_a_bound_pair_with_abd", + "اللواء/ عبد الله أحمد علي", + {"title": "اللواء", "given": "عبد الله", "middle": "أحمد", + "family": "علي"}, + classification="fix(#1149)", + notes="P12's عبد pair behind T9's title (#694, #1072)"), + Case("arabic_title_with_a_slash_before_a_bound_pair_ending_the_name", + "د/ محمد نور الدين", + {"title": "د", "given": "محمد", "family": "نور الدين"}, + classification="fix(#1149)", + notes="the pair placed by position, as 'د. محمد نور الدين' " + "reads (#1072)"), + Case("arabic_title_listed_with_its_stops_drops_its_slash", + "أ.د/ أحمد علي", + {"title": "أ.د", "given": "أحمد", "family": "علي"}, + classification="fix(#1149)", + notes="3.1 read title 'أ.د/', the slash kept in the title"), + Case("arabic_title_with_a_slash_before_an_arabic_comma_stays_whole", + "د/ منى أحمد، محمد", + {"given": "محمد", "family": "د/ منى أحمد"}, + notes="boundary (#1149): the part before a family comma is a " + "surname, where a slash joins two, and T9 does not read it"), + Case("arabic_title_with_a_slash_family_first", "د/ أحمد علي", + {"title": "د", "given": "علي", "family": "أحمد"}, + policy=Policy(name_order=FAMILY_FIRST), + classification="fix(#1149)", + notes="3.1 read family 'د/'"), + Case("latin_title_with_a_slash_reads_as_the_title", "Dr/ Jane Smith", + {"title": "Dr", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)", + notes="1.4.0 through 3.1 read given 'Dr/', middle 'Jane'"), + Case("latin_title_glued_to_the_name_at_its_slash", "Prof/Jane Smith", + {"title": "Prof", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)", + notes="1.4.0 through 3.1 read given 'Prof/Jane'"), + Case("latin_title_and_a_slash_written_apart", "Dr / Jane Smith", + {"title": "Dr", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)", + notes="3.1 read given '/'"), + Case("latin_title_and_a_slash_glued_to_the_name", "Dr /Jane Smith", + {"title": "Dr", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)", + notes="3.1 read given '/Jane'"), + Case("title_dual_with_a_slash_keeps_its_word", "Ms/ Jane Smith", + {"given": "Ms/", "middle": "Jane", "family": "Smith"}, + notes="boundary (#1149): a title/suffix dual joined by a slash is " + "a credential as often ('CPO/L'), so T9 does not read one"), + Case("credential_opening_with_a_title_dual_keeps_its_word", + "CPO/L Jane Smith", + {"given": "CPO/L", "middle": "Jane", "family": "Smith"}, + notes="boundary (#1149): 'cpo' is a title and a suffix"), + Case("title_with_a_slash_before_a_suffix_comma", "Dr/ Jane Smith, Jr.", + {"title": "Dr", "given": "Jane", "family": "Smith", "suffix": "Jr."}, + classification="fix(#1149)"), + Case("title_with_a_slash_opening_the_given_part", "Smith, Dr/ Jane", + {"title": "Dr", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)", + notes="1.4.0 through 3.1 read given 'Dr/', middle 'Jane'"), + Case("title_glued_at_its_slash_opening_the_given_part", "Smith, Dr/Jane", + {"title": "Dr", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)"), + Case("title_with_a_slash_opening_the_surname_part_stays_whole", + "Dr/ Smith, Jane", + {"given": "Jane", "family": "Dr/ Smith"}, + notes="boundary (#1149): T9 reads no part before a family comma"), + Case("two_surnames_joined_by_a_slash_before_a_family_comma", + "JURIST/KOVAC, DANIEL/KAREN", + {"given": "DANIEL/KAREN", "family": "JURIST/KOVAC"}, + notes="boundary (#1149): a couple's surnames, the first a listed " + "title, which T9 would take as one if it read the part " + "before the comma"), + Case("title_with_a_slash_after_an_empty_head", ", Dr/ Jane", + {"title": "Dr", "family": "Jane"}, + classification="fix(#1149)", + notes="as ', Dr. Jane' reads"), + # rules/T9's boundaries: what else a slash joins keeps its reading + Case("slash_joined_credentials_ending_the_name", "Jane Smith MD/PhD", + {"given": "Jane", "family": "Smith", "suffix": "MD/PhD"}, + classification="fix(#752)", + notes="boundary (#1149): no title opens the word; 1.4.0 through " + "2.6 read family 'MD/PhD'"), + Case("slash_joined_dotted_credentials_ending_the_name", + "Jane Smith M.D/Ph.D", + {"given": "Jane", "family": "Smith", "suffix": "M.D/Ph.D"}, + classification="fix(#752)", + notes="boundary (#1149); 1.4.0 through 2.6 read family " + "'M.D/Ph.D'"), + Case("slash_joined_credential_ending_the_name", "Jane Smith OTR/L", + {"given": "Jane", "family": "Smith", "suffix": "OTR/L"}, + classification="fix(#797)", + notes="boundary (#1149); 1.4.0 through 2.5 read family 'OTR/L'"), + Case("care_of_keeps_its_slash", "Jane Smith c/o Mary Jones", + {"given": "Jane", "middle": "Smith c/o Mary", "family": "Jones"}, + notes="boundary (#1149): c/o is no title, and stands inside the " + "name"), + Case("associate_professor_written_with_a_slash_keeps_its_word", + "A/Prof Jane Smith", + {"given": "A/Prof", "middle": "Jane", "family": "Smith"}, + notes="boundary (#1149): 'A' is no listed title, so the word " + "opening the name stays whole"), + Case("company_suffix_with_a_slash_keeps_its_word", "Jane A/S Smith", + {"given": "Jane", "middle": "A/S", "family": "Smith"}, + notes="boundary (#1149)"), + Case("bracketed_time_zone_label_keeps_its_slash", "(UTC/GMT Jane Smith", + {"given": "(UTC/GMT", "middle": "Jane", "family": "Smith"}, + ambiguities=("unbalanced-delimiter",), + notes="boundary (#1149)"), + Case("title_with_a_slash_later_in_the_name_stays_a_name_word", + "Jane Dr/ Smith", + {"given": "Jane", "middle": "Dr/", "family": "Smith"}, + notes="boundary (#1149): T9 reads the word opening the name only"), + Case("title_with_a_slash_behind_another_title_stays_a_name_word", + "Mr. Dr/ Jane Smith", + {"title": "Mr.", "given": "Dr/", "middle": "Jane", "family": "Smith"}, + notes="boundary (#1149): the word opening the name only, not a " + "title run"), + Case("two_titles_joined_by_a_slash_keep_their_word", "Dr/Mrs Jane Smith", + {"given": "Dr/Mrs", "middle": "Jane", "family": "Smith"}, + notes="boundary (#1149): a title after the slash, which reads " + "'or', is no name"), + Case("title_and_credential_joined_by_a_slash_keep_their_word", + "Dr/MD Jane Smith", + {"given": "Dr/MD", "middle": "Jane", "family": "Smith"}, + notes="boundary (#1149)"), + Case("saint_particle_with_a_slash_keeps_its_word", "St/ John Smith", + {"given": "St/", "middle": "John", "family": "Smith"}, + notes="boundary (#1149): a saint particle is no title T9 reads"), + Case("ambiguous_title_with_a_slash_keeps_its_word", "Dean/ Jane Smith", + {"given": "Dean/", "middle": "Jane", "family": "Smith"}, + notes="boundary (#1149): a title that is also a given name " + "(rules/H9)"), + Case("title_with_a_slash_alone_keeps_its_word", "Dr/", + {"given": "Dr/"}, + ambiguities=("given-or-family",), + notes="boundary (#1149): no name follows the slash"), + Case("title_with_a_slash_ending_the_name_stays_a_name_word", + "Jane Smith Dr/", + {"given": "Jane", "middle": "Smith", "family": "Dr/"}, + notes="boundary (#1149)"), + Case("title_and_a_slash_before_a_credential_after_a_comma", + "Jane Smith, Dr / PhD", + {"title": "Dr", "given": "Jane", "family": "Smith", "suffix": "PhD"}, + classification="fix(#889)", + notes="boundary (#1149): the slash parts the suffix run (C10), " + "a credential being no name after it; 1.4.0 through 2.6 " + "read given '/', family 'Jane Smith'"), + # rules/T9's review rows (#1149): each clause of the title and name + # tests, the comma shapes, the orders and the spellings + Case("names_joined_by_a_spaced_slash_keep_it", "Mary / John Smith", + {"given": "Mary", "middle": "/ John", "family": "Smith"}, + notes="boundary (#1149): no title before the slash"), + Case("names_joined_by_a_spaced_slash_after_a_family_comma", + "Smith, Mary / John", + {"given": "Mary", "middle": "/ John", "family": "Smith"}, + notes="boundary (#1149): no title before the slash"), + Case("title_and_a_slash_before_a_title_keep_their_word", + "Dr/ Mrs Jane Smith", + {"given": "Dr/", "middle": "Mrs Jane", "family": "Smith"}, + notes="boundary (#1149): a title after the slash is no name"), + Case("title_and_a_spaced_slash_before_a_title", "Dr / Mrs Jane Smith", + {"title": "Dr", "given": "/", "middle": "Mrs Jane", + "family": "Smith"}, + notes="boundary (#1149): a title after the slash is no name, so " + "the slash stays"), + Case("title_and_a_slash_glued_to_a_title", "Dr /Mrs Jane Smith", + {"title": "Dr", "given": "/Mrs", "middle": "Jane", + "family": "Smith"}, + notes="boundary (#1149): a title after the slash is no name"), + Case("title_and_a_spaced_slash_with_no_name_after_it", "Dr /", + {"title": "Dr", "family": "/"}, + notes="boundary (#1149): no word after the slash"), + Case("title_and_a_spaced_slash_ending_the_given_part", "Smith, Dr /", + {"title": "Dr", "given": "/", "family": "Smith"}, + notes="boundary (#1149): no word after the slash"), + Case("title_and_suffix_word_with_a_slash_keeps_its_word", + "Sr/ Juan Perez", + {"given": "Sr/", "middle": "Juan", "family": "Perez"}, + notes="boundary (#1149): 'sr' is a title and a suffix word"), + Case("title_glued_to_two_names_by_slashes_keeps_its_word", + "Dr/Jane/Mary Smith", + {"given": "Dr/Jane/Mary", "family": "Smith"}, + notes="boundary (#1149): the word after the slash holds another"), + Case("title_glued_to_a_number_keeps_its_word", "Dr/123 Smith", + {"given": "Dr/123", "family": "Smith"}, + notes="boundary (#1149): no letter after the slash"), + Case("title_glued_to_a_suffix_word_keeps_its_word", "Dr/Jr Smith", + {"given": "Dr/Jr", "family": "Smith"}, + notes="boundary (#1149)"), + Case("title_glued_to_a_dotted_credential_keeps_its_word", + "Dr/M.D. Jane Smith", + {"given": "Dr/M.D.", "middle": "Jane", "family": "Smith"}, + notes="boundary (#1149)"), + Case("title_glued_to_a_bracket_keeps_its_word", "Dr /(Jane Smith", + {"title": "Dr", "given": "/(Jane", "family": "Smith"}, + ambiguities=("unbalanced-delimiter",), + notes="boundary (#1149): a delimiter after the slash is no name " + "word, so the report keeps its word"), + Case("title_glued_to_a_quote_keeps_its_word", 'Dr/Jim" Smith', + {"given": 'Dr/Jim"', "family": "Smith"}, + ambiguities=("unbalanced-delimiter",), + notes="boundary (#1149): the report is on the word T9 would cut"), + Case("title_with_a_slash_before_a_title_that_is_a_given_name", + "Dr/ Dean Smith", + {"title": "Dr", "given": "Dean", "family": "Smith"}, + ambiguities=("title-or-name",), + classification="fix(#1149)", + notes="read as 'Dr. Dean Smith' is (rules/H9); 3.1 read given " + "'Dr/'"), + Case("title_with_a_slash_before_a_suffix_that_is_a_given_name", + "Dr/ Ed Smith", + {"title": "Dr", "given": "Ed", "family": "Smith"}, + classification="fix(#1149)", + notes="read as 'Dr. Ed Smith' is; 3.1 read given 'Dr/'"), + Case("title_glued_to_a_degree_field_divides", "Dr/Med Hans Meier", + {"title": "Dr", "given": "Med", "middle": "Hans", + "family": "Meier"}, + classification="fix(#1149)", + notes="the accepted cost: read as 'Dr Med Hans Meier' and T8's " + "'Dr.Med Hans Meier' are; 3.1 read given 'Dr/Med'"), + Case("title_and_a_spaced_slash_opening_the_given_part", + "Smith, Dr / Jane", + {"title": "Dr", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)", + notes="3.1 read given '/'"), + Case("title_and_a_slash_glued_to_the_given_name", "Smith, Dr /Jane", + {"title": "Dr", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)", + notes="3.1 read given '/Jane'"), + Case("title_and_a_spaced_slash_before_a_third_part", + "Smith, Dr / Jane, Jr.", + {"title": "Dr", "given": "Jane", "family": "Smith", + "suffix": "Jr."}, + classification="fix(#1149)", + notes="the dropped slash moves the third part's indices"), + Case("title_with_a_slash_after_a_full_name_and_a_family_comma", + "Smith Jones, Dr/ Jane", + {"title": "Dr", "given": "Jane", "family": "Smith Jones"}, + classification="fix(#1149)"), + Case("arabic_title_with_a_slash_after_an_arabic_comma", + "أحمد علي، د/ منى", + {"title": "د", "given": "منى", "family": "أحمد علي"}, + classification="fix(#1149)", + notes="3.1 read given 'د/'"), + Case("latin_title_with_a_slash_family_first_given_last", + "Dr/ Jane Smith", + {"title": "Dr", "given": "Smith", "family": "Jane"}, + policy=Policy(name_order=FAMILY_FIRST_GIVEN_LAST), + classification="fix(#1149)", + notes="3.1 read family 'Dr/'"), + Case("title_listed_with_a_slash_before_a_spaced_slash", + "mag/judge / Jane Smith", + {"title": "mag/judge", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)", + notes="the title whole, its own slash no cut; 3.1 read given '/'"), + Case("title_listed_with_a_slash_before_a_glued_slash", + "mag/judge/ Jane Smith", + {"title": "mag/judge", "given": "Jane", "family": "Smith"}, + classification="fix(#1149)", + notes="3.1 read given 'mag/judge/'"), + Case("title_run_written_with_a_slash_keeps_its_word", + "Prof/ Dr Jane Smith", + {"given": "Prof/", "middle": "Dr Jane", "family": "Smith"}, + notes="boundary (#1149), accepted: a title after the slash is no " + "name, though here the slash joins a title run"), + Case("title_and_a_spaced_slash_before_a_family_comma", + "Dr / Smith, Jane", + {"title": "Dr", "given": "Jane", "family": "/ Smith"}, + classification="fix(#701)", + notes="boundary (#1149), accepted: T9 does not read the part " + "before a family comma, and H6 leaves the slash in the " + "surname; 1.4.0 through 2.4 read family 'Dr / Smith'"), + Case("two_roles_joined_by_a_slash_read_the_second_as_the_name", + "Director/Owner Jane Smith", + {"title": "Director", "given": "Owner", "middle": "Jane", + "family": "Smith"}, + classification="fix(#1149)", + notes="the accepted cost: 3.1 read given 'Director/Owner'"), + Case("title_with_a_slash_before_an_initial", "Dr/ J. Smith", + {"title": "Dr", "given": "J.", "family": "Smith"}, + classification="fix(#1149)", + notes="read as 'Dr. J. Smith' is: the name's full stop set aside " + "for its shape; 3.1 read given 'Dr/', middle 'J.'"), + Case("title_and_a_spaced_slash_before_an_initial", "Dr / J. Smith", + {"title": "Dr", "given": "J.", "family": "Smith"}, + classification="fix(#1149)", + notes="3.1 read given '/', middle 'J.'"), + Case("title_glued_to_an_initial_at_its_slash", "Dr/J. Smith", + {"title": "Dr", "given": "J.", "family": "Smith"}, + classification="fix(#1149)", + notes="3.1 read given 'Dr/J.'"), + Case("title_with_a_slash_before_an_initial_after_a_family_comma", + "Smith, Dr/ J.", + {"title": "Dr", "given": "J.", "family": "Smith"}, + classification="fix(#1149)", + notes="read as 'Smith, Dr. J.' is"), + Case("title_with_a_slash_before_a_given_name_written_short", + "Dr/ Wm. Smith", + {"title": "Dr", "given": "Wm.", "family": "Smith"}, + classification="fix(#1149)", + notes="read as 'Dr. Wm. Smith' is"), + Case("title_with_a_slash_before_muhammad_written_short", + "Dr/ Md. Smith", + {"title": "Dr", "given": "Md.", "family": "Smith"}, + classification="fix(#1149)", + notes="read as 'Dr. Md. Smith' is: a given name written short " + "is a name before it is a credential; 3.1 read given 'Dr/'"), + Case("title_glued_to_muhammad_written_short_after_a_family_comma", + "Smith, Dr/Md.", + {"title": "Dr", "family": "Smith", "suffix": "Md."}, + classification="fix(#1149)", + notes="read as 'Smith, Dr. Md.' is, the word ending the part " + "after the comma; 3.1 read given 'Dr/Md.'"), + Case("title_with_a_slash_before_md_in_capitals_keeps_its_word", + "Dr/ MD Smith", + {"given": "Dr/", "middle": "MD", "family": "Smith"}, + notes="boundary (#1149), accepted: in capitals the credential, " + "though 'Dr. MD Smith' reads given 'MD'"), + Case("title_glued_to_a_lone_name_before_a_suffix_comma", "Dr/Jane, PhD", + {"family": "Dr/Jane", "suffix": "PhD"}, + classification="fix(#296)", + notes="boundary (#1149), accepted: the comma is decided on the " + "undivided head, one word, so the head is no site, where " + "'Dr.Jane, PhD' reads title 'Dr.'; 1.4.0 through 2.1 read " + "title 'PhD'"), + Case("title_written_decomposed_with_a_slash", + unicodedata.normalize("NFD", "Señora/ Ana López"), + {"title": unicodedata.normalize("NFD", "Señora"), "given": "Ana", + "family": unicodedata.normalize("NFD", "López")}, + classification="fix(#1149)", + notes="the title-side NFD twin"), ) diff --git a/tests/v2/pipeline/test_script_segment.py b/tests/v2/pipeline/test_script_segment.py index 25a8e68bc..fc0bbbedd 100644 --- a/tests/v2/pipeline/test_script_segment.py +++ b/tests/v2/pipeline/test_script_segment.py @@ -1509,3 +1509,53 @@ def test_a_maiden_marker_ending_the_text_leaves_no_report(text: str) -> None: from nameparser import parse assert not [a for a in parse(text).ambiguities if "written short" in a.detail] + + +# rules/T9 (#1149): the slash after a title opening the name is cut off +# and its token dropped, every later index moving back by one +_DEFAULT = Lexicon.default() + + +def _through_script_segment(text: str) -> ParseState: + """The stages up to and including script_segment, extract's + included, which `_run` leaves out.""" + state = ParseState(original=text, lexicon=_DEFAULT, policy=Policy()) + for stage in STAGES[:STAGES.index(script_segment) + 1]: + state = stage(state) + return state + + +@pytest.mark.parametrize("text", [ + "Dr/ Jane Smith", "Dr/Jane Smith", "Dr / Jane Smith", "Dr /Jane Smith", +]) +def test_a_title_slash_leaves_no_slash_token_and_spans_index_the_original( + text: str) -> None: + state = _run(text, Policy(), _DEFAULT) + assert _texts(state) == ["Dr", "Jane", "Smith"] + assert all(text[t.span.start:t.span.end] == t.text for t in state.tokens) + assert state.segments == ((0, 1, 2),) + + +def test_a_dropped_slash_moves_the_later_report_indices_back() -> None: + # tokenize resolves the unbalanced bracket's report to the token + # holding it, the fourth; with the slash gone it is the fourth again + state = _through_script_segment("Dr / Jane Smith (") + assert _texts(state) == ["Dr", "Jane", "Smith", "("] + (report,) = state.ambiguities + assert report.indices == (3,) + + +def test_a_dropped_slash_leaves_a_nickname_out_of_the_segment() -> None: + state = _through_script_segment('Dr / "Bob" Jane Smith') + assert _texts(state) == ["Dr", "Bob", "Jane", "Smith"] + assert state.segments == ((0, 2, 3),) + + +def test_a_family_comma_reads_only_the_given_part() -> None: + state = _run("Dr/ Smith, Dr/ Jane", Policy(), _DEFAULT) + assert _texts(state) == ["Dr/", "Smith", "Dr", "Jane"] + + +def test_a_suffix_comma_reads_the_head() -> None: + state = _run("Dr/ Jane Smith, Jr.", Policy(), _DEFAULT) + assert _texts(state) == ["Dr", "Jane", "Smith", "Jr."] diff --git a/tests/v2/test_cases.py b/tests/v2/test_cases.py index 47ded8637..3f2b506ec 100644 --- a/tests/v2/test_cases.py +++ b/tests/v2/test_cases.py @@ -509,10 +509,13 @@ def test_the_field_sweep_sees_the_claims_it_checks() -> None: # suffix-or-name; 2205 -> 2208 the same day, #1464's 'Dr. Al Amin # Abdul Rahman' reporting particle-or-given; 2208 -> 2211 the same # day, #1149's 'جورج و. بوش' reporting given-or-family under three - # orders. - assert claims == 2211, ( - f"the field sweep checks {claims} claims, recorded as 2211 on " - f"2026-11-19") + # orders; 2211 -> 2214 on 2026-11-20, #1149's 'Dr/' (rules/T9's + # boundary, no name after the slash) reporting given-or-family under + # three orders; 2214 -> 2217 the same day, its review's 'Dr/ Dean + # Smith' reporting title-or-name under three orders. + assert claims == 2217, ( + f"the field sweep checks {claims} claims, recorded as 2217 on " + f"2026-11-20") #: The kinds that report a fork between two readings of a word, so carry diff --git a/tests/v2/test_layering.py b/tests/v2/test_layering.py index 23fe2238d..ce60a85e9 100644 --- a/tests/v2/test_layering.py +++ b/tests/v2/test_layering.py @@ -929,7 +929,14 @@ def test_the_check_finds_a_tool_read_through_an_alias( #: `_lexicon._fields_of` from 4i-b until 4i-c retired it. #: A reader added through `_sets` moves these, and they are re-taken #: then: they count what the check would refuse with the move undone. -_UNGUARDED_READS = {"library": 200, "tools": 35} +#: 200 -> 213 on 2026-11-20: rules/T9's slash division (#1149), its +#: two `sets = lexicon._sets` bindings, the titles and two suffix sets +#: the title before the slash is read against (saint_particles being no +#: `_VOCAB_FIELDS` field), and eight loads of six sets the name after it +#: is read against (the acronyms and their ambiguous set twice, as +#: stored and without their stops), and 213 -> 214 the same day, the +#: given names written short it reads as names first (`Md.`). +_UNGUARDED_READS = {"library": 214, "tools": 35} def test_the_check_refuses_every_read_4i_a_moved() -> None: diff --git a/tools/differential/corpus_rules.jsonl b/tools/differential/corpus_rules.jsonl index 1574c5bae..e7c9d6377 100644 --- a/tools/differential/corpus_rules.jsonl +++ b/tools/differential/corpus_rules.jsonl @@ -60,6 +60,7 @@ "3 del Carmen García" "A.B. Vajpayee" "A.M. Barrett, MD" +"A/Prof Jane Smith" "AARON 'T-BONE WALKER" "ABRAMOVICH Roman" "ABRAMOVICH Roman MBA" @@ -222,6 +223,7 @@ "CAMPBELL, MAJESTY BARRETT" "CASHION, JOHN (ST)" "CHENG GUI Y" +"CPO/L Jane Smith" "Carod i" "Carod i Rovira, Josep" "Carod y de Rovira i" @@ -274,6 +276,7 @@ "Dean of Students Jane Smith" "Dean. Smith" "Dean. and Mary Smith" +"Dean/ Jane Smith" "Del Toro" "Devi a/p Muthu" "Dipl.-Kfm. Dalimil Ospalý" @@ -383,6 +386,16 @@ "Dr.McDonald Jones" "Dr.Smith" "Dr.med. Lukas Mayer" +"Dr/ Dean Smith" +"Dr/ Ed Smith" +"Dr/ J. Smith" +"Dr/ Jane Smith" +"Dr/ MD Smith" +"Dr/ Md. Smith" +"Dr/ Smith, Jane" +"Dr/Jane Smith" +"Dr/MD Jane Smith" +"Dr/Mrs Jane Smith" "Duke of Edinburgh" "Dumas VI MD, Ed" "Dumas VI, Jr." @@ -581,6 +594,7 @@ "JUAN GARCIA Jr." "JUAN GARCIA Y LOPEZ" "JUAN STA. MARIA REYES" +"JURIST/KOVAC, DANIEL/KAREN" "Jack (M.A)" "Jack (PhD)" "Jack I-V" @@ -679,6 +693,7 @@ "Jane Doe, ST, PhD" "Jane Doe, VI, PhD" "Jane Doe, m.h., PhD" +"Jane Dr/ Smith" "Jane Mary Doe, M.H., PhD" "Jane Mary Doe, MH, PhD" "Jane Roe, MD.MS" @@ -694,11 +709,14 @@ "Jane Smith CCC-SLP/L" "Jane Smith CCC/SLP/L" "Jane Smith CPNP-PC/AC" +"Jane Smith Dr/" "Jane Smith MA-CCC-SLP" "Jane Smith MA/CCC-SLP" +"Jane Smith MD/PhD" "Jane Smith MS-OTR/L" "Jane Smith MS/CCC-A" "Jane Smith MS/OTR/L" +"Jane Smith OTR/L" "Jane Smith OTR/L/X" "Jane Smith PhD/NP-C" "Jane Smith SLP-M.A" @@ -708,6 +726,7 @@ "Jane Smith née Jones, PhD" "Jane Smith née PhD" "Jane Smith née V" +"Jane Smith, Dr / PhD" "Jane Smith, PhD/NP-C" "Jane Smith, née Jones" "Jane Smith-NP-C" @@ -1185,6 +1204,7 @@ "King Henry" "Kofi Junior" "Konstantin VII." +"Kumar a/l Rajan" "Kumar a/l Rajan Naidu" "LAKSHMI R S" "LE GRAND Hugo" @@ -1366,6 +1386,7 @@ "Mr Tariq Abdul Aziz" "Mr Wing Lau" "Mr and Mrs St.Clair" +"Mr. Dr/ Jane Smith" "Mr. Jack Jill" "Mr. Jack and Jill" "Mr. Johnson" @@ -1378,6 +1399,7 @@ "Mrs. Garcia" "Ms Princess Smith" "Ms Queen Smith" +"Ms/ Jane Smith" "Mt. Pleasant, Jane" "MÜLLER WEIß, HANS" "Ménil Christophe de" @@ -1464,6 +1486,7 @@ "Prof. Dr. Brühl, Ada" "Prof. Smith, Dr. John" "Prof. Smith, John, PhD" +"Prof/Jane Smith" "Puig i V, Joan" "Putra, Anak Agung Made" "Pérez José Luis" @@ -1630,6 +1653,7 @@ "Smith, Dr. Jr." "Smith, Dr. Md" "Smith, Dr.John" +"Smith, Dr/ Jane" "Smith, E.T." "Smith, Esq." "Smith, Esq. John" @@ -1741,6 +1765,7 @@ "St de Mesnil Jean V" "St van Bishop" "St.John Price" +"St/ John Smith" "Sta. Maria, Juan" "Stariji Bruegel" "Steven Hardman, MD, DO, DDS" @@ -1958,6 +1983,7 @@ "le Van Thanh" "lt.gov john doe" "m.ʿali smith" +"mag/judge / Jane Smith" "maria da-silva" "maria silva-e-sousa" "mohamad ali smith" @@ -2022,12 +2048,18 @@ "סאמר בן חליל" "، عز الدين" "أ.د.أحمد علي" +"أ.د/ أحمد علي" "أبو نور الدين سامر" "أحمد علي حسن" "أحمد م. علي" "الدكتور عز الدين" +"اللواء/ أحمد علي" "جورج بوش الابن" +"د / أحمد علي" +"د /أحمد علي" "د.أحمد علي حسن" +"د/ أحمد علي" +"د/أحمد علي حسن" "سامر بن الله" "سامر ذو الغنى" "سامر عز الدين" diff --git a/tools/differential/snapshot.jsonl b/tools/differential/snapshot.jsonl index c96a8535c..3ba3c5ea5 100644 --- a/tools/differential/snapshot.jsonl +++ b/tools/differential/snapshot.jsonl @@ -80,6 +80,7 @@ {"name": "A. R., Sr. de la Cruz Maria García Rosa Jr.", "order": "FAMILY_FIRST", "title": "Sr.", "family": "A. R. de la Cruz Maria García Rosa", "suffix": "Jr.", "initials": "A. R. C. M. G. R.", "generation": "Jr."} {"name": "A.B. Vajpayee", "given": "A.", "middle": "B.", "family": "Vajpayee", "initials": "A. B. V."} {"name": "A.M. Barrett, MD", "given": "A.", "middle": "M.", "family": "Barrett", "suffix": "MD", "initials": "A. M. B."} +{"name": "A/Prof Jane Smith", "given": "A/Prof", "middle": "Jane", "family": "Smith", "initials": "A. J. S."} {"name": "AARON 'T-BONE WALKER", "given": "AARON", "middle": "'T-BONE", "family": "WALKER", "initials": "A. '. W.", "capitalized": "Aaron 't-Bone Walker"} {"name": "ABRAMOVICH Roman", "given": "ABRAMOVICH", "family": "Roman", "initials": "A. R.", "capitalized_force": "Abramovich Roman"} {"name": "ABRAMOVICH Roman MBA", "given": "ABRAMOVICH", "family": "Roman", "suffix": "MBA", "initials": "A. R.", "capitalized_force": "Abramovich Roman MBA"} @@ -601,6 +602,7 @@ {"name": "CAMPBELL, MAJESTY BARRETT", "given": "MAJESTY", "middle": "BARRETT", "family": "CAMPBELL", "initials": "M. B. C.", "capitalized": "Majesty Barrett Campbell"} {"name": "CASHION, JOHN (ST)", "title": "ST", "given": "JOHN", "family": "CASHION", "initials": "J. C.", "capitalized": "St John Cashion"} {"name": "CHENG GUI Y", "given": "CHENG", "middle": "GUI", "family": "Y", "initials": "C. G. Y.", "capitalized": "Cheng Gui y"} +{"name": "CPO/L Jane Smith", "given": "CPO/L", "middle": "Jane", "family": "Smith", "initials": "C. J. S.", "capitalized_force": "Cpo/L Jane Smith"} {"name": "Caballero Calderón, Eduardo", "given": "Eduardo", "family": "Caballero Calderón", "initials": "E. C. C."} {"name": "Caduff, Aita", "given": "Aita", "family": "Caduff", "initials": "A. C."} {"name": "Caduff, Aita", "order": "FAMILY_FIRST", "given": "Aita", "family": "Caduff", "initials": "A. C."} @@ -788,6 +790,7 @@ {"name": "Dean. Robert Johns", "title": "Dean.", "given": "Robert", "family": "Johns", "initials": "R. J."} {"name": "Dean. Smith", "title": "Dean.", "family": "Smith", "initials": "S."} {"name": "Dean. and Mary Smith", "given": "Dean. and Mary", "family": "Smith", "initials": "D. M. S."} +{"name": "Dean/ Jane Smith", "given": "Dean/", "middle": "Jane", "family": "Smith", "initials": "D. J. S."} {"name": "Del Toro", "given": "Del", "family": "Toro", "ambiguities": ["PARTICLE_OR_GIVEN"], "alternatives": ["PARTICLE_OR_GIVEN: particle as family (vocabulary)"], "initials": "D. T."} {"name": "Del toro", "given": "Del", "family": "toro", "ambiguities": ["PARTICLE_OR_GIVEN"], "alternatives": ["PARTICLE_OR_GIVEN: particle as family (vocabulary)"], "initials": "D. t.", "capitalized_force": "Del Toro"} {"name": "Della Reese", "given": "Della", "family": "Reese", "ambiguities": ["PARTICLE_OR_GIVEN"], "alternatives": ["PARTICLE_OR_GIVEN: particle as family (vocabulary)"], "initials": "D. R."} @@ -1058,6 +1061,16 @@ {"name": "Dr.Smith", "title": "Dr.", "family": "Smith", "initials": "S."} {"name": "Dr.med. Lukas Mayer", "title": "Dr.med.", "given": "Lukas", "family": "Mayer", "initials": "L. M.", "capitalized_force": "Dr.Med. Lukas Mayer"} {"name": "Dr.philol. Laima Kristīne Eva Sofija van den Volfa Bērziņa-Kalniņa", "title": "Dr.philol.", "given": "Laima", "middle": "Kristīne Eva Sofija", "family": "van den Volfa Bērziņa-Kalniņa", "initials": "L. K. E. S. V. B.", "capitalized_force": "Dr.Philol. Laima Kristīne Eva Sofija van den Volfa Bērziņa-Kalniņa"} +{"name": "Dr/ Dean Smith", "title": "Dr", "given": "Dean", "family": "Smith", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "D. S."} +{"name": "Dr/ Ed Smith", "title": "Dr", "given": "Ed", "family": "Smith", "initials": "E. S."} +{"name": "Dr/ J. Smith", "title": "Dr", "given": "J.", "family": "Smith", "initials": "J. S."} +{"name": "Dr/ Jane Smith", "title": "Dr", "given": "Jane", "family": "Smith", "initials": "J. S."} +{"name": "Dr/ MD Smith", "given": "Dr/", "middle": "MD", "family": "Smith", "initials": "D. M. S.", "capitalized_force": "Dr/ Md Smith"} +{"name": "Dr/ Md. Smith", "title": "Dr", "given": "Md.", "family": "Smith", "initials": "M. S."} +{"name": "Dr/ Smith, Jane", "given": "Jane", "family": "Dr/ Smith", "initials": "J. D. S."} +{"name": "Dr/Jane Smith", "title": "Dr", "given": "Jane", "family": "Smith", "initials": "J. S."} +{"name": "Dr/MD Jane Smith", "given": "Dr/MD", "middle": "Jane", "family": "Smith", "initials": "D. J. S.", "capitalized_force": "Dr/Md Jane Smith"} +{"name": "Dr/Mrs Jane Smith", "given": "Dr/Mrs", "middle": "Jane", "family": "Smith", "initials": "D. J. S."} {"name": "Dra. Andréia da Silva", "title": "Dra.", "given": "Andréia", "family": "da Silva", "initials": "A. S."} {"name": "Dra. Erika Cornelia Anna Isabelle von Brül Cabral de Melo II", "title": "Dra.", "given": "Erika", "middle": "Cornelia Anna Isabelle von Brül Cabral", "family": "de Melo", "suffix": "II", "initials": "E. C. A. I. B. C. M.", "generation": "II"} {"name": "Drífa Viðar", "given": "Drífa", "family": "Viðar", "initials": "D. V."} @@ -1735,6 +1748,7 @@ {"name": "JUAN GARCIA Y LOPEZ", "given": "JUAN", "family": "GARCIA Y LOPEZ", "initials": "J. G. L.", "capitalized": "Juan Garcia y Lopez"} {"name": "JUAN STA. MARIA REYES", "given": "JUAN", "family": "STA. MARIA REYES", "initials": "J. M. R.", "capitalized": "Juan Sta. Maria Reyes"} {"name": "JUAN Y GARCIA", "given": "JUAN", "middle": "Y", "family": "GARCIA", "initials": "J. Y. G.", "capitalized": "Juan y Garcia"} +{"name": "JURIST/KOVAC, DANIEL/KAREN", "given": "DANIEL/KAREN", "family": "JURIST/KOVAC", "initials": "D. J.", "capitalized": "Daniel/Karen Jurist/Kovac"} {"name": "Jaak Eerik Kask", "given": "Jaak", "middle": "Eerik", "family": "Kask", "initials": "J. E. K."} {"name": "Jacinto López Moreno", "given": "Jacinto", "middle": "López", "family": "Moreno", "initials": "J. L. M."} {"name": "Jack", "given": "Jack", "ambiguities": ["GIVEN_OR_FAMILY"], "alternatives": ["GIVEN_OR_FAMILY: name as family (position)"], "initials": "J."} @@ -1883,6 +1897,7 @@ {"name": "Jane Doe, ST, PhD", "title": "ST", "given": "Jane", "family": "Doe", "suffix": "PhD", "initials": "J. D.", "capitalized_force": "St Jane Doe PhD"} {"name": "Jane Doe, VI, PhD", "given": "Jane", "family": "Doe", "suffix": "VI, PhD", "ambiguities": ["SUFFIX_OR_NAME"], "alternatives": ["SUFFIX_OR_NAME: name as given (position)"], "initials": "J. D.", "generation": "VI", "credentials": "PhD"} {"name": "Jane Doe, m.h., PhD", "given": "m.h.", "family": "Jane Doe", "suffix": "PhD", "ambiguities": ["SUFFIX_OR_NAME"], "alternatives": ["SUFFIX_OR_NAME: credential as suffix (shape)"], "initials": "m. J. D.", "capitalized_force": "M.H. Jane Doe PhD"} +{"name": "Jane Dr/ Smith", "given": "Jane", "middle": "Dr/", "family": "Smith", "initials": "J. D. S."} {"name": "Jane Mac Beth", "given": "Jane", "family": "Mac Beth", "initials": "J. B.", "capitalized_force": "Jane mac Beth"} {"name": "Jane Mary Doe, M.H., PhD", "given": "Jane", "middle": "Mary", "family": "Doe", "suffix": "M.H., PhD", "ambiguities": ["SUFFIX_OR_NAME"], "alternatives": ["SUFFIX_OR_NAME: name as given (position)"], "initials": "J. M. D."} {"name": "Jane Mary Doe, MH, PhD", "given": "Jane", "middle": "Mary", "family": "Doe", "suffix": "MH, PhD", "ambiguities": ["SUFFIX_OR_NAME"], "alternatives": ["SUFFIX_OR_NAME: name as given (position)"], "initials": "J. M. D."} @@ -1901,11 +1916,14 @@ {"name": "Jane Smith CCC-SLP/L", "given": "Jane", "family": "Smith", "suffix": "CCC-SLP/L", "initials": "J. S."} {"name": "Jane Smith CCC/SLP/L", "given": "Jane", "family": "Smith", "suffix": "CCC/SLP/L", "initials": "J. S."} {"name": "Jane Smith CPNP-PC/AC", "given": "Jane", "middle": "Smith", "family": "CPNP-PC/AC", "initials": "J. S. C.", "capitalized_force": "Jane Smith Cpnp-PC/Ac"} +{"name": "Jane Smith Dr/", "given": "Jane", "middle": "Smith", "family": "Dr/", "initials": "J. S. D."} {"name": "Jane Smith MA-CCC-SLP", "given": "Jane", "family": "Smith", "suffix": "MA-CCC-SLP", "initials": "J. S."} {"name": "Jane Smith MA/CCC-SLP", "given": "Jane", "family": "Smith", "suffix": "MA/CCC-SLP", "initials": "J. S."} +{"name": "Jane Smith MD/PhD", "given": "Jane", "family": "Smith", "suffix": "MD/PhD", "initials": "J. S."} {"name": "Jane Smith MS-OTR/L", "given": "Jane", "family": "Smith", "suffix": "MS-OTR/L", "initials": "J. S."} {"name": "Jane Smith MS/CCC-A", "given": "Jane", "family": "Smith", "suffix": "MS/CCC-A", "initials": "J. S."} {"name": "Jane Smith MS/OTR/L", "given": "Jane", "family": "Smith", "suffix": "MS/OTR/L", "initials": "J. S."} +{"name": "Jane Smith OTR/L", "given": "Jane", "family": "Smith", "suffix": "OTR/L", "initials": "J. S."} {"name": "Jane Smith OTR/L/X", "given": "Jane", "middle": "Smith", "family": "OTR/L/X", "initials": "J. S. O.", "capitalized_force": "Jane Smith Otr/L/X"} {"name": "Jane Smith PhD/NP-C", "given": "Jane", "family": "Smith", "suffix": "PhD/NP-C", "initials": "J. S."} {"name": "Jane Smith SLP-M.A", "given": "Jane", "family": "Smith", "suffix": "SLP-M.A", "initials": "J. S."} @@ -1916,6 +1934,7 @@ {"name": "Jane Smith née Jones, PhD", "given": "Jane", "family": "Smith", "suffix": "PhD", "maiden": "Jones", "initials": "J. S."} {"name": "Jane Smith née PhD", "given": "Jane", "middle": "Smith", "family": "née", "suffix": "PhD", "initials": "J. S. n.", "capitalized_force": "Jane Smith Née PhD"} {"name": "Jane Smith née V", "given": "Jane", "family": "Smith", "maiden": "V", "initials": "J. S."} +{"name": "Jane Smith, Dr / PhD", "title": "Dr", "given": "Jane", "family": "Smith", "suffix": "PhD", "initials": "J. S."} {"name": "Jane Smith, PhD/NP-C", "given": "Jane", "family": "Smith", "suffix": "PhD/NP-C", "initials": "J. S."} {"name": "Jane Smith, née Jones", "given": "née", "middle": "Jones", "family": "Jane Smith", "initials": "n. J. J. S.", "capitalized_force": "Née Jones Jane Smith"} {"name": "Jane Smith-NP-C", "given": "Jane", "family": "Smith-NP-C", "initials": "J. S.", "capitalized_force": "Jane Smith-Np-C"} @@ -2789,6 +2808,7 @@ {"name": "Krosigk, Johann Adolf von", "given": "Johann", "middle": "Adolf", "family": "von Krosigk", "ambiguities": ["PARTICLE_OR_GIVEN"], "alternatives": ["PARTICLE_OR_GIVEN: name as middle (declared)"], "initials": "J. A. K."} {"name": "Kulina, Hana", "given": "Hana", "family": "Kulina", "initials": "H. K."} {"name": "Kulina, Hana", "order": "FAMILY_FIRST", "given": "Hana", "family": "Kulina", "initials": "H. K."} +{"name": "Kumar a/l Rajan", "given": "Kumar", "family": "a/l Rajan", "initials": "K. R.", "patronymic": "a/l Rajan"} {"name": "Kumar a/l Rajan Naidu", "given": "Kumar", "family": "a/l Rajan Naidu", "initials": "K. R. N.", "patronymic": "a/l Rajan Naidu"} {"name": "Kusmanek, Hermann von", "given": "Hermann", "family": "von Kusmanek", "ambiguities": ["PARTICLE_OR_GIVEN"], "alternatives": ["PARTICLE_OR_GIVEN: name as middle (declared)"], "initials": "H. K."} {"name": "Kállai, Gábor", "given": "Gábor", "family": "Kállai", "initials": "G. K."} @@ -3326,6 +3346,7 @@ {"name": "Mr. & Mrs. John Smith", "title": "Mr. & Mrs.", "given": "John", "family": "Smith", "initials": "J. S."} {"name": "Mr. Bertram Wilberforce Henry Robert Wooster Jr, MP", "title": "Mr.", "given": "Bertram", "middle": "Wilberforce Henry Robert", "family": "Wooster", "suffix": "Jr, MP", "initials": "B. W. H. R. W.", "generation": "Jr", "credentials": "MP"} {"name": "Mr. Bertram Wilberforce Henry Robert Wooster MP", "title": "Mr.", "given": "Bertram", "middle": "Wilberforce Henry Robert", "family": "Wooster", "suffix": "MP", "initials": "B. W. H. R. W."} +{"name": "Mr. Dr/ Jane Smith", "title": "Mr.", "given": "Dr/", "middle": "Jane", "family": "Smith", "initials": "D. J. S."} {"name": "Mr. Francisco Xavier Joao Anton de Souza e Menezes Dk, MP", "title": "Mr.", "given": "Francisco", "middle": "Xavier Joao Anton", "family": "de Souza e Menezes Dk", "suffix": "MP", "initials": "F. X. J. A. S. M. D."} {"name": "Mr. Jack Jill", "title": "Mr.", "given": "Jack", "family": "Jill", "initials": "J. J."} {"name": "Mr. Jack and Jill", "title": "Mr.", "family": "Jack and Jill", "initials": "J. J."} @@ -3346,6 +3367,7 @@ {"name": "Ms Princess Smith", "title": "Ms", "given": "Princess", "family": "Smith", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "P. S."} {"name": "Ms Queen Smith", "title": "Ms", "given": "Queen", "family": "Smith", "ambiguities": ["TITLE_OR_NAME"], "alternatives": ["TITLE_OR_NAME: title as title (vocabulary)"], "initials": "Q. S."} {"name": "Ms. Rebecca Teichman", "title": "Ms.", "given": "Rebecca", "family": "Teichman", "initials": "R. T."} +{"name": "Ms/ Jane Smith", "given": "Ms/", "middle": "Jane", "family": "Smith", "initials": "M. J. S."} {"name": "Mt. Pleasant, Jane", "given": "Jane", "family": "Mt. Pleasant", "initials": "J. M. P."} {"name": "Mudane Bertram Wilberforce Henry Robert Wooster MP", "given": "Mudane", "middle": "Bertram Wilberforce Henry Robert", "family": "Wooster", "suffix": "MP", "initials": "M. B. W. H. R. W."} {"name": "Mueller Kathy", "order": "FAMILY_FIRST", "given": "Kathy", "family": "Mueller", "initials": "K. M."} @@ -3666,6 +3688,7 @@ {"name": "Prof. dr. MD Chirurgie dentară Eva-Eleonora Karl Hans von der Ruhr Jr.", "title": "Prof. dr.", "given": "MD", "middle": "Chirurgie dentară Eva-Eleonora Karl Hans", "family": "von der Ruhr", "suffix": "Jr.", "initials": "M. C. d. E. K. H. R.", "capitalized_force": "Prof. Dr. Md Chirurgie Dentară Eva-Eleonora Karl Hans von der Ruhr Jr.", "generation": "Jr."} {"name": "Prof. Ɖr. MƉ Samʊwɛl fan ƉAM Fostɛɛŋ", "title": "Prof. Ɖr.", "given": "MƉ", "middle": "Samʊwɛl fan ƉAM", "family": "Fostɛɛŋ", "initials": "M. S. f. Ɖ. F.", "capitalized_force": "Prof. Ɖr. Mɖ Samʊwɛl Fan Ɖam Fostɛɛŋ"} {"name": "Prof. Ɖr. MƉ fan ƉAM ƉOMIŊGO Fostɛɛŋ Samʊwɛl", "order": "FAMILY_FIRST", "title": "Prof. Ɖr.", "given": "fan", "middle": "ƉAM ƉOMIŊGO Fostɛɛŋ Samʊwɛl", "family": "MƉ", "initials": "f. Ɖ. Ɖ. F. S. M.", "capitalized_force": "Prof. Ɖr. Mɖ Fan Ɖam Ɖomiŋgo Fostɛɛŋ Samʊwɛl"} +{"name": "Prof/Jane Smith", "title": "Prof", "given": "Jane", "family": "Smith", "initials": "J. S."} {"name": "Prop. Dr. Ada Cornelia César Martín von Brühl González Domingo MD DDS", "title": "Prop. Dr.", "given": "Ada", "middle": "Cornelia César Martín", "family": "von Brühl González Domingo", "suffix": "MD DDS", "initials": "A. C. C. M. B. G. D."} {"name": "Puig i V, Joan", "given": "Joan", "family": "Puig i V", "initials": "J. P. V."} {"name": "Putra, Anak Agung Made", "given": "Anak", "middle": "Agung Made", "family": "Putra", "initials": "A. A. M. P."} @@ -4085,6 +4108,7 @@ {"name": "Smith, Dr. Jr.", "title": "Dr.", "family": "Smith", "suffix": "Jr.", "initials": "S.", "generation": "Jr."} {"name": "Smith, Dr. Md", "title": "Dr.", "family": "Smith", "suffix": "Md", "initials": "S.", "capitalized_force": "Dr. Smith MD"} {"name": "Smith, Dr.John", "title": "Dr.John", "family": "Smith", "initials": "S."} +{"name": "Smith, Dr/ Jane", "title": "Dr", "given": "Jane", "family": "Smith", "initials": "J. S."} {"name": "Smith, E.S.Q.", "given": "E.", "middle": "S.Q.", "family": "Smith", "ambiguities": ["SUFFIX_OR_NAME"], "alternatives": ["SUFFIX_OR_NAME: credential as suffix (shape)"], "initials": "E. S. Q. S."} {"name": "Smith, E.T.", "given": "E.", "middle": "T.", "family": "Smith", "ambiguities": ["SUFFIX_OR_NAME"], "alternatives": ["SUFFIX_OR_NAME: credential as suffix (shape)"], "initials": "E. T. S."} {"name": "Smith, E.T., Jr.", "given": "E.", "middle": "T.", "family": "Smith", "suffix": "Jr.", "ambiguities": ["SUFFIX_OR_NAME"], "alternatives": ["SUFFIX_OR_NAME: credential as suffix (shape)"], "initials": "E. T. S.", "generation": "Jr."} @@ -4245,6 +4269,7 @@ {"name": "St de Mesnil Jean V", "title": "St", "family": "de Mesnil Jean V", "ambiguities": ["SUFFIX_OR_NAME"], "alternatives": ["SUFFIX_OR_NAME: generation as suffix (vocabulary)"], "initials": "M. J. V."} {"name": "St van Bishop", "title": "St", "family": "van Bishop", "ambiguities": ["PARTICLE_OR_GIVEN", "TITLE_OR_NAME"], "alternatives": ["PARTICLE_OR_GIVEN: name as given (declared)", "TITLE_OR_NAME: title as title (vocabulary)"], "initials": "B."} {"name": "St.John Price", "given": "St.John", "family": "Price", "initials": "S. P."} +{"name": "St/ John Smith", "given": "St/", "middle": "John", "family": "Smith", "initials": "S. J. S."} {"name": "Sta. Maria, Juan", "given": "Juan", "family": "Sta. Maria", "initials": "J. M."} {"name": "Stander Zelda Herman", "order": "FAMILY_FIRST", "given": "Zelda", "middle": "Herman", "family": "Stander", "initials": "Z. H. S."} {"name": "Stander, Zelda Herman", "given": "Zelda", "middle": "Herman", "family": "Stander", "initials": "Z. H. S."} @@ -4921,6 +4946,7 @@ {"name": "m.d ph.d. von Wolf Inger Marie Adele Synnøve", "order": "FAMILY_FIRST", "given": "ph.d.", "middle": "von Wolf Inger Marie Adele Synnøve", "family": "m.d", "initials": "p. W. I. M. A. S. m.", "capitalized_force": "M.D Ph.D. von Wolf Inger Marie Adele Synnøve"} {"name": "m.ʿali smith", "given": "m.ʿali", "family": "smith", "initials": "m. s.", "capitalized": "M.ʿAli Smith"} {"name": "mack johnson", "given": "mack", "family": "johnson", "initials": "m. j.", "capitalized": "Mack Johnson"} +{"name": "mag/judge / Jane Smith", "title": "mag/judge", "given": "Jane", "family": "Smith", "initials": "J. S.", "capitalized_force": "Mag/Judge Jane Smith"} {"name": "maria da-silva", "given": "maria", "family": "da-silva", "initials": "m. d.", "capitalized": "Maria Da-Silva"} {"name": "maria silva-e-sousa", "given": "maria", "family": "silva-e-sousa", "initials": "m. s.", "capitalized": "Maria Silva-e-Sousa"} {"name": "matthëus schmidt", "given": "matthëus", "family": "schmidt", "initials": "m. s.", "capitalized": "Matthëus Schmidt"} @@ -6004,6 +6030,7 @@ {"name": "آمال فهمي", "given": "آمال", "family": "فهمي"} {"name": "آیتین عدلو", "given": "آیتین", "family": "عدلو"} {"name": "أ.د.أحمد علي", "title": "أ.د.", "given": "أحمد", "family": "علي"} +{"name": "أ.د/ أحمد علي", "title": "أ.د", "given": "أحمد", "family": "علي"} {"name": "أبو الأغا، أحمد رامي نجيب محفوظ", "order": "FAMILY_FIRST", "given": "أحمد", "middle": "رامي نجيب محفوظ", "family": "أبو الأغا"} {"name": "أبو بكر الشاطري", "given": "أبو بكر", "family": "الشاطري"} {"name": "أبو بكر سالم", "given": "أبو بكر", "family": "سالم"} @@ -6051,6 +6078,7 @@ {"name": "الدكتور عز الدين", "title": "الدكتور", "given": "عز الدين"} {"name": "السيد أحمد رامي نجيب محفوظ أبو الأغا الابن، النائب", "given": "النائب", "family": "السيد أحمد رامي نجيب محفوظ أبو الأغا", "suffix": "الابن", "generation": "الابن"} {"name": "العامر، كمال مجدي", "order": "FAMILY_FIRST", "given": "كمال", "middle": "مجدي", "family": "العامر"} +{"name": "اللواء/ أحمد علي", "title": "اللواء", "given": "أحمد", "family": "علي"} {"name": "النجار، سميرة", "order": "FAMILY_FIRST", "given": "سميرة", "family": "النجار"} {"name": "امید رضا ملایری", "given": "امید", "middle": "رضا", "family": "ملایری"} {"name": "انو آغا", "given": "انو", "family": "آغا"} @@ -6095,7 +6123,11 @@ {"name": "خان مریم نواز", "order": "FAMILY_FIRST", "given": "مریم", "middle": "نواز", "family": "خان"} {"name": "خان، مریم نواز", "order": "FAMILY_FIRST", "given": "مریم", "middle": "نواز", "family": "خان"} {"name": "خضر الأحمد", "given": "خضر", "family": "الأحمد"} +{"name": "د / أحمد علي", "title": "د", "given": "أحمد", "family": "علي"} +{"name": "د /أحمد علي", "title": "د", "given": "أحمد", "family": "علي"} {"name": "د.أحمد علي حسن", "title": "د.", "given": "أحمد", "middle": "علي", "family": "حسن"} +{"name": "د/ أحمد علي", "title": "د", "given": "أحمد", "family": "علي"} +{"name": "د/أحمد علي حسن", "title": "د", "given": "أحمد", "middle": "علي", "family": "حسن"} {"name": "دلیپ کور ٹوانہ", "given": "دلیپ", "middle": "کور", "family": "ٹوانہ"} {"name": "رائد المتني", "given": "رائد", "family": "المتني"} {"name": "رامي مخلوف", "given": "رامي", "family": "مخلوف"}