language tool

This commit is contained in:
Tomasz Borychowski 2022-05-23 23:08:41 +01:00
parent 43514cc9cb
commit 8ab20489b7
2 changed files with 38 additions and 0 deletions

View File

@ -270,6 +270,7 @@ The aims is to provide a ready-to-run recipes that you can just copy, paste and
- [Cockpit](apps/other/cockpit.md)
- [Code server](apps/other/code.md)
- [Firefox sync server](apps/other/firefox-sync.md)
- [LanguageTool server](apps/other/language-tool.md)
- [VPN client](apps/other/vpn.md)

View File

@ -0,0 +1,37 @@
# LanguageTool
Multilingual grammar, style, and spell checker (similar to Grammarly).
<br>
- [Official Site](https://languagetool.org)
- [Github repo](https://github.com/Erikvl87/docker-languagetool)
- [Docker Hub](https://hub.docker.com/r/erikvl87/languagetool)
## Optional n-gram data
LanguageTool can make use of large n-gram data sets to detect errors with words that are often confused, like `their` and `there`.
1. Download n-gram data: https://languagetool.org/download/ngram-data/
2. Uncomment n-gram volume and env variable below
## docker-compose.yml
```yml
---
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:
# - ./data:/ngrams
```
And then, in a browser extension:
- in `LanguageTool API server URL:` select `Other server`
- enter: `http://<SERVER IP>:8010/v2`