check_file(file) is rather ambiguous about its output. It only states that it checks a file for misspelled words. If I had felt mean, I would have assumed that it did exactly what part uno was asking for. check_text(text) suffers from the same problem. The more literal functions for tokenizing and file reading and single word checking were fine, so I used those. I assumed read_dictionary took the string representing a filename.