greyblake/whatlang-rs
Natural language detection library for Rust. Try demo online: https://whatlang.org/
Detects 70 languages using trigram-based language models, returning both language identification and script recognition (Latin, Cyrillic, etc.) alongside confidence metrics. Built entirely in Rust with zero external dependencies, it calculates detection reliability using a hyperbolic threshold function that considers unique trigram frequency and inter-language score differential. Provides FFI bindings and integrates with major search engines like Meilisearch and Sonic, with optional serde/enum-map support for ecosystem compatibility.
1,062 stars and 117,933 monthly downloads.
Stars
1,062
Forks
120
Language
Rust
License
MIT
Category
Last pushed
Dec 24, 2025
Monthly downloads
117,933
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/greyblake/whatlang-rs"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
forzagreen/n2words
Convert numerical numbers to written numbers, in 52+ languages.
PyThaiNLP/nlpo3
Thai natural language processing library in Rust, with Python and Node bindings.
pemistahl/lingua-rs
The most accurate natural language detection library for Rust, suitable for short text and...
wikimedia/sentencex
A sentence segmentation library with wide language support optimized for speed and utility.
fbilhaut/gline-rs
Inference engine for GLiNER models, in Rust