def check(doc): """Parse document and look for awkward words. the document that the function check() takes is a file that has been read and is essentially a string. check takes a text document and goes through the file. It returns a list of mispelled words.""" doc = doc.split() file = open('dict.txt') dict = file.read().split() mispells = [] for word in doc: if word not in dict: mispells.append(word) print mispells def suggest(word): """Suggest alternate spelling of word. suggest takes a word from the text that does not match any word in the dict ionary. It then recommends the closest word to the awkard spelled word.""" pass def ignore(word): """Do not change the awkard spelled word. ignore skips the awkard word and goes on to another""" pass def ignore_all(word): """Do not change any words that are identical to this word. ignore_all remembers the word being checked and does not flag it as an error in the remainder of the document.""" pass def add(word): """Add word to the dictionary add takes a word and inserts it into the dictionary. Future spell checks will not flag this work as mispelled.""" pass def options(): """Bring menu for changing spellcheck preferences. options allows the user to change how the spellcheck works. Some examples can be to set it to check as you type, always suggest corrections, ignore words with number, etc. The user can also add different dictionaries for different languages.""" pass