Registry / utility / whatlang

whatlang

JSON →
library0.18.0rscratesunverified

Fast and lightweight language identification library for Rust.

# Cargo.toml [dependencies] whatlang = "0.18.0"
INSTALL
IMPORT
SIG · WHATLANG
W
whatlang
utilityrustv0.18.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

detect
use whatlang::detect;

Detects the language of a given text string.

use whatlang::detect; fn main() { let info = detect("Hello world").unwrap(); println!("Language: {:?}", info.lang()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.18.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
whatlang — cargo add whatlang · libregistry