feat: custom word list

This commit is contained in:
2026-06-15 15:09:27 +02:00
parent f91384173b
commit 85a1c47c8c
6 changed files with 31 additions and 15 deletions
+2 -2
View File
@@ -8,10 +8,10 @@ import unidecode
class WordList:
__slots__ = ["__filepath", "__name", "logger", "words"]
def __init__(self, name: str, path: str, filename: str) -> None:
def __init__(self, name: str, path: str) -> None:
self.logger: logging.Logger = logging.getLogger(self.__class__.__name__)
self.__name = name
self.__filepath = pathlib.Path(__file__).parent / ".." / path / filename
self.__filepath = pathlib.Path(__file__).parent / ".." / path
self.words: list[str] = []
def open(self) -> None: