Results 1 to 5 of 5

Thread: Textbox Dictionary

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    198

    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!

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    198

    Re: Textbox Dictionary

    bump

  3. #3
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    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?
    Name:  wordspell.JPG
Views: 126
Size:  12.0 KB
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    198

    Re: Textbox Dictionary

    Hum, I make it compare the closest spelling.

  5. #5
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    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.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width