def _edit1(self, w):
<EOL>split = [(w[:i], w[i:]) for i in range(len(w) + <NUM_LIT:1>)]<EOL>delete, transpose, replace, insert = (<EOL>[a + b[<NUM_LIT:1>:] for a, b in split if b],<EOL>[a + b[<NUM_LIT:1>] + b[<NUM_LIT:0>] + b[<NUM_LIT:2>:] for a, b in split if len(b) > <NUM_LIT:1>],<EOL>[a + c + b[<NUM_LIT:1>:] for a, b in split for c in Spelling.ALPHA if b],<EOL>[a + c + b[<NUM_LIT:0>:] for a, b in split for c in Spelling.ALPHA]<EOL>)<EOL>return set(delete + transpose + replace + insert)<EOL>
Returns a set of words with edit distance 1 from the given word.