6 releases
0.2.3 | Jan 16, 2020 |
---|---|
0.2.2 | Jan 15, 2020 |
0.1.1 | Jan 15, 2020 |
#9 in #typo
2.5MB
241 lines
spelling_corrector
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")
lib.rs
:
spelling-corrector
A simple command line utility / library to correct typos. 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")
Dependencies
~5–14MB
~159K SLoC