Framework for spellchecker