LinuxCommandLibrary

aspell

TLDR

Check a file

$ aspell check [file.txt]
copy
Check with specific language
$ aspell --lang=[es] check [file.txt]
copy
List available dictionaries
$ aspell dicts
copy
Check from stdin
$ echo "speling errror" | aspell list
copy
Create personal dictionary
$ aspell --lang=[en] create master [./custom.rws] < [wordlist.txt]
copy

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
-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

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)

Copied to clipboard