Language Detection by Frequency Analysis on Characters and Bigrams

The debate surrounding language identification has gained renewed attention in recent years, especially with the rapid evolution of AI-powered language models. However, the non-AI-based approaches to language identification have been overshadowed. This research explores a mathematical implementation of an algorithm for language determinism by leveraging unigrams and bigrams frequency rankings derived from established linguistic research. The datasets used comprise texts varying in length, historical period, and genre, including short stories, fairy tales, and poems. Despite these variations, the method achieves 70% accuracy on texts shorter than 150 characters and reaches 90% accuracy for longer texts. These results demonstrate that classical frequency-based approaches might be developed to become effective and scalable alternatives to AI-driven models for language detection.

Authors

Publication Details

Journal
Studia Universitatis Babeș-Bolyai Informatica
Published
2026-11-18
DOI
https://doi.org/10.24193/subbi.2026.06
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Language Detection by Frequency Analysis on Characters and Bigrams

Paul-Andrei Pogăcean
1 links
Studia Universitatis Babeș-Bolyai Informatica
Natural Language Processing Techniques
article

Language Detection by Frequency Analysis on Characters and Bigrams

Paul-Andrei Pogăcean
article en

Abstract

The debate surrounding language identification has gained renewed attention in recent years, especially with the rapid evolution of AI-powered language models. However, the non-AI-based approaches to language identification have been overshadowed. This research explores a mathematical implementation of an algorithm for language determinism by leveraging unigrams and bigrams frequency rankings derived from established linguistic research. The datasets used comprise texts varying in length, historical period, and genre, including short stories, fairy tales, and poems. Despite these variations, the method achieves 70% accuracy on texts shorter than 150 characters and reaches 90% accuracy for longer texts. These results demonstrate that classical frequency-based approaches might be developed to become effective and scalable alternatives to AI-driven models for language detection.

Studia Universitatis Babeș-Bolyai InformaticaVol. 71(1-2)
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon