Multilingual grammar, style, and spell checker (similar to Grammarly).
LanguageTool can make use of large n-gram data sets to detect errors with words that are often confused, like their
and there
.
-
Download & unzip n-gram data for your language: https://languagetool.org/download/ngram-data/
wget https://languagetool.org/download/ngram-data/ngrams-en-20150817.zip unzip ngrams-en-20150817.zip
-
Uncomment n-gram volume and env variable below
---
version: "3"
services:
languagetool:
image: erikvl87/languagetool
container_name: languagetool
restart: unless-stopped
ports:
- 8010:8010 # Using default port from the image
environment:
# - langtool_languageModel=/ngrams # OPTIONAL: Using ngrams data
- Java_Xms=512m # OPTIONAL: Setting a minimal Java heap size of 512 mib
- Java_Xmx=1g # OPTIONAL: Setting a maximum Java heap size of 1 Gib
volumes:
- ./ngrams:/ngrams
And then, in a browser extension:
- in
LanguageTool API server URL:
selectOther server
- enter:
http://<SERVER IP>:8010/v2
This is using libregrammar version, which (allegedly) provides the premium features for free.
---
services:
languagetool:
image: registry.gitlab.com/py_crash/docker-libregrammar
container_name: languagetool
restart: unless-stopped
environment:
- langtool_languageModel=/ngrams # OPTIONAL: Using ngrams data
- Java_Xms=512m # OPTIONAL: Setting a minimal Java heap size of 512 mib
- Java_Xmx=1g # OPTIONAL: Setting a maximum Java heap size of 1 Gib
ports:
- "8081:8081"
volumes:
- ./ngrams:/ngrams