aspell

Interactive spell checker

TLDR

Check a file
$ aspell check [file.txt]
Check with specific language
$ aspell --lang=[es] check [file.txt]
List available dictionaries
$ aspell dicts
Check from stdin
$ echo "speling errror" | aspell list
Check a TeX/LaTeX file (ignoring TeX commands)
$ aspell --mode=tex check [file.tex]
Create personal dictionary
$ aspell --lang=[en] create master [./custom.rws] < [wordlist.txt]

SYNOPSIS

aspell [options] mode [file]

DESCRIPTION

aspell is a spell checker designed to replace ispell. It can check individual files, work as a pipe filter, or provide a C library interface for other programs.The tool supports multiple languages, personal dictionaries, and has better suggestion algorithms than older spell checkers.

PARAMETERS

check file

Interactively check file
list
List misspelled words from stdin
pipe
Output misspelled words with position info (used by editors)
-c file
Same as check (GNU ispell compatibility)
--lang=code
Language code (en, es, fr, etc.)
--mode=mode
Parsing mode (tex, html, markdown, etc.)
--encoding=enc
File encoding
--add-extra-dicts=list
Additional dictionaries
--personal=file
Personal dictionary file
--ignore=n
Ignore words ≤ n characters
--ignore-case
Case insensitive checking
dicts
List available dictionaries
dump mode
Dump dictionary information

CONFIGURATION

/etc/aspell.conf

System-wide configuration for default language, dictionary paths, and options.
~/.aspell.conf
Per-user configuration overriding system defaults.

INSTALL

sudo apt install aspell
sudo dnf install aspell
sudo pacman -S aspell
sudo apk add aspell
sudo zypper install aspell
brew install aspell
nix profile install nixpkgs#aspell

CAVEATS

Language dictionaries must be installed separately. Personal dictionary format differs from ispell. Some applications use hunspell instead.

HISTORY

aspell was created by Kevin Atkinson and first released in 2001 as an improvement over ispell, featuring better suggestion algorithms and Unicode support.

SEE ALSO

ispell(1), hunspell(1), spell(1)