How the Language Detector Works
AnyTool Language Detection identifies the language of text entirely in the browser by blending three signals. First it counts characters by Unicode script to fix the writing system. Then, for each candidate language, it scores common-word frequency against bundled top-word dictionaries, matches character trigrams in the franc style, and checks diacritic fingerprints to separate look-alike Latin languages. The blended scores are ranked into a candidate list where the best match is normalised to the highest confidence.
- Unicode script analysis covers 20+ writing systems
- Character-trigram (n-gram) profiles follow the franc approach
- Common-word frequency uses bundled top-word dictionaries per language
- Diacritic fingerprints disambiguate Spanish, French, Polish, Czech and others
- All computation is client-side JavaScript — no server round-trip
