Ispell is a program that helps you to correct spelling errors in a file, and to find the correct spelling of words. When presented with a word that is not in the dictionary, ispell attempts to find near misses that might include the word you meant.
This manual describes how to use ispell, as well as a little about its implementation.