# ryaspeller
[](https://github.com/oriontvv/ryaspeller/actions)
[](https://deps.rs/repo/github/oriontvv/ryaspeller)
[](https://docs.rs/ryaspeller)
[](https://crates.io/crates/ryaspeller)
[ryaspeller](https://github.com/oriontvv/ryaspeller) (Rust Yandex Speller) is a tool and library for searching typos in text, files and websites.
Used [Yandex.Speller API](https://tech.yandex.ru/speller/doc/dg/concepts/About-docpage/). ([restrictions](<https://yandex.ru/legal/speller_api/>))
## Installation
```bash
cargo install ryaspeller
```
## Usage
* binary:
```bash
$ 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:
```rust
use ryaspeller::{Config, Speller};
let speller = Speller::new(Config::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](https://github.com/oriontvv/pyaspeller/) and [javascript](https://github.com/hcodes/yaspeller) versions of this speller.