Spelling and grammar checking using the Web as a text repository