code: def word_probability(self, word, total_words=None):
          
          if total_words is None:
              total_words = self._word_frequency.total_words
          return self._word_frequency.dictionary[word] / total_words
docs: Calculate the probability of the `word` being the desired, correct
              word
  
              Args:
                  word (str): The word for which the word probability is \
                  calculated
                  total_words (int): The total number of words to use in the \
                  calculation; use the default for using the whole word \
                  frequency
              Returns:
                  float: The probability that the word is the correct word