Moved more spelling logic into the SpellingProcessor class.