#spelling #spellcheck #yandex #api

bin+lib ryaspeller

A tool and lib for searching typos in text, files and websites

5 releases

0.1.4 Jan 5, 2023
0.1.3 Aug 31, 2021
0.1.2 Aug 31, 2021
0.1.1 Aug 31, 2021
0.1.0 Aug 2, 2021

#410 in Text processing

30 downloads per month

Apache-2.0

1MB
372 lines

ryaspeller

Actions Status dependency status Doc Crates.io

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

Used Yandex.Speller API. (restrictions)

Installation

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.");

Also there are available python and javascript versions of this speller.

Dependencies

~7–15MB
~310K SLoC