#121 · Primary category: NLP Tools & Text Processing

lingua

android-library java-library kotlin-library language-classification language-detection language-identification language-processing language-recognition natural-language natural-language-processing nlp nlp-library nlp-machine-learning

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