ARCHIVED: In Unix, what is Ispell and how do I use it to spell-check files?

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

Ispell is a spell-checking program available for many Unix implementations. To use it, at your Unix shell prompt, enter:

  ispell filename

Replace filename with the name of the file you wish to check.

In this case, for each word that does not appear in its dictionary, Ispell will display the word at the top of the screen and allow you to change it. Additionally:

  • If the dictionary contains any near misses (i.e., words that differ by only a single letter, a missing or extra letter, a pair of transposed letters, or a missing space or hyphen), Ispell will display them on following lines.
  • As well as near misses, Ispell may display other guesses at ways to make the word from a known root, with each guess preceded by question marks.
  • Finally, Ispell will print the line containing the word and the previous line at the bottom of the screen. If your terminal can display in reverse video, Ispell highlights the word itself. You can replace the word completely, or choose one of the suggested words.

Basic Ispell commands include:

r
Replace the misspelled word completely.
Spacebar
Accept the word this time only.
a
Accept the word for the rest of this Ispell session.
i
Accept the word, capitalized as it is in the file, and update the private dictionary.
u
Accept the word, and add a lowercase version to the private dictionary.
0, 1, ... n
Replace with the suggested word corresponding to that number.
l (the letter L)
Look up words in system dictionary (controlled by the WORDS compilation option).
x
Write the rest of this file, ignoring misspellings, and start the next file.
q
Exit immediately and leave the file unchanged.
! Escape to the Unix shell.
Ctrl-l (the letter L) Redraw the screen.
Ctrl-z Suspend Ispell.
? Show the help screen.

Note: You can type these commands in either lowercase or uppercase; commands in Ispell are not case sensitive.

For more about Ispell, see the man page for Ispell. At the Unix shell prompt, enter man ispell.

At Indiana University, for personal or departmental Linux or Unix systems support, see Get help for Linux or Unix at IU.

This is document abxb in the Knowledge Base.
Last modified on 2018-01-18 08:48:58.