Title: Aspell to check spelling
Author: Solène
Date: 12 February 2019
Tags: unix
Description:
I never used a command line utility to check the spelling in my texts
because I
did not know how to do. After taking five minutes to learn how to do
it, I feel
guilty about not having used it before as it is really simple.
First, you want to install aspell package, which may be already there
pulled as
a dependency. In order to proceed on OpenBSD it's easy:
# pkg_add aspell
I will only explain how to use it on text files. I think it is possible
to have
some integration with text editors but then, it would be more relevant
to check
out the editor documentation.
If I want to check the spelling in my file *draft.txt* it is as simple
as:
$ aspell -l en_EN -c draft.txt
The parameter `-l en_EN` will depend of your locale, I have fr_FR.UTF-8
so aspell
uses it by default if I don't enforce another language. With this
command, aspell
will make an interactive display in the terminal
The output looks like this, with the word **ful** highlighted which I
can not
render in my article.
It's ful of mistakkes!
dataswamp.org:70 /~solene/article-aspell:42: port field too long