https://github.com/oleg-koval/language-grammar-api
API wrapper for LanguageTool (grammar check) API based as a plugin for Trembita.js
https://github.com/oleg-koval/language-grammar-api
api api-wrapper check-grammar grammar grammar-api grammar-check hacktoberfest language-tool trembita-plugin
Last synced: 11 months ago
JSON representation
API wrapper for LanguageTool (grammar check) API based as a plugin for Trembita.js
- Host: GitHub
- URL: https://github.com/oleg-koval/language-grammar-api
- Owner: oleg-koval
- Created: 2019-02-14T10:03:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-07-14T06:43:56.000Z (11 months ago)
- Last Synced: 2025-07-14T09:38:30.664Z (11 months ago)
- Topics: api, api-wrapper, check-grammar, grammar, grammar-api, grammar-check, hacktoberfest, language-tool, trembita-plugin
- Language: JavaScript
- Homepage:
- Size: 2.58 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
node.js grammar / language tool api
===================================
[](https://codecov.io/gh/oleg-koval/language-grammar-api) [](https://circleci.com/gh/oleg-koval/language-grammar-api/tree/master) [](https://greenkeeper.io/)
# About
API wrapper for https://languagetool.org/ service (LanguageTool HTTP JSON API)
# Install
```sh
npm i -S language-grammar-api
```
# Usage
1. Create client
```js
const LanguageToolApi = require('language-grammar-api');
const options = {
endpoint: 'https://languagetool.org/api/v2'
};
const languageToolClient = new LanguageToolApi(options);
```
2. Get list of supported languages:
```js
const languages = await languageToolClient.languages();
```
3. Check your text for specific language:
```js
const check = await languageToolClient.check({
text: 'Amazing text to check', // required
language: 'en-US' // required (you can use .languages call to get language)
});
```
More details about api: http://wiki.languagetool.org/public-http-api