Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lujanfernaud
Last active July 24, 2020 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lujanfernaud/694b716cddabe19cc5c73f59e453381c to your computer and use it in GitHub Desktop.
Save lujanfernaud/694b716cddabe19cc5c73f59e453381c to your computer and use it in GitHub Desktop.
LanguageTool: Running it Locally

LanguageTool: Running it Locally

Resources

Requisites

  • An SSD drive for lookup speed
  • Around 9 Gb of space for the required libraries and the English ngrams
  • Around 700 Mb of RAM

Ngrams

Download the ngrams from the following URL:

Docker Image

Download and run the following Dockerfile:

Example command to run it:

sudo docker run --rm -it -p 8010:8010 -e langtool_languageModel=/ngrams -v local/path/to/ngrams:/ngrams erikvl87/languagetool

Having the ngrams on ~/ngrams, the command would be like this:

sudo docker run --rm -it -p 8010:8010 -e langtool_languageModel=/ngrams -v /ngrams:/ngrams erikvl87/languagetool

Browser extensions

Firefox

https://addons.mozilla.org/en-US/firefox/addon/languagetool

Chrome

https://chrome.google.com/webstore/detail/grammar-and-spell-checker/oldceeleldhonbafppcapldpdifcinji

Extensions config

  • Open the extension settings and click on “Experimental Settings”
  • Select “Other server” and introduce the address where your LanguageTool server is running

The Dockerfile from Erikvl87 runs the server on port 8010, so we will need to use the following address:

http://localhost:8010/v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment