|
My project seems to be simple.. but.. with me... It is so hard..
Built a program to check spell(English).
Indication:
input a sentence(in win32 console). Enter.. and ... our program will check spell(one word-step by step). If it is right... get out... the meaning.. Else... get out the synonym.
It also can update new words...
Let me know the code... in C++.
Thanks for helping me...
I love everybody so.
|
|
|
I'm guessing this post is a joke. but i will answer it anyway, i cant believe you actually asked for the code, i dont think anyone will be stupid enough to actually give you the code.
But i will give you a simple explanation of how i would do a poor spell checker:
I would brake the string into tokens, and then work on each word at a time matching it up against a database of words and see if you get a match.
You will then have to design your own algorithm so that you can find similar woulds to incorrect ones, a way that this could be done quickly would be to find all words which have the same letters as the incorrect word or maybe at least 80% of the letters. This would be very crappy but it would work.
|
|
|
|
|
|
|
|