code: def candidates(word): 
      "Generate possible spelling corrections for word."
      return (known([word]) or known(edits1(word)) or known(edits2(word)) or [word]f candidates(word): 
      "Generate possible spelling corrections for word."
      return (known([word]) or known(edits1(word)) or known(edits2(word)) or [word])
docs: Generate possible spelling corrections for word.