spelling

Crates.iospelling
lib.rsspelling
version0.2.4
sourcesrc
created_at2021-04-07 02:46:43.71198
updated_at2021-04-20 01:12:58.242008
descriptionA spellchecker using the Levenshtein distance as the heuristic for distance.
homepage
repositoryhttps://github.com/frogtd/spelling/
max_upload_size
id380151
size11,964
(frogtd)

documentation

README

spelling

A spellchecker written in rust.

How to use

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 }

Details

This uses the Levenshtein distance as the heuristic for distance.

Commit count: 20

cargo fmt