Crate grammarbot

Source
Expand description

§grammarbot-rs

An API client for GrammarBot - a free grammar checking API.

§Usage

A Client is the primary way to interact with the API.

use grammarbot::Client;
let client = Client::new("your_api_key");

Use check to check your texts.

let response = client.check("I can't remember how to go their.");

The Response struct stores all information in the fields that you can access directly:

assert_eq!("CONFUSION_RULE", response.matches[0].rule.id);

Modules§

types
All the entities used in responses from the API.

Structs§

Client
The primary way to interact with the API.
Response
A typed representation of the JSON response.

Enums§

Error
A domain-specific error type.

Type Aliases§

Result
A short alias for a Result with Error.