- Implements a spelling checker by using a hash table.
- Creates a dictionary of correctly spelled words.
- The program prompts the user to type a word and checks for misspelled words. If the word is spelled correctly it prints out “no mistakes found”.
- For misspelled words the program list any words in the dictionary that are obtainable by applying any of the following rules:
- Add one character to the beginning
- Add one character to the end
- Remove one character to the beginning
- Remove one character from the end
- Exchange adjacent characters
Enter Word:
fetchingly
No mistakes found
Enter Word:
ature
Mistakes found
Possible Words:
mature
nature
autre
Enter Word:
timidnes
Mistakes found
Possible Words:
timidness
Enter Word:
baardvark
Mistakes found
Possible Words:
aardvark
Enter Word:
mustyy
Mistakes found
Possible Words:
musty
Enter Word:
scalloin
Mistakes found
Possible Words:
scallion