Scan your whole stack
From OX Research Newsroom
Are you using pt2barranquenho?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.1a3
pt2barranquenho was last scanned on 26 Nov 2026 at version 0.1.1a3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.1a3 LATEST | 26 Nov 2026 | No rules fired |
| 0.1.1a2 | 26 Nov 2026 | No rules fired |
| 0.1.1a1 | 24 Oct 2026 | No rules fired |
| 0.1.0a2 | 24 Oct 2026 | Not shown |
Findings for v0.1.1a3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.1a3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
pt2barranquenho translates European Portuguese text into Barranquenho with hand-written rules. It is a baseline: no parallel corpus of Barranquenho exists to train a statistical model, so the rules come from the language's two reference books.
Barranquenho is the language of Barrancos, a municipality of about 1,500 people on the Portuguese border with Spain. It has a Portuguese base with Andalusian and Extremaduran Spanish features. Portugal recognised it as cultural heritage in 2021, and its first orthographic convention, grammar and dictionary appeared in 2025.
A demo runs in the browser at huggingface.co/spaces/TigreGotico/pt2barranquenho. The page in space/ loads the package with Pyodide, so no server runs the rules.
uv pip install -e .
echo "A minha mãe disse-me que o leite estava frio." | pt2barranquenho
# A minha mãi me dissi que a lêti ehtaba friu.
from pt2barranquenho import translate, word
translate("Ontem fomos à feira e comprámos três quilos de feijão.")
# 'Onten fomu à fêra i compramu trêh quilu de fejãu.'
word("espanhol") # 'ehpanhó'
translate takes one sentence or line. It leaves template slots such as {name} as they are, so it can convert OVOS dialog files. word converts one lowercase word with no context.
The documentation explains how the rules work, the constructions they handle, the evaluation and how to add a rule.
The rules follow two books. Each rule in the code names the section it comes from, and rules/citations.tsv quotes that section with its page; rules/README.md explains the checks and lists the places where the two books disagree.
| Area | Portuguese | Barranquenho |
|---|---|---|
| Spelling | v, initial h |
b, dropped: viva > biba, homem > omen |
| Final vowels | unstressed -o, -e |
-u, -i: tempo > tempu, sempre > sempri |
| Sibilants | s, z, x before a consonant |
h: Lisboa > Lihboa, texto > tehtu |
Final -s |
on determiners and monosyllables | h: os > uh, três > trêh |
Final -s |
on nouns, adjectives and verbs | dropped: os meninos > uh meninu |
Final -l, -r, -z |
after the stressed vowel | dropped, vowel accented: azul > azú, fazer > fazê |
| Diphthongs | ei, ou, -ão, -ães, -ões |
ê/e, ô/o, -ãu, -ãi, -õi |
| Verbs | -ava, -avam, -amos, -ámos |
-aba, -abon, -emu, -amu |
| Pronouns | enclitic after a hyphen | before the verb, except after an infinitive: casei-me > me casê, fazê-lo > fazê-lu; elided before a vowel |
| Periphrases | estar a + infinitive; ir + infinitive | gerund; í a + infinitive |
| Pseudo-reflexives | casar, cair, morrer, sair, dormir, ir | take a pronoun of the same person: já morreu > já se morreu, casei > me casê |
| Conjunction se | se that is not an object pronoun | si: como se fosse > comu si fossi |
| Possessives | before a noun; tonic | mê, tê, sê; meu, teu, seu: os meus também > uh meu tamén |
| [kw], [gw] before e, i | cinquenta, aguentar | cincuenta, agüentá |
| Closed classes | articles, contractions, pronouns, possessives, demonstratives, indefinites, interrogatives, numerals | the tables of the Gramática |
| Noun gender | nouns whose gender follows Spanish | the article or demonstrative takes the other gender, singular and plural: as laranjeiras > uh laranjêru, nos seixos > nah china |
| Words | 13 nouns the books print in place of the Portuguese word, each also in the 2025 dictionary | cócegas > cohquilha, javali > jabardu, pessegueiro > melacatonêru |
Four gold files test the translator. Each has the same columns; gold/README.md describes them.
| Set | Rows | What it is | Copy the Portuguese: chrF2 | pt2barranquenho: exact | pt2barranquenho: chrF2 |
|---|---|---|---|---|---|
convention_text.tsv |
8 | the text the Convenção uses to show the norm applied: a municipal description of the Igreja Matriz, in Portuguese and in Barranquenho | 59.1 | 0.250 | 94.8 |
books.tsv |
321 | the examples of the two books, each verified on its page | 40.3 | 0.841 | 85.1 |
external_respelled.tsv |
34 | sentences from other sources, respelled into the 2025 norm | 34.2 | 0.118 | 61.7 |
external.tsv |
36 | the same sentences in their published spelling | 37.1 | 0.000 | 40.8 |
"Exact" accepts the reference or any alternative printed in the books, after lowercasing. chrF2 is corpus chrF from sacrebleu.
uv run --with sacrebleu --with-editable . python scripts/evaluate.py gold/convention_text.tsv --errors
convention_text.tsv is the best test of running text. The rules were not written from it. It was first scored at chrF2 92.1 before any fix it prompted (Roman numerals, hyphenated compounds, tamén). It is short, and its Barranquenho is the authors' own rendering of a Portuguese original.
books.tsv is a development set. The rules come from the same books, so it measures how well the rules cover the books' own examples.
The external sets test unseen speech. The sources predate the 2025 norm and use their own spelling, and their Portuguese is often a free gloss. external_respelled.tsv keeps each speaker's words and grammar and changes only the spelling, following the Convenção. An independent review checked every row against the Convenção and the Gramática (gold/external_respelled_review.tsv). The respelling follows the same norm as the rules, so its scores are higher than external.tsv. Only the differences in words and grammar are evidence the respelling did not create.
A full test needs everyday Portuguese sentences that native speakers translate into the 2025 spelling.
tests/test_paradigms.py checks every person the Gramática tables print for amá, comê, partí, sê, ehtá, abê and tê, except the forms where the books disagree. tests/test_closed_classes.py does the same for the pronoun, possessive, demonstrative, relative, indefinite and numeral tables.The code is Apache-2.0. The gold rows quote short examples from the two books and cite them by page. The rights to those texts stay with their authors.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.