stava Crate Status Build Status

CLI tool to perform spell checking.

Rust implementation of Peter Norvig's Spell Corrector.

```bash USAGE: stava [FILES]...

ARGS: Word to correct ... Files to learn words from ```

Currently stava only supports the English alphabet.

Installation

bash $ cargo install stava

Usage

Use the default word file bash $ stava bycycle bicycle

Use your own files bash $ 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 bash $ echo "bicycle" > words.txt $ echo "some other words" > words2.txt $ stava --default mankey words.txt words2.txt monkey

With exit code bash $ stava --exit-code bycycle # Word is corrected so exit code = 1 bicycle $ echo $? 1

bash $ stava --exit-code-only bycycle # Word is corrected so exit code = 1 $ echo $? 1