def METHOD_NAME(self, word: str) -> bool:
    """Add a word to the project dictionary."""
    word = word.strip()
    if not word:
        return False
    try:
        self._enchant.add_to_session(word)
    except Exception:
        return False
    added = self._userDict.add(word)
    if added:
        self._userDict.save()
    return added