greyblake/whatlang-rs

Natural language detection library for Rust. Try demo online: https://whatlang.org/

62
/ 100
Established

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.

No Package No Dependents
Maintenance 6 / 25
Adoption 20 / 25
Maturity 16 / 25
Community 20 / 25

How are scores calculated?

Stars

1,062

Forks

120

Language

Rust

License

MIT

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.