1 | #!/usr/bin/env python
|
2 | # Calvin Smith
|
3 | # Craft assignment 2 part trois
|
4 | # 2/02/03
|
5 |
|
6 | def setdictionary(dictionaryfilename):
|
7 | """Set the dictionary to be used.
|
8 | dictionaryfilename gives the filename of the dictionary.
|
9 | """
|
10 | pass
|
11 |
|
12 | def addword(word):
|
13 | """Add a word to the dictionary."""
|
14 | pass
|
15 |
|
16 | def deleteword(word):
|
17 | """Delete a word from the dictionary."""
|
18 | pass
|
19 |
|
20 | def checktext(text):
|
21 | """Spellcheck a chunk of text."""
|
22 | pass
|
23 |
|
24 | def splittext(text):
|
25 | """Split up text into a list of words."""
|
26 | pass
|
27 |
|
28 | def removenonwordchars(text):
|
29 | """Remove non-word characters such as numbers and punctuation from text."""
|
30 | pass
|
31 |
|
32 | def checkword(word):
|
33 | """Spellcheck an individual word."""
|
34 | pass
|
35 |
|
36 | def getsuggestions(misspelledword):
|
37 | """Suggest correctly spelled similar words to the misspelled word."""
|
38 | pass |