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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/design/decisions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
20 changes: 20 additions & 0 deletions docs/design/decisions/T9-slash-written-for-a-titles-full-stop.md
Original file line number Diff line number Diff line change
@@ -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 <master checkout>`, 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 <master checkout>`, and the records by `local_agreement.py orcid-researchers --base <master checkout> --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.
4 changes: 2 additions & 2 deletions docs/design/decisions/script-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a checkout of 667828ae>`.
Loading