diff --git a/docs/design/decisions/O4-positional-assignment-and-declared-order.md b/docs/design/decisions/O4-positional-assignment-and-declared-order.md index 7e6623bf9..44757e4d4 100644 --- a/docs/design/decisions/O4-positional-assignment-and-declared-order.md +++ b/docs/design/decisions/O4-positional-assignment-and-declared-order.md @@ -7,6 +7,7 @@ - Free-form order tuples are declined (#270's draft shape; the decline is the log's undated Declined line, which no dated entry records): a tuple of strings raises `name_order elements must be Role members` (rules/D2) and a two-role tuple `name_order must be one of the exported orders` — 2026-08-07 #146. - `middle_as_family` is declined as the way to drop Vietnamese middles, giving family 'Thị Minh Nguyễn' for `Nguyễn Thị Minh Khai` under FAMILY_FIRST_GIVEN_LAST; `given_names` is the view that stays correct — 2026-08-07 #146. - One name word followed by nothing but initials reports `order`, the reserved kind, with no alternative, under the given-first order, default or declared, with no family comma and `initials_as_family` off; capitals written as one word with no full stops (`Armitage JO`) do not count as initials there — 2026-11-11 #1254. +- A source may mix orders name by name, and the spelling does not reliably say which it is written in: the order comes from outside the name (a field of the source, or its capitals under `capitals_as_family`), and `Parser.suggest` cannot supply it, suggesting none where neither order holds the share it needs and otherwise the order of the names carrying more of the evidence; documented, not detected — 2026-11-19 #1183. Elsewhere: a name with no inherited family name, read by position under this file's order, and its matching recipe, decisions/family-without-an-inherited-name. @@ -14,6 +15,10 @@ Open: none in this file. ## Log +- 2026-11-19 #1183, decided 2026-11-19 — A SOURCE CAN MIX ORDERS, AND THE USER DOCS SAY SO. Docs only; no reading moves. docs/policy.rst's name-order section gains "A list that mixes orders" and a second example of the order describing the source, and its "Names with a compound given name" section a Chinese example of `two_given_names` under `FAMILY_FIRST` (`Tan Wei Ming`: given `Wei`, middle `Ming`; with the switch, given `Wei Ming`) and a pointer to `Parser.suggest`, which decides the order of a list written family first throughout and never suggests `two_given_names` (whether it should is a candidate on #1452). + - Singapore, measured 2026-11-08 on master ccaf6ad9 (the issue's table): Parliament's list of current members, 107 names, 77 with a Chinese surname, of which 76 fall in four shapes (the issue's method, read by hand from the published list); 27 written given first (the default reads all 27 right, `FAMILY_FIRST` with `two_given_names` none), 33 family first (0 and 32), 13 an English name then the Chinese name family first (0 and 0, #1181), 3 the English name last (0 and 3, the English name in `middle`). No one setting reads the list. + - Malaysia, counted 2026-11-19 on `my-candidates` (fetched that day, 3,077 distinct names): the distinct names the lists state as Chinese candidates' are 504, of which 344 are three words of letters and apostrophes; 3 of those open with a title (`DATO`, `DATUK`, `PROF`), two of them (`DATUK`, `PROF`) before an English given name written first, and of the other 341, 339 are a Chinese name written family first, the two others an English given name before a Chinese name written family first (the shape `GRACE TAN WEI`) and a name of no Chinese shape. None is a Chinese name written given first. The lists mix orders all the same: 66 of the 504 are two words split on spaces, most an English given name before the surname, written given first (the shape `GRACE TAN`), and some longer names open with an English name or initials. The issue's count of the same day, 347 of 348, was taken over another cut of the same lists and finds the same. Recompute: `raw.jsonl` rows with `ethnicity` `chinese`, distinct `name`, matching `[A-Z']+ [A-Z']+ [A-Z'-]+` whole (`re.fullmatch`), read by hand for the title, the English name and the family's position; the two-word count splits the distinct names on spaces. `Parser().suggest` over the 504 suggests no order (`PolicyPatch()`: `158 for, 154 against, 192 no evidence`), many family-first names casting given-first surname votes on a final syllable the surname table lists (`LEONG`, `KOK`); over the 339 family-first names alone it suggests `FAMILY_FIRST` (2026-11-19). On invented lists in Singapore's proportions (27 ` `, 33 ` `, 13 ` `, 3 ` `) the answer depends on the names drawn: one draw of ten surnames and five given names suggests none (40 for, 36 against), while a reviewer's thirty draws of other surnames and given names each decided `GIVEN_FIRST` (one of them 46 for, 15 against), the English given names voting, and a second reviewer's eight draws decided it twice and suggested none six times (33 to 38 for, 17 to 25 against); it was not run on the real list. So the user docs say only that it cannot supply the order of a mixed list. + - **2026-11-11 #1254 — ONE NAME WORD FOLLOWED BY NOTHING BUT INITIALS REPORTS THE ORDER, IN THE RESERVED `ORDER` KIND.** The default given-first order reads `Armitage J. O.` as given `Armitage`, a bibliography writes it surname first, and a South Asian list writes `Lakshmi R S` with the letters as the family (rules/O8); #1137 measured surname first as the 2 to 1 majority of ORCID's credit names of one word and initials, and the 3.1 cycle's session notes hold the per-shape counts (decisions/O8's entry). The default stays, so the fork is reported: assign, which lays the name out by position, emits it where it does so. It names no alternative (the #1348 review): the other reading lays out the whole name, the word in front the family and the letters the given and middle initials, which no one word's other role names, so a single-word alternative was a hybrid the parser never produces, and the name match tried it (`Smith J.` stayed inconsistent with `John Smith` while `Mr. Smith` matched `Smith E.T.` through family `Smith E.T.`). The detail says the other reading in words, with `name_order=FAMILY_FIRST`, the setting that reads it; whether the match re-reads such a name under the other order is #1303's question. - The kind: `order`, reserved since 2.0 for "the name's field order itself is uncertain", which this is; a new kind was the other choice, and the reserved one adds none to the public enum. - Its reach: one name word, then letters in rules/T5's shape (spaced, or joined by full stops), ending the name words; under the given-first order, read by declaration or by default alike, since nothing tells the two apart; not after a family comma, not under `initials_as_family`, not when the word in front is itself a run of initials (rules/T7), holds no letter, is a particle (whose own fork reports it) or is in a script that writes none; and not where a letter is no initial to T5: hyphenated (`J.-P.`), a transliteration digraph (`Yu.`, rules/H2), a one-case letter the vocabulary does not mark (rules/P8's `Y`), or a Devanagari letter written with a vowel sign (`बि.क.`; 1,407 nepal-candidates names of the shape report nothing, while all 1,580 of the new reports there are Latin, a count the #1348 review took; #1273). The detail says the word is the only name word before the initials, since a post-nominal may follow them (`PHUOC T DO`). Capitals written as one word with no full stops (`Armitage JO`) do not count, whatever their length, being written as a short surname is (`Zhi LI`, `Jason NG`), which narrows the decision on #1254, which listed glued initials among the shapes to report: among ORCID's credit names of one word and two to four such capitals, the boxes put the word first in 611 and the capitals in the family box in 183 (step 0's count, session notes). Measured on the 3.1 cycle's study populations with the session notes' scripts, dated snapshots no command in the repository re-runs (2026-11-11): leaving them out leaves 592 of the 2,311 ORCID credit names confirmed as bylines unreported; counting them would also report 92 of the 592 names of Turkey's parliament (`Erkan BAŞ`) and 276 of a 60,000-name ClinicalTrials.gov sample (`Antoine BEDU`), surnames in capitals. diff --git a/docs/design/decisions/O9-words-in-capitals-as-the-family.md b/docs/design/decisions/O9-words-in-capitals-as-the-family.md index 91da0ce81..abf5b06da 100644 --- a/docs/design/decisions/O9-words-in-capitals-as-the-family.md +++ b/docs/design/decisions/O9-words-in-capitals-as-the-family.md @@ -15,7 +15,9 @@ - Mixed case is read over the words no run took, after the peel: a word other than a title, a suffix, or a particle or conjunction written in lowercase holds a lowercase letter — 2026-11-12 #659, the SECOND FIX REVIEW. - An `order` report, and a report on a word the peel took, are dropped where the rule acts — 2026-11-12 #659, the THIRD REVIEW. -Open: [#1402](https://github.com/derek73/python-nameparser/issues/1402) (a bare `DR` in capitals at the head reads as the family under the switch, `DR Anna Berg`; whether a title that is never a surname should stand is undecided). +- A title in capitals where no other word of the name is (`DR Anna Berg`), a title-particle aside (`ST`), stays the family: the name is not in the switch's format — 2026-11-19 #1402. + +Open: none in this file. ## Log @@ -24,7 +26,7 @@ Open: [#1402](https://github.com/derek73/python-nameparser/issues/1402) (a bare - The decision's ratio, re-derived (mixed-case records, one box wholly capitals words, the other box holding none): capped, the family box 44,952 against the given box 4,882 at four or more letters (90.2%), 5,336 against 787 at two or three (87.1%); the whole dump 327,396 against 40,175 (89.1%) and 69,550 against 15,522 (81.8%). Where the family box is in capitals and the given box is not, the prototype read both fields right in 396,793 of 396,946, composed either way; the 153 misses were all peels. - Three parliaments that write surnames in capitals, the capitals taken as the family (`opensanctions-parliaments`, fetched 2026-11-08): `tr_parliament` 591 of 591 under the prototype against 549 by default (the 40 two-surname women and `ALA`, `ALP`); `az_parliament` 124 of 124 against 0; `kz_mazhilis` 152 of 152 against 152. - Where the wording broke, each now narrowed: a lone roman numeral read as the family (`John Smith III`; 2,567 ORCID records hold a numeral beside a name in mixed case, and the committed corpus's `Dr. John Doe III`); a lowercase title made a name in capitals mixed (`Dr. ANITA ROY` read wholly as the family; 5,878 ORCID records hold lowercase only in a title), as did a lowercase particle (`MARIA de SOUZA LIMA`, about 180) and a glued prefix (`JOHN McCAIN`); two runs divided by a name word (`PETER Okello MUWANGA`: composed given box first, the last run sits in the family box in 3,113 of 3,971 such names, the first in 2); a lowercase particle right before the run was left a middle name (`Jean de LA FONTAINE`; 130 family boxes are written particle + capitals); a run of particles alone read as the family (`Karim AL Haddadi`, most of the 2,222 middle runs at the family box's head); a peel left only particles (`DE CARO`, 7 surnames); a word with a full stop or a slash read as the family (`DR.` opens 192 ORCID given boxes; `N/A` is every one of the 128 such names in `psc-individuals`). Every capitals word after a comma in the local corpora was a credential, so reading only the part before the first comma changes no real name found. - - Accepted, with their counts: joined initials in the middle of a name read as the family (`Jan GM Brouwer`; 4,246 ORCID records put such a run in the given box, against 2,222 at the family box's head, mostly a particle in capitals); a credential after the surname with no comma reads as the family (`John Smith MD`; 757 ORCID records, none from a source that writes families in capitals). Left open: a bare `DR` in capitals at the head reads as the family (204 ORCID given boxes). + - Accepted, with their counts: joined initials in the middle of a name read as the family (`Jan GM Brouwer`; 4,246 ORCID records put such a run in the given box, against 2,222 at the family box's head, mostly a particle in capitals); a credential after the surname with no comma reads as the family (`John Smith MD`; 757 ORCID records, none from a source that writes families in capitals). Left open: a bare `DR` in capitals at the head reads as the family (204 ORCID given boxes). (Decided by the 2026-11-19 #1402 entry: left as it reads.) - **2026-11-12 #659, the IMPLEMENTATION — THE RULE LAYS THE NAME OUT LAST, AND DROPS THE REPORTS IT SETTLES.** (Which reports it drops superseded by the REVIEW, FIX REVIEW, SECOND FIX REVIEW and THIRD REVIEW entries; which word is the given name by the REVIEW and FIX REVIEW entries; `Artur MAS I GAVARRO` reading family `GAVARRO` superseded by the REVIEW's CONJUNCTIONS entry, which joins the one-letter conjunction.) The rule runs in `post_rules` after H1, M4, P1, O1, O2 and P6, so none of their moves undoes it, and before O8 and O6, which stand down where it read the name, the capitals having named the family; O7 and O3 then read the words it leaves. It reads the words before the first comma whose role is a name, a title or a suffix, so a word read as a credential (S6) or a title (H1, H9) is in reach, while a nickname and a maiden clause are not. A report of the four kinds that ask which field a word takes is dropped where it names a word the rule placed, the capitals having settled that fork (`Hugo LAC` drops the `given-or-family` report the credential reading left); the rule adds none, the caller having declared the convention. The family words in capitals read their source as `shape` (`Token.reading`), the source the type already names for a word in capitals. A capital letter written alone is an initial or a connective, not a capitals word, so `Artur MAS I GAVARRO` reads family `GAVARRO`; and a conjunction joins runs as a particle does, and like one does not make a name mixed case, so `MARIA y LOPEZ` is read as a name in capitals. - **2026-11-12 #659, the REVIEW — A REPORT ON A WORD THE CAPITALS DID NOT DECIDE STANDS, AND A JOINING WORD IS NO GIVEN NAME.** (`Van Mary DUPONT` keeping its `particle-or-given` report, and the given name skipping a never-given particle in any case, superseded by the FIX REVIEW entry, which drops that report wherever the rule acts and passes over only joining words written in lowercase: `De Marie DUPONT` reads given `De`.) Two findings of PR #1363's review, each reproduced on its head. The implementation entry dropped a report on any word the rule laid out, so `Dean Mary DUPONT` lost the `title-or-name` report on `Dean` and `Van Mary DUPONT` the `particle-or-given` one on `Van`, though the capitals decide nothing about either word: now a report is dropped where it names a word of the run (or a word the peel took), or asks whether a lone name word is the given or the family name, the name now holding a family (`Hugo LAC`). And the first word outside the run became the given name whatever it was, so `JEAN y Perez` read given `y` and `de Marie DUPONT` given `de`, the never-given particle the vocabulary forbids as a given name: now the given name is the first unit holding a word that is neither a conjunction nor a never-given particle, and a particle that may be a given name (`Van Mary DUPONT`) is read as one. A particle written in Title case before the run stays out of it (`Mary Van DUPONT` reads middle `Van`), recorded as accepted: only a lowercase particle written right before the run joins it, as the amendment says. - **2026-11-12 #659, the RE-TAKE — THE PARLIAMENTS ON THE REFRESHED CACHE.** `opensanctions-parliaments` was fetched again on 2026-11-12 (23 datasets, 24,066 names, where the 2026-11-08 fetch held 17). The Turkish count is 591 here and 592 in the issue's 2026-11-08 comment, which parsed OpenSanctions' `tr_parliament` on master ccaf6ad9 and counted every member where these scripts count the distinct names held in mixed case with a word in capitals; both are dated snapshots, and the scripts are in the 3.1 cycle's session notes, not the repository. Re-taken with the shipped switch (`parliaments_shipped.py` in the session notes), the capitals taken as the family: `tr_parliament` 591 of 591 under the switch against 549 by default, `az_parliament` 124 of 124 against 0, `kz_mazhilis` 152 of 152 against 152, as on the gate's fetch. The refreshed cache adds `kr_assembly`, which the gate could not measure: of its 297 names in Latin script, 293 are written wholly in capitals (`PARK SUNGHOON`) and 4 in mixed case with no word in capitals (`Kim Hyung Yun`), so the switch reads none of them; the convention this rule reads is not that list's. @@ -37,3 +39,7 @@ Open: [#1402](https://github.com/derek73/python-nameparser/issues/1402) (a bare - **2026-11-12 #659, the FIFTH REVIEW — A MARKER STAYS THE FAMILY WHERE NOTHING ELSE CAN BE, AND A CONJUNCTION IS NO NAME WORD FOR THE PEEL.** An independent review of 39bf6d34 (switch off byte-identical to its parent over 893,256 parses) found three defects and a rule-text error. The FOURTH REVIEW's marker exclusion tested the spelling in any position, so a surname spelled like a marker lost the family where R9 reads no patronymic (`ABRAMOVICH Roman` and `АБРАМОВИЧ Роман` under the East Slavic rule read given `ABRAMOVICH`; `Ivan PETROVICH Smith` family `Smith`; `OGLU Ahmed` under the Turkic rule given `OGLU`): a marker is now left out of the run only where another capitals word that is no particle, conjunction or marker is left to be the family, and the grid test holds both directions. The peel's count of capitals words it must leave counted a conjunction, which the run then trims, so the switch stood down (`Hugo AND LAC` read given `Hugo AND LAC`; `Marie AND CPA`, `Anna OF MA`, `Marie THE LAC` the same; `John Smith AND MD` family `Smith AND`, suffix `MD`): it now passes a conjunction over by the same predicate the runs use. The peel tested membership against its list of peeled words, a quadratic (`Ann DUPONT` + `MBA` × N read 8.22x for 4x at 3,200): a set now, and a scaling row of trailing credentials holds it. The rule text that scoped S6's, S11's and O9's precedence to "the only word of its run" was wrong once the peel crosses the name (`DUPONT Marie MA`, `DUPONT Marie KC`, `DUPONT Jean FILS` read suffix): the scope is the only capitals word before the first comma that is no particle, conjunction or marker. Recorded as accepted: a lowercase joining word the parse read as a suffix ends the peel (`Ivan FAN R IVANOV MD de` → family `IVANOV MD`); `SIR John MD` → family `SIR`, suffix `MD`; a capitals word right before a marker in other case is both the family and the patronymic view's father's name (`AHMED Kyzy` under the Turkic rule, present in the parent too), so O9's precedence sentence now says the view is read over the words in their written order; and a joining word before a letter leaves the reports and the given-middle split to the order (`ALLIOT-MARIE Anna y V PhD`, present in the parent too). After this entry the rule is frozen for the first PR: a further unwritten shape is recorded, not handled. - **2026-11-12 #659, the RECORDED SHAPES — FOUR UNWRITTEN SHAPES KEPT AS THEY READ, AND THE PRECEDENCE SCOPE CORRECTED.** With the rule frozen, the shapes found after the FIFTH REVIEW are recorded in rules/O9's Accepted bullets rather than handled, the readings taken from the tree at c61f64b9: under the East Slavic rule `ABRAMOVICH Roman MBA` reads given `ABRAMOVICH`, middle `Roman`, family `MBA`, the marker exclusion asking whether another capitals word is left before the peel takes the credential (`ABRAMOVICH Roman, MBA` and `IVANOV Roman MBA` read family `ABRAMOVICH` and `IVANOV`); under the Turkic rule, with O2's three-word reading merged from #1187, `Aidai MEDERBEK kyzy` reads family `MEDERBEK`, middle `kyzy`, and `Aidai Mederbek KYZY` family `KYZY`, middle `Mederbek`, where the switch off reads family `MEDERBEK kyzy` and `Mederbek KYZY` (the four-word `ALIYEV Ali Ahmad oglu` is unchanged, family `ALIYEV`); `Hugo AND LAC` reads given `Hugo AND`; `Ivan PETROVICH IVANOVICH` under the East Slavic rule reads family `PETROVICH IVANOVICH` and no patronymic; and `DR ABRAMOVICH Roman` reads family `DR`, given `ABRAMOVICH` under that rule and family `DR ABRAMOVICH` without it. None is written in any cached list (the parliaments' Turkic names are four words, the family in capitals). The first two are pinned by test rows stating the accepted reading. The FIFTH REVIEW's scope for S6's, S11's and O9's precedence, "the only capitals word before the first comma that is no particle, conjunction or marker", misdescribed two shapes: a numeral after the word is no capitals word the peel must leave (`Jean Pierre FILS III` → family `FILS`, suffix `III`), and of two listed credentials ending the name the first is the family where nothing before it can be (`Marie MA MBA` → family `MA`, suffix `MBA`). The scope now reads: the word ending the name is the family where no other capitals word before it and before the first comma can be, the listed credentials and numerals after it coming off first. No reading moved. - 2026-11-19 #1456, #1479, decided 2026-11-19 — O6 DIVIDES THE FAMILY THE CAPITALS NAMED. With both switches on, O6 still takes no word into a family this rule named, and now divides that family by its own words where it holds two units (`Ana GARCÍA LÓPEZ` gives surname1 `GARCÍA`, surname2 `LÓPEZ`), as it divides every family since decisions/O6's 2026-11-19 #1456, #1479 entry: the division is a function of the family's words, so it does not ask which rule read them. No field moves. Where this rule misreads given names in capitals as the family (`ABRAHAM ELEAZAR Quipuscoa Jiménez`), the division divides them too. +- 2026-11-19 #1402, decided 2026-11-19 — A TITLE IN CAPITALS WHERE NOTHING ELSE IS STAYS THE FAMILY: THE NAME IS NOT IN THE SWITCH'S FORMAT. Closes the Open line the 2026-11-12 entry left. `DR Anna Berg` under the switch reads family `DR`, middle `Berg`, as do `PROF`, `MR`, `MRS`, `MS`, `SR`, `SIR`, `REV` and `HON` there, while a title-particle stays the title (`ST Anna Berg`, `FREIHERR Anna Berg`: title, family `Berg`); nothing in it marks a family in capitals, so `capitals_as_family` is the wrong setting for that name, and it is left as it reads, stated in rules/O9's Accepted list and in the user docs' cost list for the switch. Where a capitals family follows (`DR Anna BERG`) the title keeps its place already. + - Measured 2026-11-19 on the local corpora by a throwaway script, not kept, so these are dated snapshots: each corpus name's part before its first comma, split on spaces, holding a word in capitals (two or more letters, nothing but letters, apostrophes and hyphens, rules/O9's capitals word) and a word in mixed case, a listed credential or roman numeral in capitals left out; classed by whether its first word is a listed title (`Lexicon.default()`'s titles) and how that title is written (a crude classing; ORCID read one name in five), family in capitals / title in mixed case (`Dr Anna BERG`) / title in bare capitals (`DR Anna BERG`): `ctgov-contacts` 36,356 (7.0%) / 308 / 0, the 675 entries opening `US` (call centres) left out; `ctgov-officials` 29,610 (5.5%) / 148 / 4; `orcid-researchers`, sampled, 10,042 (2.8%) / 59 / 4; `ukec-individuals` 240 / 87 / 0; `govuk-people` 59 / 49 / 0; `opensanctions-parliaments` 892 / 0 / 0; `vn-assembly` 142 / 0 / 0. A name that marks its family in capitals writes its title in mixed case about 650 times to 8. The shape left as it reads, a bare title in capitals and no other capitals, is 69 names in the two registry corpora, 7 in `jrc-names` and 3 in the ORCID sample. + - Declined: keeping the title reading at the head for a title never borne as a surname. The vocabulary does not tell `DR` and `MR` from `DOYEN` and `BARON`, plain titles alike, which the switch reads as the family by design (`DOYEN Hugo`), so it would need a new reading on the titles that are surnames, for about one name in ten thousand. + - `Parser.suggest` counts such a name toward leaving the switch off: six invented names of the shape (`DR Anna Berg`, `MRS Jane White`) read `capitals_as_family unchanged (False) 6 for, 0 against` (2026-11-19). diff --git a/docs/design/decisions/group-suggestion.md b/docs/design/decisions/group-suggestion.md index 63e63059c..4445f00a7 100644 --- a/docs/design/decisions/group-suggestion.md +++ b/docs/design/decisions/group-suggestion.md @@ -28,7 +28,7 @@ - A name word in a script that writes no initials followed by a letter of it casts no trailing-initial vote, since no byline writes such a name before an initial, as rules/T5 and the order report read it: a group of Thai or Burmese names, each a word and a letter, suggests nothing — 2026-11-12 #1256. - A caller with a large list is told a sample of a few hundred names from each source is enough: nearly every kind of list measured is read right from 200 names, a longer list is rarely better (bylines written given first under a family-first base are the one kind measured that kept improving), and since the 1% floor no list measured in its base's own order is read worse at 2,000 names — 2026-11-16 #1442, 2026-11-16 ORDER FLOOR. -Open: the other three settings count their shares among the names with evidence on them, never the group, so a few stray names decide `patronymic_rules`, `initials_as_family` or `capitals_as_family` in a long silent list (2026-11-16 ORDER FLOOR, its bullet on the other settings); no measured population moves on any of them, and no issue is filed. A group gate for the short capitals words, under which one votes where another name of the list writes a longer capitals word at the same end, measured and not taken for 3.1 (2026-11-14 #1355, its Declined bullet), to weigh beside #1402. For a list mixing East Slavic and Turkic patronymics (uz_senate, kz_senate), suggesting both rules, and reading the Kazakh `-uly` and `-kyzy` endings as a Turkic signal, are not taken for 3.1 and not decided against (2026-11-15 #1356, its Not taken bullet). `_MIN_PATRONYMIC_VOTES`, five names, was set to keep small Russian groups written family first from moving a family-first base to given-first (2026-11-10 THRESHOLDS); since 2026-11-15 #1356 a `FAMILY_FIRST` base keeps its order on such a group, and that entry measured what relaxing the count did then: no same-order cell moved, and groups written given-first moved a family-first base sooner; since 2026-11-19 #1447 two names written given first decide given-first by their position votes without the rule, so that measurement predates the vote and is not re-taken. The threshold is unchanged and has no issue. #1308, the tracking issue, is closed; its other open item, the given names the given-name table's family-share filter drops, was #1357, settled for `John`, `David` and `Robert` by 2026-11-15 #1357, which leaves `James`, `Paul`, `George`, `Charles`, `Thomas` and `Martin` out. #1364's ORCID surname table at a given-box share of 12%, which helps Portuguese and Brazilian lists written given first and costs those written family first at 10 and 20 names, and the census table for English it held, are open (2026-11-19 #1364, its Declined and Open bullets; 2026-11-15 #1357 holds what a gate measured for the census table); so is the cost that table's `pv-listed-given` shows, English given names ORCID's holders rarely type as one (`Cooper`, `Burke`). Not measured, and without an issue: the table's 20-use floor (`MIN_USES`), and a family share between 10% and 15%. +Open: the other three settings count their shares among the names with evidence on them, never the group, so a few stray names decide `patronymic_rules`, `initials_as_family` or `capitals_as_family` in a long silent list (2026-11-16 ORDER FLOOR, its bullet on the other settings); no measured population moves on any of them, and no issue is filed. A group gate for the short capitals words, under which one votes where another name of the list writes a longer capitals word at the same end, measured and not taken for 3.1 (2026-11-14 #1355, its Declined bullet), to weigh beside #1402, which was decided 2026-11-19, left as it reads (decisions/O9). For a list mixing East Slavic and Turkic patronymics (uz_senate, kz_senate), suggesting both rules, and reading the Kazakh `-uly` and `-kyzy` endings as a Turkic signal, are not taken for 3.1 and not decided against (2026-11-15 #1356, its Not taken bullet). `_MIN_PATRONYMIC_VOTES`, five names, was set to keep small Russian groups written family first from moving a family-first base to given-first (2026-11-10 THRESHOLDS); since 2026-11-15 #1356 a `FAMILY_FIRST` base keeps its order on such a group, and that entry measured what relaxing the count did then: no same-order cell moved, and groups written given-first moved a family-first base sooner; since 2026-11-19 #1447 two names written given first decide given-first by their position votes without the rule, so that measurement predates the vote and is not re-taken. The threshold is unchanged and has no issue. #1308, the tracking issue, is closed; its other open item, the given names the given-name table's family-share filter drops, was #1357, settled for `John`, `David` and `Robert` by 2026-11-15 #1357, which leaves `James`, `Paul`, `George`, `Charles`, `Thomas` and `Martin` out. #1364's ORCID surname table at a given-box share of 12%, which helps Portuguese and Brazilian lists written given first and costs those written family first at 10 and 20 names, and the census table for English it held, are open (2026-11-19 #1364, its Declined and Open bullets; 2026-11-15 #1357 holds what a gate measured for the census table); so is the cost that table's `pv-listed-given` shows, English given names ORCID's holders rarely type as one (`Cooper`, `Burke`). Not measured, and without an issue: the table's 20-use floor (`MIN_USES`), and a family share between 10% and 15%. ## Log diff --git a/docs/design/rules/O9-words-in-capitals-as-the-family.md b/docs/design/rules/O9-words-in-capitals-as-the-family.md index 42e6730b0..882704a57 100644 --- a/docs/design/rules/O9-words-in-capitals-as-the-family.md +++ b/docs/design/rules/O9-words-in-capitals-as-the-family.md @@ -47,7 +47,7 @@ "Jeffrey LAM Kin-fung" capitals_as_family → family="LAM" "Mrs Rita FAN HSU Lai-tai" capitals_as_family → family="FAN HSU" ``` -- **The capitals settle the field**: they outrank a credential or title reading, so a listed suffix that is the only capitals word is the family (without the switch S6 reads a credential so written as the suffix, S11's count a suffix word that is also a name, and S10's a numeral), and so is a title written in capitals (H1, H9); a report asking which field a word of the run or a word the peel took takes names no open fork, nor does one asking whether a lone name word is the given or the family name, whether a particle opens the family, or which order the name is written in, while a title or suffix fork on any other word stands, under every order. +- **The capitals settle the field**: they outrank a credential or title reading, so a listed suffix that is the only capitals word is the family (without the switch S6 reads a credential so written as the suffix, S11's count a suffix word that is also a name, and S10's a numeral), and so is a title written in capitals (H1, H9), save a title-particle opening the name (P4: `ST Anna Berg` keeps title `ST`); a report asking which field a word of the run or a word the peel took takes names no open fork, nor does one asking whether a lone name word is the given or the family name, whether a particle opens the family, or which order the name is written in, while a title or suffix fork on any other word stands, under every order. ``` "Hugo LAC" capitals_as_family → family="LAC" "Yanjun MA" capitals_as_family → family="MA" @@ -198,10 +198,11 @@ "Hon CHAN Kin-por GBS JP" capitals_as_family → family="GBS" ``` - `capitalized()` leaves a name in mixed case as written, so the family keeps its capitals; `capitalized(force=True)` recases them, the family being named by its field by then (R5). -- A bare `DR` in capitals at the head of a name is a capitals word, so it reads as the family (204 given boxes of the 2025-10 ORCID dump open with it, counted 2026-11-12); whether a title that is never a surname should stand is open (decisions/O9). +- A title written in capitals with no full stop is a capitals word, so where no other word of the name is in capitals it reads as the family, save a title-particle (P4), which stays the title (`ST Anna Berg`, `FREIHERR Anna Berg`): such a name writes no family in capitals and is not in the convention the switch is for, a name that marks its family in capitals writing its title in mixed case about 650 times to 8 (counted 2026-11-19, decisions/O9). Where the family is in capitals too, the title keeps its place. ``` - "DR Anna BERG" capitals_as_family → family="BERG" "DR Anna Berg" capitals_as_family → family="DR" + "DR Anna BERG" capitals_as_family → title="DR" + "DR Anna BERG" capitals_as_family → family="BERG" ``` - A numeral is one the generation reading knows, II to X, so a longer one is a word of the run, and one standing before the family name is read with it. ``` diff --git a/docs/policy.rst b/docs/policy.rst index a12fc889a..fe14ec84e 100644 --- a/docs/policy.rst +++ b/docs/policy.rst @@ -283,6 +283,44 @@ because the same names are written given-first in running text. The order belongs to the record, so it goes in a ``Policy`` you choose for that source. +Malaysia's election lists are another such source: they write a +Chinese name family first (``TAN KOK LEONG``), nearly every three-word +Chinese name on them (the count is in +``docs/design/decisions/O4-positional-assignment-and-declared-order.md``). +Such a name often writes its given name as two words, which a +family-first order reads as a given name and a middle name; +:ref:`two-given-names-chinese` shows the setting that keeps them +together. + +.. _mixed-name-order: + +A list that mixes orders +~~~~~~~~~~~~~~~~~~~~~~~~ + +A source can also mix orders, name by name. Singapore's Parliament +list writes some members with a Chinese surname given first (in the +shape of ``Grace Lim``) and others family first (``Tan Kok Leong``), +and the spelling does not reliably tell which (a short name such as +``Koh Ann`` may be either): of its 77 such members, 27 are written given first and 33 family first, and most of the rest +carry an English name as well (:issue:`1183` has the counts). +Malaysia's lists mix orders too: a candidate known by an English +given name is written given first (``GRACE TAN``), the Chinese names +family first. + +No one setting reads such a list. The default order reads the names written given +first, and ``FAMILY_FIRST`` with ``two_given_names`` the names written +family first, so each setting misreads the other group. + +The order then has to come from outside the name: a separate field in +the source, or capitals where the source writes the family name in +them (:ref:`capitals-as-family`), which helps only where the list writes +the rest of the name in mixed case. ``Parser.suggest`` cannot supply +it: it suggests no order where neither order holds the share it needs +(:ref:`suggest-deciding`), as for Malaysia's Chinese candidates, and +where the names written one way carry more of the evidence, it +suggests that order for the whole list. Either way the names written +the other way stay misread. + A comma still wins ~~~~~~~~~~~~~~~~~~ @@ -698,6 +736,42 @@ two: The switch leaves Kaur and Singh as middle names (see :ref:`kaur-singh`). +.. _two-given-names-chinese: + +Chinese given names written as two words +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Singapore and Malaysia often write the two syllables of a Chinese given +name as two words, family name first (:ref:`name-order`). Under +``FAMILY_FIRST`` alone the second syllable is a middle name; with +``two_given_names`` on too the given name keeps both: + +.. doctest:: + + >>> tan = family_first.parse("Tan Wei Ming") + >>> tan.family, tan.given, tan.middle + ('Tan', 'Wei', 'Ming') + >>> two_syllables = Parser(policy=Policy(name_order=FAMILY_FIRST, + ... two_given_names=True)) + >>> tan_two = two_syllables.parse("Tan Wei Ming") + >>> tan_two.family, tan_two.given, tan_two.middle + ('Tan', 'Wei Ming', '') + +For a list written family first throughout, ``Parser.suggest`` decides +the order. It does not suggest ``two_given_names``, so add that +yourself: + +.. doctest:: + + >>> chinese_list = ["Tan Kok Leong", "Lim Boon Keat", "Ong Siew Ting", + ... "Goh Wei Jie", "Teo Boon Leong", "Koh Siew Ting", + ... "Chen Kok Keat", "Wang Wei Jie"] + >>> Parser().suggest(chinese_list).patch + PolicyPatch(name_order=FAMILY_FIRST) + +A list that mixes the two orders needs the order from elsewhere (see +:ref:`mixed-name-order`). + Given names written with a particle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -942,6 +1016,13 @@ write: - **A credential with no comma before it**: ``John Smith MD`` gives family ``MD``. - **Joined initials**: ``Jan GM Brouwer`` gives family ``GM``. +- **A title written in capitals, with no full stop, where no other + word of the name is in capitals**: ``DR Anna Berg`` gives family + ``DR``, middle ``Berg``. A title that can also open a surname, as + ``ST`` or ``FREIHERR`` can, stays the title. Such a name does not write its + family name in capitals, so it is not in the format the switch is + for; where the family is in capitals too, the title keeps its place + (``DR Anna BERG`` gives title ``DR``, family ``BERG``). In ORCID researchers' own boxes, where one box holds the words in capitals, it is the family box nine times in ten (the counts are in