Download this file.
Please log in if you would like to add comments. | |
1 | Uses a global (in this file) variable to store the dictionary | 2 | | 3 | def loaddict(dictfile): | 4 | """Takes in a filename and hashes the words in the dictionary into a hashtable | 5 | | 6 | def addword(word): | 7 | """Adds word to dictionary, both to internal hashtable and to custom dictionary file | 8 | | 9 | def delword(word): | 10 | """Deletes word from dictionary, both the internal hashtable and the custom dictionary file | 11 | | 12 | def isindict(word): | 13 | """Checks the word to see if it is in the dictionary. Returns 1 if in the dictionary, 0 if not. | 14 | | 15 | def isindict(word): | 16 | """Checks the word to see if it is in the dictionary. Returns 1 if in the dictionary, 0 if not. |
|