You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should locales.PT turn on two_family_names? Maria Santos Silva reads family Silva under the pack, where Portugal's own boxes say Santos Silva #1453
decisions/O6 (two family names) records that locales.PT leaves the switch off "until a Portuguese given-name list exists" (2026-10-30, #753 phase 3g). This measures what such a list buys, and finds the list is not what is missing.
Measured 2026-11-18 on master c878443, ORCID holders' own given and family boxes (orcid-researchers), the first 3,000 records a country with both boxes filled, every box agreeing (local_agreement.read). The Portuguese list is the given-box words of the other 32,478 Portuguese and Brazilian records, at least 5 uses and at least 80% of uses in the given box, 677 words.
locales.PT with
Portugal
Brazil
Angola
Mozambique
nothing (today)
71.9%
50.2%
76.0%
85.5%
the switch
83.0%
74.3%
57.1%
50.6%
the switch and locales.ES_AR's list
89.4%
78.7%
66.7%
71.7%
the switch and the ORCID list
89.6%
79.3%
65.1%
66.2%
The ORCID list holds 168 words ES_AR's lacks (matheus, goncalo, vitoria, rute, vasco). Together the two score 89.5% in Portugal and 79.0% in Brazil, no better than either.
What is left, under both lists: a family box of three words or more, of which the switch takes two (Brazil 9.3% of records, Portugal 3.7%); and a second given name still taken (Brazil about 5.6%, Portugal about 3%).
Angola and Mozambique lose under every row with the switch on.
The ORCID list is one cut of four tried (share 80%, 90% or 95%; 5 or 10 uses), the best shown; its words were not read by hand, and no census source for Portugal or Brazil was looked for.
Questions.
Does locales.PT turn the switch on with the Spanish list as it stands, which gains 17 points in Portugal and 28 in Brazil, or does the Angolan and Mozambican loss keep it off for a pack chosen by language?
If on: is it locales.PT, or locales.PT_BR and a Portugal pack apart, as locales.ES_AR stands apart from locales.ES?
Does a pack carry another language's list? locales.ES_AR's is measured on Spain's census. The alternative is a Portuguese list from a source the project may measure (ORCID's boxes are CC0), which this run says would change little.
Is a family of three or more surnames a reading two_family_names should reach under a Portuguese choice, and by what signal? It is the larger remaining gap in Brazil.
Not asked here: whether Parser.suggest should propose the switch (#1452).
A data step this question may need first (noted 2026-11-19): no given-name frequency source for Portugal or Brazil has been looked for. Kinds to check, none verified for existence or licence: a census or civil-registry table of given names by count for each country. Under decisions/shipped-data-licences, a list the project cuts from counts it measured is credited only, while a curated list copied whole keeps its licence. And nothing held says why Angola and Mozambique lose under every row with the switch on: a list each writes itself (a parliament, a gazette) would show which names the switch breaks there. The name-list round is #1465.
locales.PT stays as it is, the switch off. A pack chosen by language is also chosen for Angolan and Mozambican names, which lose 10 to 35 points with the switch on under every row measured.
locales.PT_BR turns the switch on, and a new pack for Portugal does too. Brazil gains about 28 points and Portugal about 17. This is the reverse of Spanish, where the language pack carries the switch, and the docs say why.
A Portuguese given-name list measured from ORCID's boxes, not the Spanish list. The two score alike; the ORCID one is the right language, holds names the Spanish one lacks (matheus, gonçalo, vitória), and is the project's own measurement on CC0 data. Its words are read by hand before it ships. A census source may replace it later; nothing waits on one.
Families of three or more surnames are not part of this change. They are the largest gap left in Brazil (9.3% of records) and need a rule nothing has measured; the change counts them, and they become a question of their own.
Measured the same day (master a6af8683, config_diff.py score, ORCID's boxes, up to 3,000 records a country, every box agreeing):
locales.PT and locales.PT_BR as they stand move one record in Angola and one in Brazil and none in Portugal, Mozambique, Cape Verde, Guinea-Bissau, São Tomé or Timor-Leste. ORCID's composed names hold no titles, credentials or capitals, where the packs' vocabulary mostly acts, so this understates them on names as written.
The bare switch splits the smaller countries: Cape Verde 61.5% to 76.4%, São Tomé 50.4% to 69.4%, Guinea-Bissau 66.8% to 75.9%, Timor-Leste 64.0% to 63.6%, against Angola 76.4% to 57.0% and Mozambique 85.6% to 50.4%. Angola and Mozambique are the exceptions, and the largest.
After the change Portugal should read near 90% and Brazil near 79%: a first step for Brazil, not par.
locales.PT_BR ships with the switch on. US patents' Brazilian inventors lose 15.6 points under it (75.7% to 60.2% of 15,029), every broken record holding one surname in the family box: a filing convention, which no given-name list tells from the other. ORCID's Brazilian holders, who split their own names, gain 29.5 points, and UK companies' Brazilian filers 9.2. The docs say to keep pt for data filed with a single surname as the family name. It knowingly misses the 2026-11-04 country-pack measure on that one source.
The list is cut at 5 uses and a 70% share, 721 entries.
Activity
derek73 commentedon Nov 19, 2026
A data step this question may need first (noted 2026-11-19): no given-name frequency source for Portugal or Brazil has been looked for. Kinds to check, none verified for existence or licence: a census or civil-registry table of given names by count for each country. Under decisions/shipped-data-licences, a list the project cuts from counts it measured is credited only, while a curated list copied whole keeps its licence. And nothing held says why Angola and Mozambique lose under every row with the switch on: a list each writes itself (a parliament, a gazette) would show which names the switch breaks there. The name-list round is #1465.
derek73 commentedon Nov 19, 2026
Decided 2026-11-19, the four questions in order.
locales.PTstays as it is, the switch off. A pack chosen by language is also chosen for Angolan and Mozambican names, which lose 10 to 35 points with the switch on under every row measured.locales.PT_BRturns the switch on, and a new pack for Portugal does too. Brazil gains about 28 points and Portugal about 17. This is the reverse of Spanish, where the language pack carries the switch, and the docs say why.matheus,gonçalo,vitória), and is the project's own measurement on CC0 data. Its words are read by hand before it ships. A census source may replace it later; nothing waits on one.Measured the same day (master
a6af8683,config_diff.py score, ORCID's boxes, up to 3,000 records a country, every box agreeing):locales.PTandlocales.PT_BRas they stand move one record in Angola and one in Brazil and none in Portugal, Mozambique, Cape Verde, Guinea-Bissau, São Tomé or Timor-Leste. ORCID's composed names hold no titles, credentials or capitals, where the packs' vocabulary mostly acts, so this understates them on names as written.After the change Portugal should read near 90% and Brazil near 79%: a first step for Brazil, not par.
derek73 commentedon Nov 19, 2026
Decided 2026-11-19, on PR #1481's measurements.
locales.PT_BRships with the switch on. US patents' Brazilian inventors lose 15.6 points under it (75.7% to 60.2% of 15,029), every broken record holding one surname in the family box: a filing convention, which no given-name list tells from the other. ORCID's Brazilian holders, who split their own names, gain 29.5 points, and UK companies' Brazilian filers 9.2. The docs say to keepptfor data filed with a single surname as the family name. It knowingly misses the 2026-11-04 country-pack measure on that one source.Ana Souza Lima Rochagives middleSouza, familyLima Rochaunderlocales.PT_BR) #1482.Record the 2026-11-19 decisions on PT_BR, the cut and #1482 (#1453)
Merge master (locales.MY, #1480) into #1453
Read two family names under locales.PT_BR and a new locales.PT_PT (#1481