16 lines
272 B
Python
16 lines
272 B
Python
words = set()
|
|
|
|
def check(word):
|
|
return word.lower() in words
|
|
|
|
def load(dictionary):
|
|
with open(dictionary) as file:
|
|
words.update(file.read().splitlines())
|
|
return True
|
|
|
|
def size():
|
|
return len(words)
|
|
|
|
def unload():
|
|
return True
|