Repository navigation
Read Portugal's own given names behind a particle under locales.PT_PT (#1189) - #1493
Merged
Merged
Conversation
…#1189) pt-PT.toml gains rosário (with rosario), jesus and carmo as `default = false` given readings written `after_particle` (rules/P10), so `Maria do Rosário Pinto` gives middle 'do Rosário', family 'Pinto' under locales.PT_PT, and locales.PT, locales.PT_BR and the default read it as before. Each clears P10's bar on Portugal's ORCID records (15/1, 16/1, 9/2) and none on Brazil's; conceição (10/4) is left out. decisions/P10 records the measurement and the country tier; the tests that held pt-PT.toml as a file of a [rules] table alone now plant one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e strict choice es.toml's rosario is read under a strict choice of es too, so the note says where it is not; prose that still said pt-PT.toml holds no word (AGENTS.md, the vocab README, decisions/O6's Standing line) and the user docs listing which phrases are marked (policy.rst, locales.rst) name the new readings; decisions/P10 names the capped population the words were scored on. A test holds the strict choices of PT_PT, PT_BR and PT, and two rows hold one word after de Jesus and a suffix comma. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only jesus is refuted by Brazil's counts; rosário moves none of Brazil's names and carmo too few. docs/locales.rst says the unaccented `do Rosario` is a middle name in every pack's plain choice, a strict choice of pt or pt_br reading it as the family. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… jesus out P10's Standing bar names the whole extract, and there `jesus` scores 40 fixed to 17 broken (70%) on Portugal's names while `conceição` (53/11) and `luz` (12/2) pass; the capped corpus had read them the other way. pt-PT.toml now marks rosário, carmo, conceição and luz (with their unaccented spellings), and decisions/P10's entry gives both tables, the whole extract deciding. Brazil's whole-extract figures, re-run, fail every word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every plain choice reads es.toml's rosario already, so the plain scores count rosário alone; the vocab README no longer lists luz as left out beside its new Portugal reading; docs/languages.rst says pt_pt reads the held-out records within 0.1 point of pt_br. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…which way pt_pt differs (#1189) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1189
What changes
Portugal gets its own compound given names written behind a particle (rules/P10), read under
locales.PT_PTalone:The name is invented, of the shape read.
rosário,carmo,conceiçãoandluzaregivenreadings writtenafter_particle,default = false, innameparser/vocab/pt-PT.toml. Until now that file held only its[rules]table.PT_BRchoosespt-BR, which does not selectpt-PT, so Brazil's pack never reads them.rosario,conceicao).rosario. It is marked withrosáriobut not scored: es.toml'srosarioreading is already on by default and in every plain choice. The entry here keeps the reading under a strict choice of Portugal, which compiles no es.toml (parser_for(locales.PT_PT, strict=True)readMaria do Rosario Carneiroas family 'do Rosario Carneiro' on master).jesus: 40 fixed to 17 broken on Portugal's names (70%), under the bar.nazaré5/0,assunção,anjos,dores,mercês,belém,penha.óis outside this, being an Irish particle inga.toml.Maria da Luz), and a family comma reads as before.How the words were chosen (decided 2026-11-19)
P10's Standing bar is 75% of the names a reading moves fixed, ten names or more, over the whole ORCID extract. Each word was scored that way, a word at a time, over the country's records, under the country's pack with and without the reading.
The words were first picked on ORCID's capped corpus (20,000 records a country). There
jesuspassed andconceição(10/4) andluz(2/0) did not. The whole extract holds about five times Portugal's records and reverses all three. The whole extract decides, being the population the bar names, so the capped choice is superseded. decisions/P10's entry gives both tables.rosáriocarmoconceiçãoluzjesus(left out)PT_PTPT_BRnazaréat 35 / 14 (71%).pt_parliament, 2,256 spellings): 13 move, each putting the phrase in the given part, where the issue found Portugal's deputies keep it.config_diff.py score --cap 3000):PT_PTreads them 0.1 point belowPT_BR(Portugal 89.6% against 89.7%, Brazil 79.7% against 79.8%). PSC's Portuguese filers read 62.9% underPT_PTand 62.8% underPT_BR; PatentsView Portugal reads 66.1% under both.Also changed
pt-PT.tomlholds no word.test_reading_index.pynow plants a region file holding no reading, so the path where a region's file holding only a[rules]table is chosen plainly through its language keeps a test with no shipped witness.test_config_diff.pyandtest_locales.pyare updated.PT_PT,PT_BRandPT. It fails if therosarioentry is deleted, which I checked by deleting it._ROTATORS["pt_pt"]rows for each word.cases.pyrows: each word underpt_pt, a suffix comma, one word after the phrase, no word after, andjesusleft out underpt_ptandpt_br.Maria da Conceiçãoas a given name, where the pooled P10 bar leaves it out? (Maria da Conceição Caldeiragives familyda Conceição Caldeira) #1189 entry, with a recompute recipe.pt-PT.tomlholds no word.nameparser/vocab/README.mdand AGENTS.md.docs/locales.rst(a doctest),docs/policy.rst,docs/languages.rst.pt.pyandpt_pt.pydocstrings, andconfig_diff.py'sgap_specsdocstring.locales.PTturn ontwo_family_names?Maria Santos Silvareads familySilvaunder the pack, where Portugal's own boxes saySantos Silva#1453's unreleased bullet gains the four words and:issue:1189``.locales.PT_PTis new in this release, so no `docs/migrate.rst` entry is needed, and the default and `PT_BR` move nothing.Checks
uv run pytestpasses (51,605), and so doesuv run pytest -n0 -m serial.uv run mypyanduv run ruff checkpass.sphinx-build -b doctest docsandpython -m doctest README.rstpass.tools/vocab/build.py --checkreports the compiled files current.feat(#1189)rows fail on master; theparityrows hold there.Reviews
🤖 Generated with Claude Code