pemistahl/lingua-rs
The most accurate natural language detection library for Rust, suitable for short text and mixed-language text
This tool helps you quickly and accurately identify the language of any given text, even very short snippets like tweets or single words. You provide it with text in an unknown language, and it tells you which of 75 supported languages that text is written in. It's designed for anyone managing text data where knowing the language is a crucial first step.
1,067 stars and 256,915 monthly downloads.
Use this if you need to reliably determine the language of text, especially for short phrases or when dealing with many languages at once, to categorize content or route communications.
Not ideal if your primary need is complex linguistic analysis beyond just language identification, or if you need to detect languages not among the 75 currently supported.
Stars
1,067
Forks
53
Language
Rust
License
Apache-2.0
Category
Last pushed
Mar 09, 2026
Monthly downloads
256,915
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/pemistahl/lingua-rs"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
PyThaiNLP/nlpo3
Thai natural language processing library in Rust, with Python and Node bindings.
forzagreen/n2words
Convert numerical numbers to written numbers, in 52+ languages.
greyblake/whatlang-rs
Natural language detection library for Rust. Try demo online: https://whatlang.org/
wikimedia/sentencex
A sentence segmentation library with wide language support optimized for speed and utility.
quickwit-oss/whichlang
A blazingly fast and lightweight language detection library for Rust