1 | The Spellcheck.py file was extremely easy to create given |
2 | the function checkPassage which checks the entire input.txt |
3 | file. However, I had to make a very large and dangerous |
4 | assumption regarding this function was what it actually |
5 | returned. The function is defined to “Checks to make sure |
6 | all the words in the passage are spelled correctly.”, |
7 | however it does not specify how it checks or what it |
8 | returns. I assumed that the function checks the passage for |
9 | misspelled words and returns a list of those misspelled |
10 | words and the number of times it found the misspelled word |
11 | in the file. |