def __init__(self, wd: Optional[WordDictionary]=None):
self.wd = wd  <EOL>if not self.wd:<EOL><INDENT>self._regenerate_word_dict()<EOL><DEDENT>
We need the word dictionary here in order to pass it to the string to
translate when it will get rendered.

:param wd: a configured WordDictionary