Rust implementation of hfst-ospell.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


An implementation of hfst-ospell in Rust, with added features like tokenization, case handling, and being thread safe.

Build Status

No rust?

curl -sSf | sh
source $HOME/.cargo/env
rustup default nightly
cargo build --bin divvunspell --features binaries --release

Building command line frontend

To build the command line frontend for testing spellers:

cargo build --bin divvunspell --features binaries --release

The result will be in the target/release/ directory. To install the binary on your $PATH:

cargo install --bin divvunspell --features binaries --path .


divvunspell 0.2.0
Brendan Molloy <>
Testing frontend for the DivvunSpell library

    divvunspell [FLAGS] [OPTIONS] --zhfst <ZHFST> [WORDS]...

    -h, --help       Prints help information
        --json       Output results in JSON
    -s, --suggest    Show suggestions for given word(s)
    -V, --version    Prints version information

    -n, --nbest <nbest>      Maximum number of results for suggestions
    -w, --weight <weight>    Maximum weight limit for suggestions
    -z, --zhfst <ZHFST>      Use the given ZHFST file

    <WORDS>...    The words to be processed

Please note that the ZHFST file must be uncompressed. ZHFST files built by the Giella infrastructure in the dir LANGUAGE/tools/spellcheckers/mobile/hfst/*.zhfst are uncompressed, and can be used directly with divvunspell.


This project is licensed under either of

at your option.