whatlang-rs and lingua-rs
Both are standalone natural language detection libraries that compete for the same use case, though lingua-rs claims superior accuracy while whatlang-rs emphasizes speed and minimal dependencies.
About whatlang-rs
greyblake/whatlang-rs
Natural language detection library for Rust. Try demo online: https://whatlang.org/
This tool helps you automatically figure out what natural language a piece of text is written in. You provide any text, and it tells you the language (like English, Spanish, or Japanese) and the writing system (like Latin or Cyrillic script). This is for software developers building applications that need to process text in various languages, such as search engines or content management systems.
About lingua-rs
pemistahl/lingua-rs
The most accurate natural language detection library for Rust, suitable for short text and mixed-language text
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.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work