Repository navigation
Description
Under two_family_names a family is two name words. A name written with three or more surnames keeps the last two, and the first goes to the middle names (parser_for(locales.PT_BR) as PR #1481 builds it):
Ana Souza Lima → family 'Souza Lima'
Ana Souza Lima Rocha → middle 'Souza', family 'Lima Rocha' (family box: 'Souza Lima Rocha')
The name is invented, of the shape read. rules/O6 (two family names) takes one word; nothing reads a third.
How often (PR #1481, 2026-11-19, config_diff.py score, at most 3,000 records a group, each record's own boxes): a family box of three surnames or more, read as two, under locales.PT_BR:
| Group | Records | Three or more, read as two |
|---|---|---|
| ORCID Brazil | 2,850 | 268 (9.4%) |
| ORCID Portugal | 2,923 | 117 (4.0%) |
| PatentsView Portugal | 3,000 | 378 (12.6%) |
| PatentsView Brazil | 3,000 | 78 |
It is the largest shape left wrong in ORCID's Brazilian and Portuguese records once the switch is on, and the switch broke none of them: they read wrongly with it off too. Spanish-speaking countries were not counted for this shape.
Why it is not a small change. A third surname and a second given name stand in the same place, and the given-name list is the only thing that tells them apart. A reading that takes every word behind the listed given names into the family is a different rule from O6's "one word more", and nothing has measured it: Policy.middle_as_family (the first word, then the rest) reads Brazil at 66.3% against the switch's 72.6% on the same boxes (#1452's comment), so the plain form of it is worse.
To measure before proposing a rule
- Under a Portuguese pack, the family taken as every name word after the last listed given name: fixed and broken per group above, and on Angola and Mozambique.
- The same with a bound on the family's length (three words, four).
- What stands in the way: a given name the list lacks (
mateus,tadeu), a surname that is also a given name, particles (da,dos), agnomens (Filho,Neto). - The populations filed the other way, one surname in the family box (PatentsView Brazil, 75.7% under the default and 60.2% under the switch), which a longer family costs more.
- The views:
surname1andsurname2name two units, and a family of three has no second-surname reading today (ShouldGarcía Márquez, Juanfillsurname1andsurname2undertwo_family_names, asJuan García Márquezdoes? #1456 leaves a three-word head whole).
Open
- Is this a reading under the Portuguese packs only, or wherever
two_family_namesis on? Spanish names of three surnames are rarer; not counted. - A new
Policyvalue, or the existing switch reading further where a pack's list allows it?
Related: #1453 (the packs), #1452 (the suggester, which found middle_as_family reads three one-given-name countries nearly as well), #1456 and #1479 (the views).
Activity
Record the 2026-11-19 decisions on PT_BR, the cut and #1482 (#1453)
Read two family names under locales.PT_BR and a new locales.PT_PT (#1481
derek73 commentedon Nov 19, 2026
Measured 2026-11-19: what Brazil needs is two things together, and people's own split sets a ceiling near 90%.
ORCID's boxes, 3,000 Brazilian and 3,000 Portuguese records with both boxes filled, none used to build the Portuguese list. A simulation on name units (a particle with its word, an agnomen with the word before it), scoring only where the boundary between the given names and the family falls, not a parse; its figure for today's pack is within about a point of the parser's (79.8% and 89.6% by
config_diff.py scoreon masterd12af9d6).Where holders put the boundary, Brazil (share of the names with that many units):
Rules, boundary right:
"Classed by its given share": a word counts as a given name where more than half its uses in the other records (16,013 Brazilian, 16,465 Portuguese) are in the given box, for any word used three times or more; the shipped list falls back for the rest. The shipped list keeps a word used five times with 70% in the given box.
Also measured the same day, with the real parser (
parser_for(locales.PT_BR), the family taken as every word after the first and the listed given names behind it, scored bylocal_agreement.agrees): Brazil 79.8% to 82.1% (234 fixed, 164 broken), Portugal 89.6% to 88.6%, Cape Verde 80.5% to 77.6%, Angola 65.3% to 56.7%, Mozambique 67.1% to 60.2%.Next: a measurement in the parser, before anything is built to ship. A larger Portuguese word table and a whole-family reading under the Portuguese packs, scored on ORCID, UK companies' filers and US patents' inventors, the last of which file one surname and lose more the longer the family read.
derek73 commentedon Nov 19, 2026
Measured in the parser, 2026-11-19; decided the same day: not in 3.2, left open.
A scratch change to rules/O6's take on master
25423c53, nothing committed: after the take, the family keeps taking middle units leftward while each passes the tests the taken word passes (one name word, not a listed given name, not an initial). Scored withconfig_diff.py scoreon records the list was not built from (ORCID and PSC 3,000 a group, PatentsView whole), every box agreeing:PT_BRtodaytse-donors, 848,351 names as written: 10,436 move, every one from the middle names into the family. By the word taken, 54.3% take only surname words, 27.0% a word ORCID never holds and 18.7% a word mostly given in ORCID. Of 25 drawn moves read by hand, about 12 take a second given name the list lacks, about 9 a surname, 4 unclear.Why not now: it gains where holders filled in boxes and is about even on names as written, which is what a caller's list of Brazilian names is, and it would add a policy value. Brazil stays near 80% under
locales.PT_BRfor 3.2.What would reopen it: a way to know rare second given names, since those are what the longer family takes wrongly. #1189 (compound given names behind a particle) removes one class of them and is taken separately.
derek73 commentedon Nov 21, 2026
Measured 2026-11-19 on a scratch prototype over master
25423c53, nothing committed. Declined, for now.The prototype kept taking middle names into the family after rules/O6's take, leftward. Each one had to pass the tests the taken word passes, and the first that failed stopped it. Readings were scored under
locales.PT_BR's policy, against:tse-donors, one name in 10) moved 12.3%. In a hand-read sample of 25 moves:ANA ZZELIANE LIMA DE SOUSA→ familyZZELIANE LIMA DE SOUSA);MARIA DE FATIMA) are taken as well.The full tables, the cuts of the list and the recipe are in decisions/O6's 2026-11-19 #1482 entry (PR #1509).
Keep a title only inside a phrase on the Spanish given-name lists, an…