You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

language-grammar-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

language-grammar-api

API wrapper for LanguageTool (grammar check) API based as plugin for Trembita.js

1.1.6
latest
Source
npmnpm
Version published
Weekly downloads
10
11.11%
Maintainers
1
Weekly downloads
 
Created
Source

node.js grammar / language tool api

codecov CircleCI

About

API wrapper for https://languagetool.org/ service (LanguageTool HTTP JSON API)

Install

npm i -S language-grammar-api

Usage

  • Create client
const LanguageToolApi = require('language-grammar-api');

const options = {
  endpoint: 'https://languagetool.org/api/v2'
};

const languageToolClient = new LanguageToolApi(options);
  • Get list of supported languages:
const languages = await languageToolClient.languages();
  • Check your text for specific language:
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

Keywords

api wrapper

FAQs

Package last updated on 11 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts