- Install LanguageTool
brew install languagetool
- Download the n-gram model for English (it’s 8 GB!) https://dev.languagetool.org/finding-errors-using-n-gram-data
- Create a config file that will tell it to use the n-gram model
languageModel=/path/to/directory/languagetools-ngrams
- Start the server
languagetool-server --allow-origin "*" --config ~/path/to/languagetool-config/config
Set up HTTPS (otherwise some browser extensions might not work).
- Install
caddy
brew install caddy
- Start caddy
caddy run --config ~/path/to/caddy/config.json
(See snippet for the caddy config, feel free to change the ports accordingly)
- Install the extension for your browser (Firefox, Safari, Chrome)
- Go to "Advanced Settings" and choose "Local server (localhost)" as the "LanguageTool API server URL"