Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.64 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.64 KB

ryaspeller

Actions Status Coverage badge dependency status Doc Crates.io

ryaspeller (Rust Yandex Speller) is a tool and library for searching typos in text, files and websites.

Uses Yandex.Speller API. (restrictions)

Installation

  • binary
cargo install cargo-binstall && cargo binstall ryaspeller
  • from sources
cargo install ryaspeller

Usage

  • binary:
$ ryaspeller "text_or_path_or_url"
$ ryaspeller russt --lang en
rust
$ ryaspeller ./doc --lang en,ru
$ ryaspeller https://team-tricky.github.io > page.html
  • library:
use ryaspeller::Speller;
let speller = Speller::default();
let spelled = speller.spell_text("Triky Custle is a funny puzzle game.").unwrap();
assert!(spelled == "Tricky Castle is a funny puzzle game.");

There are also available python and javascript versions of this speller.