Tip: Run a local LanguageTool server to correct your spelling/grammar in your prompts

Tutorial | Guide

If you give a LLM dumb prompts, it gives you dumb responses... that's what they do. They see incorrect writing and try to continue the style, reaching into the 300 billion dumb misspelled Internet responses they were trained on.

Hence, good grammar and spelling goes a long way, and it turns out there's a local/offline way to check this right in web uis: languagetool.

The installation procedure on CachyOS Arch Linux is this:

  • Run sudo pacman -Syu languagetool

  • Optionally install the n-gram checker with paru -S languagetool-ngrams-en

  • Run languagetool --http --public

  • Now go to your extension store, install this: https://chromewebstore.google.com/detail/grammar-checker-paraphras/oldceeleldhonbafppcapldpdifcinji

  • Go to the extension settings, advanced settings, select 'local server'

  • Bob is your uncle. Languagetool will check all sorts of grammar and style as you type, and use your own CPU/RAM to do it (about 2GB of RAM and some CPU spikes when it checks).

This has significantly improved the quality of my LLM conversations, and it's easy. But I hope this installation ease translates to Windows and other Linux distros as well.

Posted Feb 8, 2024, 2:20 AM UTC · edited

3110
Loading comments…