Socket
Socket
Sign inDemoInstall

language-grammar-api

Package Overview
Dependencies
51
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
9
increased by200%
Maintainers
1
Install size
5.37 MB
Created
Weekly downloads
 

Readme

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

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

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

const languageToolClient = new LanguageToolApi(options);
  1. Get list of supported languages:
const languages = await languageToolClient.languages();
  1. 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

FAQs

Last updated on 11 Mar 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc