#Thanh Thai #cs198-ak #speling.py file = open("dict.txt") dictionary = {} #convert file (which is a list) into a dictionary for word in file: dictionary[word] = word def splCheck(wd): """ Checks if wd is a word """ return dictionary.get(wd, dictionary.get(wd.lower())) def pasCheck(aPassage): """ Checks if all the words in a passage is spelled correctly """ pass def specialWord(wd): """ Allows this word to be considered a word """ pass def addWord(wd): """ Adds wd (a word) to the dictionary """ pass def delWord(wd): """ Deletes wd (a word) from the dictionary """ pass