| Crates.io | win-spellcheck-rs |
| lib.rs | win-spellcheck-rs |
| version | 1.0.1 |
| created_at | 2025-05-25 13:30:36.471031+00 |
| updated_at | 2025-05-25 14:53:32.492363+00 |
| description | a simple wrapper around the Windows Spellchecking API |
| homepage | |
| repository | https://github.com/l-Luna/win-spellcheck-rs |
| max_upload_size | |
| id | 1688367 |
| size | 10,205 |
a simple wrapper around the Windows Spellchecking API
usage:
let spellchecker = Spellchecker::new_en().expect("Failed to create english spellchecker!");
let text = "another one bitess the dust; another whitness blinded";
let errors = spellchecker.check(text).unwrap();
println!("{errors:?}");
// prints: [SpellingError { start: 12, length: 6, correction: Replacement("bites") }, SpellingError { start: 37, length: 8, correction: Suggestions(["whatness", "whiteness", "witness", "whitens", "whites", "whines"]) }]