| Crates.io | rspell |
| lib.rs | rspell |
| version | 0.1.1 |
| created_at | 2019-12-24 18:29:20.543353+00 |
| updated_at | 2019-12-24 18:35:56.681039+00 |
| description | A simple practical spellcheker. |
| homepage | |
| repository | https://github.com/casimir/rspell |
| max_upload_size | |
| id | 192153 |
| size | 4,611,688 |
A simple practical spellcheker.
This crate wraps hunspell's source directly. To do so it uses the cc-rs
crate when building. As such the same limitations applies, for example a compiler must be
installed on the system.
let spell = rspell::Spell::new("en_US").unwrap();
assert!(!spell.check_word("colour").correct());
assert!(spell.check_word("color").correct());
for bad in spell.check("Wht color is this flg?") {
println!(
"{} (offset: {}): possible corrections: {:?}",
bad.word, bad.offset, bad.suggestions
);
}
cc-rs crateThis project is licensed under either of
Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
MIT license (http://opensource.org/licenses/MIT)
Hunspell's licensing applies to hunspell's source files.