#121 · Primary category: NLP Tools & Text Processing
lingua
The most accurate natural language detection library for Java and the JVM, suitable for long and short text alike
Project last updated:03/21/25
GitHub Stars
818
Forks
76
Contributors
10
License
Apache-2.0
Why we included this project
Lingua answers a narrow question well: which language is a given piece of text written in. It stays accurate on very short inputs like single words and phrases, where many detectors struggle, and it covers 75 languages with a quality-over-quantity approach. The library runs fully offline with no external API calls, so it works as a preprocessing step for text classification, spell checking, or routing incoming messages by language. It ships with test data and accuracy statistics, so you can verify detection quality for the languages you actually care about before committing. And it needs almost no configuration, which makes it a lighter option than pulling in a full NLP framework for Java or Kotlin projects.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
flair
A very simple framework for state-of-the-art Natural Language Processing (NLP)
compromise
modest natural-language processing
tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
CoreNLP
CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
Chinese-Word-Vectors
100+ Chinese Word Vectors 上百种预训练中文词向量