|
-
Oct 19th, 2009, 05:40 PM
#1
Thread Starter
Addicted Member
Textbox Dictionary
Alright im trying to make a mini word but instead its going to correct the spelling when its save to a text file.
How would i make my program check all the words in the textbox fix them then save it.
Ps: Would i have to make a dictionary and import the text file to the application or is there even an easyer way to do this what source code rather than reading the dictionary text file and comparing it.
Thanks!
-
Oct 22nd, 2009, 09:17 AM
#2
Thread Starter
Addicted Member
-
Oct 22nd, 2009, 09:30 AM
#3
Re: Textbox Dictionary
Let's forget about the program at present and think of it in a human way. So how will you know which word is wrong and what to replace it with? There could be many replacement options.
e.g. In Word if I have mistyped "Energy", I get a bunch of suggestions to guess the correct word. Being a human being I know that I should choose "Energy" based on common-sense, but how will you let your program decide which one to choose?
-
Oct 22nd, 2009, 02:41 PM
#4
Thread Starter
Addicted Member
Re: Textbox Dictionary
Hum, I make it compare the closest spelling.
-
Oct 22nd, 2009, 02:59 PM
#5
Re: Textbox Dictionary
All the suggested words are closest spelling.
e.g. in the above case:
Enery - Emery : did we mistype n instead of m?
Enery - Energy : did we miss the letter g?
Enery - Every : did we mistype n instead of v?
Enery - Entry : did we mistype e instead of t?
Enery - Enemy : did we mistype r instead of m?
It just depends on the context of the sentence, and I see no way for the program to automatically determine which one would fit the situation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|