pemistahl/lingua-rs

The most accurate natural language detection library for Rust, suitable for short text and mixed-language text

60
/ 100
Established

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.

text analysis content moderation customer service routing data preprocessing multilingual content management
No Package No Dependents
Maintenance 10 / 25
Adoption 20 / 25
Maturity 16 / 25
Community 14 / 25

How are scores calculated?

Stars

1,067

Forks

53

Language

Rust

License

Apache-2.0

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.