()
| 5 | |
| 6 | |
| 7 | def load_dictionary() -> dict[str, None]: |
| 8 | path = os.path.split(os.path.realpath(__file__)) |
| 9 | english_words: dict[str, None] = {} |
| 10 | with open(path[0] + "/dictionary.txt") as dictionary_file: |
| 11 | for word in dictionary_file.read().split("\n"): |
| 12 | english_words[word] = None |
| 13 | return english_words |
| 14 | |
| 15 | |
| 16 | ENGLISH_WORDS = load_dictionary() |
no test coverage detected