whatlang-rs and whichlang
These are competitors: both are standalone language detection libraries for Rust with overlapping functionality, and users would typically choose one based on performance, accuracy, or dependency preferences rather than use them together.
About whatlang-rs
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.
About whichlang
quickwit-oss/whichlang
A blazingly fast and lightweight language detection library for Rust
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work