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
- Paul-Andrei Pogăcean
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