Spellchecker implemented in Python