def edits1(word):
letters    = '<STR_LIT>'<EOL>splits     = [(word[:i], word[i:])    for i in range(len(word) + <NUM_LIT:1>)]<EOL>deletes    = [L + R[<NUM_LIT:1>:]               for L, R in splits if R]<EOL>transposes = [L + R[<NUM_LIT:1>] + R[<NUM_LIT:0>] + R[<NUM_LIT:2>:] for L, R in splits if len(R)><NUM_LIT:1>]<EOL>replaces   = [L + c + R[<NUM_LIT:1>:]           for L, R in splits if R for c in letters]<EOL>inserts    = [L + c + R               for L, R in splits for c in letters]<EOL>return set(deletes + transposes + replaces + inserts)<EOL>
All edits that are one edit away from `word`.