| Crates.io | spelling_corrector |
| lib.rs | spelling_corrector |
| version | 0.2.3 |
| created_at | 2020-01-10 19:19:51.655572+00 |
| updated_at | 2020-01-16 13:12:27.062647+00 |
| description | A simple spelling corrector |
| homepage | |
| repository | https://github.com/NavyaZaveri/spell_checker |
| max_upload_size | |
| id | 197289 |
| size | 6,536,673 |
A simple command line utility / library to correct typos (and an excuse for me to learn some rust ;)). Based on Peter Norvig's excellent article.
Example usage:
use spelling_corrector::corrector;
let correct = corrector::SimpleCorrector::default();
let words = correct.correct_sentence("the architexture is inconcievable");
assert_eq!(words, "the architecture is inconceivable")