Langram - the most accurate language detection library
Over 200 languages
This library is a complete rewrite of Lingua: more languages, more accuracy, faster, etc.
Setup
To use it, you need to patch langram_models in Cargo.toml:
- From Git:
[patch.crates-io]
langram_models = { git = "https://github.com/RoDmitry/langram_models.git" }
- From predownloaded copy:
[patch.crates-io]
langram_models = { path = "../langram_models" }
Which is more advanced and allows you to remove model ngrams, so that final executable would be lighter.