greyblake/whatlang-rs
Natural language detection library for Rust. Try demo online: https://whatlang.org/
4 Releases
Latest: 3y ago
Whatlang v0.16.2 - 2022-10-23v0.16.2Latest
📋 Changes
- Add optional [Arbitrary](https://crates.io/crates/arbitrary) support
Whatlang v0.7.0 - 2019-03-03v0.7.0
📋 Changes
- Support Afrikaans language (`afr`)
- Get rid of build dependencies: installation is much faster now
Whatlang version 0.6.0 - 2018-11-09v0.6.0
📋 Changes
- Use hashbrown instead of fnv (detect() is 30% faster)
- Use array on stack instead of vector for detect_script (1-2% faster)
- Use build.rs to generate `lang.rs` file
- Add property based testing
Whatlang version 0.5.0 - 2017-08-06v0.5.0
📋 Changes
- (breaking) Rename `Lang::to_code(&self)` to `Lang::code(&self)`
- (fix) Fix bug with zero division in confidence calculation
- (fix) Confidence can not exceed 1.0
- Implement `Lang::eng_name(&self) -> &str` function
- Implement `Lang::name(&self) -> &str` function
- Implement `Script::name(&self) -> &str` function
- Implement trait `Dislpay` for `Script`
- Implement `Display` trait for `Lang`
