Language Detector by Trigram Frequency
Counts common three-letter sequences in pasted text to guess Portuguese, English or Spanish; short input returns undefined instead of a guess.
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.
Passive Voice Detector for Portuguese Text
Counts sentences that pair a form of ser (foi, foram, é, são, será) with a participle in -ado or -ido, plus irregulars like feito, and shows the share in %.
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.
Upside-Down Text
Flip text upside down using Unicode characters. Works in social networks and messages (¡ɔıʇɟᴉɹd ʇsouɥ).
Romaji (Hepburn)
Hepburn Japanese romanization system.
Text Statistics
Full text analysis: characters (with/without spaces), words, sentences, paragraphs, lines, most frequent word, reading/speaking time and Flesch readability score. Everything in your browser.