code: def spell(self, word: str) -> List[str]:
          if not word:
              return ""
          candidates = (
              self.known([word])
              or self.known(_edits1(word))
              or self.known(_edits2(word))
              or [word]
          )
          candidates.sort(key=self.freq, reverse=True)
          return candidates