| Crates.io | spelling |
| lib.rs | spelling |
| version | 1.0.0 |
| created_at | 2021-04-07 02:46:43.71198+00 |
| updated_at | 2025-09-21 08:40:41.838847+00 |
| description | A spellchecker using the Levenshtein distance as the heuristic for distance. |
| homepage | |
| repository | https://github.com/frogtd/spelling/ |
| max_upload_size | |
| id | 380151 |
| size | 16,065 |
A spellchecker written in rust.
use spelling::spellcheck;
let dictionary_string = include_str!("words.txt"); // newline separated
spellcheck(dictionary_string, "restaraunt", 3);
If you can't use rayon use default-features = false in your Cargo.toml.
[dependencies]
spelling = { version = "2.2", default-features = false }
This uses the Levenshtein distance as the heuristic for distance.