Detector de Idioma (trigrama)
Adivinha PT/EN/ES por presença de trigramas comuns.
Idioma
—
Guessing a language from three-letter chunks
You have a pile of mixed texts and need to separate Portuguese from English and Spanish before sending them to translation or into a search index. For a few paragraphs you can just look. For three hundred rows of a CSV you cannot. This page makes the cheapest guess there is: it looks for three-letter sequences typical of each language and picks whichever scores highest.
The list is fixed and short, six trigrams per language. Portuguese uses ção, que, ent, ade, par and ndo; English uses the, ing, and, ion, ent and tio; Spanish uses que, ent, aci, ado, ist and par. Counts are raw, with no length normalisation and no probability. Portuguese and Spanish share three trigrams, so ties are common, and every tie resolves to Portuguese, which comes first in the list. A three-way zero resolves the same way.
Paste at least a paragraph. The short English sample that ships in the box is exactly the case where no trigram matches, which is why it comes out labelled Portuguese. Only three languages exist in the model, so French, Italian or German get forced into one of them with no warning. Use it for rough triage and never for automatic content routing. Everything runs in the browser.
Frequently asked questions
Why is the English sample labelled Portuguese?
Does it detect French?
How much text do I need?
Related Tools
Language Detector
Approximately detect the language of a text (PT, EN, ES, FR, DE, IT) by letter and bigram frequency analysis. Heuristic, no API. Everything in your browser.
Detector de Voz Passiva (PT)
Conta frases com voz passiva por heurística: "foi/foram/é/são/era + verbo no particípio (-ado/-ido)".
Fancy Text Fullwidth
Convert plain text into fullwidth (double-width) characters in the vaporwave style (full width). Copy the aesthetic text for bios, social media and nicknames.