Dictionary: Technology

VSCode Grammar Checks

Improving grammar when writing in VSCode

2020-05-31
2 minutes

I write quite a lot. Whether it be coursework, blog posts, or any other random thing. Most of my time is spent in either VSCode or QOwnNotes, neither of which have any kind of spelling and grammar checking. It’s rare I’ll actually go back over something and fully check its grammar, unless there’s a very obvious issue or typo. What I really want is something automated to do it for me.

#Spelling Check

To check spelling, I use code-spell-checker. It runs really quickly and works for both regular text and source code files, which makes spotting typos in code much easier. It’s not perfect, and there are words it doesn’t understand but really should, but it’s good enough for me!

#Grammar check

Grammar checking was the one I’ve added most recently, and realized the grammar in some of my posts is shockingly bad!

The tool I settled on was languagetool, which closely resembles Grammarly. It does do some built in spell checking, but it’s not quite good enough to replace code-spell-checker. languagetoolis designed to run as a service, either using the public hosted one, or running it yourself. I’d intended to just run it myself on a server, but that would require internet access which isn’t ideal.

The languagetool extension for VSCode has an additional option called “managed”, where it will start up the server locally on your machine as and when you need it, so long as it’s installed. With languagetool in the arch repos, that was a no-brainer deal, even if was a bit of a pain to set up. Here’s my installation in case it’s useful to someone.

#Summary

Once installed, I went over all the pages and applied the relevant fixes. Judging by the diff, there were a lot. Looking back at some of them, I really can’t write!

But now they’re installed, it definitely feels a lot nicer knowing it’ll catching things, so I don’t deploy embarrassing mistakes. At least not in grammar…

Share this page

Similar content

View all →

Monument to Prometheus at front and the Macedonian Assembly in the background.

Monitoring Prometheus with Healthchecks

2022-12-15
3 minutes

Prometheus is a crazy powerful metrics and monitoring tool. Prometheus not only lets you scrape and collect metrics from other tools like Traefik and HomeAssistant, but also thanks to Blackbox, monitor the availability of other sites. Prometheus' main loop involves scraping a number of "exporters" over HTTP, looking at the…

nologin vs false

2020-03-05
2 minutes

When disabling a user account on a Linux box, it is good practice to also change the shell to something which, well, isn’t a shell. The point of these shells is rather than presenting the user with a prompt to execute further commands, it returns a failure code, and log…

KeePassXC 2.3 Migration Guide

2018-03-03
4 minutes

I’ve been using KeePassXC since not long after it’s initial split from KeePassX in late 2016. I’ve bounced around many password managers, but KeePassXC looked to fill all the boxes:It’s actively maintained, unfortunately unlike KeePassXIt’s open source, and easy to contribute to, as I haveIt’s got all the features I…