rspell

Crates.iorspell
lib.rsrspell
version0.1.1
sourcesrc
created_at2019-12-24 18:29:20.543353
updated_at2019-12-24 18:35:56.681039
descriptionA simple practical spellcheker.
homepage
repositoryhttps://github.com/casimir/rspell
max_upload_size
id192153
size4,611,688
Martin Chaine (casimir)

documentation

README

rspell

crates.io rspell docs

A simple practical spellcheker.

Dependencies caveats

This crate wraps hunspell's source directly. To do so it uses the cc-rs crate when building. As such the same limitations applies, for example a compiler must be installed on the system.

Example

let spell = rspell::Spell::new("en_US").unwrap();

assert!(!spell.check_word("colour").correct());
assert!(spell.check_word("color").correct());

for bad in spell.check("Wht color is this flg?") {
    println!(
        "{} (offset: {}): possible corrections: {:?}",
        bad.word, bad.offset, bad.suggestions
    );
}

Loose goals

  • multi-lang support
  • remove the need for the cc-rs crate

License

This project is licensed under either of

Hunspell's licensing applies to hunspell's source files.

Commit count: 4

cargo fmt