def add(self, gender: str, word: str):
    'Add a new word to the list.\n        \n        Args:\n            gender (str): The gender of the word being added.\n            word (str): The word to add.\n        \n        Raises:\n            ValueError: `gender` does not match the current wordlist or the word is\n                already present in the list.\n        '
    gender = self.format_gender(gender)
    word = word.capitalize()
    if (gender not in self.structure['genders']):
        raise ValueError(f'{gender} is not a valid gender for the current wordlist.')
    if (word in self.words.index):
        raise ValueError(f'{word} is already included.')
    n_genders = len(self.structure['genders'])
    row = [gender, self.structure['default guesses'], (self.structure['default guesses'] * (n_genders - 1)), ((n_genders - 1) / n_genders)]
    self.words.loc[word] = row
Add a new word to the list.

Args:
    gender (str): The gender of the word being added.
    word (str): The word to add.

Raises:
    ValueError: `gender` does not match the current wordlist or the word is
        already present in the list.
def add(self, gender: str, word: str):
    'Add a new word to the list.\n        \n        Args:\n            gender (str): The gender of the word being added.\n            word (str): The word to add.\n        \n        Raises:\n            ValueError: `gender` does not match the current wordlist or the word is\n                already present in the list.\n        '
    gender = self.format_gender(gender)
    word = word.capitalize()
    if (gender not in self.structure['genders']):
        raise ValueError(f'{gender} is not a valid gender for the current wordlist.')
    if (word in self.words.index):
        raise ValueError(f'{word} is already included.')
    n_genders = len(self.structure['genders'])
    row = [gender, self.structure['default guesses'], (self.structure['default guesses'] * (n_genders - 1)), ((n_genders - 1) / n_genders)]
    self.words.loc[word] = row