Crates.io | stava |
lib.rs | stava |
version | 0.6.2 |
source | src |
created_at | 2020-01-02 20:04:06.561877 |
updated_at | 2020-11-14 09:59:02.311829 |
description | CLI spell checker |
homepage | https://github.com/simeg/stava |
repository | https://github.com/simeg/stava |
max_upload_size | |
id | 194602 |
size | 6,513,392 |
CLI tool to perform spell checking.
Rust implementation of Peter Norvig's Spell Corrector.
USAGE:
stava [FLAGS] <WORD> [FILES]...
FLAGS:
-d, --default Include default set of words (default: false)
-o, --exit-code-only Only return exit code and not corrected word (default: false)
-e, --exit-code Exit with 1 if word is not spelled correctly, otherwise 0 (default: false)
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<WORD> Word to correct
<FILES>... Files to learn words from
stava
knows how to ignore themCurrently stava
only supports the English alphabet.
$ cargo install stava
Use the default set of words
$ stava bycycle
bicycle
Use your own files
$ echo "bicycle" > words.txt
$ echo "some other words" > words2.txt
$ stava bycycle words.txt words2.txt
bicycle
Use your own files and the default set of words
$ echo "some words" > words.txt
$ stava --default mankey words.txt
monkey
With exit code
$ stava --exit-code bycycle # Word is corrected so exit code = 1
bicycle
$ echo $?
1
$ stava --exit-code-only bycycle # Word is corrected so exit code = 1
$ echo $?
1