1 | def set_dictionary(filename):
|
2 | """
|
3 | Load the specified file as the dictionary, overwriting any previous dictionaries.
|
4 | """
|
5 | pass
|
6 |
|
7 | def add_dictionary(filename):
|
8 | """
|
9 | Add the words in the specified file to the dictionary.
|
10 | """
|
11 | pass
|
12 |
|
13 | def add_to_dictionary(word):
|
14 | """
|
15 | Add the argument to the dictionary.
|
16 | """
|
17 | pass
|
18 |
|
19 | def delete_from_dictionary(word):
|
20 | """
|
21 | Remove the argument from the dictionary.
|
22 | """
|
23 | pass
|
24 |
|
25 | def ignore_word(word):
|
26 | """
|
27 | Do not find this word as misspelled until the spellchecker exits or is
|
28 | reloaded, even though it is not in the dictionary.
|
29 | """
|
30 | pass
|
31 |
|
32 | def find_alternate_words(word):
|
33 | """
|
34 | Return a list of the closest matches if the word is not in the dictionary,
|
35 | or an empty list if it is.
|
36 | """
|
37 | pass
|
38 |
|
39 | def spellcheck_text(document_string, index):
|
40 | """
|
41 | Starting at character <index>, and taking non-letter characters such as
|
42 | punctuation or whitespace to be dividers between words, return the position
|
43 | of the first character of the first word in the list not in the dictionary,
|
44 | or -1 if no such words are found.
|
45 | """
|
46 | pass |