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