✍🏻 | Korrektor fork of rspell maintained for korrektor-rs
Find a file
2023-06-09 10:33:05 +05:00
.github/workflows [FIX] fix branch, add env setup and check 2023-06-09 10:33:05 +05:00
examples initial commit 2019-12-24 18:58:46 +01:00
files initial commit 2019-12-24 18:58:46 +01:00
hunspell@8c773334f3 initial commit 2019-12-24 18:58:46 +01:00
src [FIX] remove local_files feature in general 2023-06-08 15:57:36 +05:00
.gitignore initial commit 2019-12-24 18:58:46 +01:00
.gitmodules initial commit 2019-12-24 18:58:46 +01:00
build.rs initial commit 2019-12-24 18:58:46 +01:00
Cargo.toml [FIX] remove local_files feature in general 2023-06-08 15:57:36 +05:00
LICENSE.Apache20.txt initial commit 2019-12-24 18:58:46 +01:00
LICENSE.MIT.txt initial commit 2019-12-24 18:58:46 +01:00
README.md fix typo 2019-12-24 19:35:11 +01:00

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.