<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def word_probability(self, word, total_words=None):
 """ 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 """

        if total_words is None:
            total_words = self._word_frequency.total_words
        return self._word_frequency.dictionary[word] / total_words