| Crates.io | sporky-checker |
| lib.rs | sporky-checker |
| version | 1.0.1 |
| created_at | 2024-12-17 16:56:39.811663+00 |
| updated_at | 2024-12-18 13:01:54.644576+00 |
| description | Simple levenshtein spell checker app |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1486473 |
| size | 4,348,384 |
A very simple Levenshtein-based spell checker that finds approximate matches for a given word by comparing to a word list. Implemented in rust.
From crates.io:
cargo install sporky-checkerFrom source:
git clone https://github.com/SporkyDevelops/Sporky-levenshtein.git
cd Sporky-levenshtein
cargo build --release
cd /target/release/
./spork-checker
spork-checker [OPTIONS] [TARGET]
[TARGET]: The target word to check against the word list.
-v, --verbose: Show detailed output, including the Levenshtein distance for each match.-n, --number [NUMBER]: Specify the number of matches to display (default: 5).spork-checker ruzt -n 1
Possible Matches:
- 'rust'
The application reads a word list from en.txt. This files is built into the binary, if not specify the path in the read_word_list function.
(i-1, j) deletion
(i, j-1) insertion
(i-1, j-1) substitution
Photo source: Datumorphism
Author
Sporky Develops