1.0.5 • Published 7 months ago

@funboxteam/languagetool-node v1.0.5

Weekly downloads
12
License
MIT
Repository
github
Last release
7 months ago

⛔ THIS REPO IS UNMAINTAINED

Future development moved to https://github.com/343dev/languagetool-node.

@funboxteam/languagetool-node

npm

CLI spell and grammar checker. Uses LanguageTool under the hood.

По-русски

Rationale

Some projects have a lot of documentation inside the repos. Once we decided to start linting their grammar and check for spelling errors. But we didn't want to send our docs to the unknown servers of the well-known services.

Hence, we decided to build our own CLI tool upon the LanguageTool.

Getting Started

LanguageTool requires Java to work, so first of all go to java.com and download it.

Then install the package:

npm i -g @funboxteam/languagetool-node

It's recommended to install the package globally, because archive with LanguageTool will be downloaded (≈250 MB) and unzipped it into the package directory.

Usage

The tool can check the passed files or the text from STDIN.

Check files:

languagetool-node README.md CHANGELOG.md

Check files defined using globs:

languagetool-node ~/project1/**/*.txt ~/project2/*.md

Check the text from STDIN:

echo "Insert your text here .. or check this textt. LanguageTool 4.0 were releasd on Thursday 29 december 2017." | languagetool-node

External configuration file

It's possible to override default options by creating file ~/.languagetoolrc.js. It will be merged with default config.

Example of external config:

module.exports = {
  // allowed words (regexps are supported)
  ignore: [
    '(T|O)TF',
  ],
};

Credits

The picture for the project was made by Sergey Mylnikov & Igor Garybaldi.

Sponsored by FunBox