Important alert: (current site time 7/16/2013 2:34:44 AM EDT)
 

winzip icon

A Comprehensive Spell Checker

Email
Submitted on: 7/18/2006 5:10:23 AM
By: Shelz 
Level: Intermediate
User Rating: By 26 Users
Compatibility: VB 6.0
Views: 19125
author picture
(About the author)
 
     This is a comprehensive Spell Checker application which uses an internal database of over 450,000 words! Uses the Soundex and Levenshtein Distance Algorithms to fully emulate a word processor spell checker. The number of possible results can be adjusted too. All algorithms, additional work etc is fully documented. Votes welcome.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 5 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
7/17/2006 4:22:51 PMJefe - Boss

Thanks for the share. I've learned things I didn't know, didn't want to know, but find interesting... nice work.
(If this comment was disrespectful, please report it.)

 
7/17/2006 5:26:34 PMKenneth Foster

Need to add "\DB's\" to the app path in the programming or move database to app path folder.
(If this comment was disrespectful, please report it.)

 
7/17/2006 9:58:55 PMShark

This is excellent. I like it.

I believe you need to add "\DB's" to the first statement in your form load.

To allow the enter key to be functional, I created the following procedure:

Private Sub txtInputWord_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then 'Enter
txtInputWord.SelStart = 0
txtInputWord.SelLength = Len(txtInputWord)
cmdGO_Click
End If
End Sub

I also changed the value of LdVal to 1 in the click event to narrow the initial choice (personal preference).

I gave it a 5.

(If this comment was disrespectful, please report it.)

 
7/18/2006 3:30:44 AMMark

EXCELLENT code!
(If this comment was disrespectful, please report it.)

 
7/18/2006 4:05:17 AMShelz

Thanks for the observation. Actually the DB in the DB directory is just in case you need a clean new DB. I personally move a blank copy to app.path and then run the program. Anyway i will adjust the upload. Thanks
(If this comment was disrespectful, please report it.)

 
7/18/2006 4:52:24 PMJeff Mayes

Excellent! Have not finished going throught it yet, but I can see the quality. 5 planets.
(If this comment was disrespectful, please report it.)

 
7/18/2006 10:42:19 PMMike Douglas

Sweet! Now thats what Im talking about. If that don't cut the mustard, you must have left it out to long. Thanks Shelz, works like a dream. 5 mustard splats from me.
(If this comment was disrespectful, please report it.)

 
7/19/2006 12:58:43 PMVinith

5 star program all the way baby....one of the best individual programs i've seen in a while...keep up the good work shelz
(If this comment was disrespectful, please report it.)

 
7/19/2006 3:41:21 PMSPY-3

Its a great system seems to find the word everytime in its possible results, anyway hope you make more great programs and make an example with document spell check of text file sorta things. Good job 5 globes, also thanks for putting how the algorithm works its quite interesting.
(If this comment was disrespectful, please report it.)

 
7/22/2006 6:05:43 AMGeorge Inacio

*****
The vote page doesn’t work properly.
Can you please send a message in a day or two to remind me to vote for you.
Thanks!

(If this comment was disrespectful, please report it.)

 
7/23/2006 11:33:56 PMJohn Couture

Nice work. 5 from me. Just curious, where did you get the list of words for your dictionary file?
(If this comment was disrespectful, please report it.)

 
7/23/2006 11:38:35 PMJohn Couture

Sorry, voting is not working right now. The security graphic will not display. I'll make sure I stop back and vote once it is fixed.
(If this comment was disrespectful, please report it.)

 
7/24/2006 6:05:16 AMShelz

@ John. The url for the wordlist is in the documentation. Its a open source library called SCOWL (Spell Checker Oriented Word Lists)
(If this comment was disrespectful, please report it.)

 
7/25/2006 10:18:28 AMJohn Couture

Thanks for the info. Voting is still broke so I'll keep checking back.
(If this comment was disrespectful, please report it.)

 
8/18/2006 4:37:29 AMRde

This is most impressive Shelz

Watch out for an upload of your clsPhoneme class that has been modified to work better for spell checking all English words instead of matching names.
(If this comment was disrespectful, please report it.)

 
8/23/2006 10:02:47 PMHout Kimsiv

Hi my name is Kimsiv I am Cambodia you I whould like planetsourcecode so much and I whould like all the author that sub their code in this web site. now I have the problem with my assignment in our school. I am the 2 year student in private university in Cambodia.Now I need you to give the Sample Project about Library management System.
The Table in this project include.
-tblBookInfo
-tblShelf
-tblCadinate
-tblMember(can borrow the books)
-tblReader(porson who reading book only)
-tblImportBook
-tblUser
-tblBookCategory
...
please send to becuase I need it so much.

thank!!!
(If this comment was disrespectful, please report it.)

 
8/26/2006 3:47:14 AMShelz

@ Hout Kimsiv
I i help...u will never learn. Do it yourself buddy.
Just curious...they teach u VB in school?? Not C++ and more basic languages?
(If this comment was disrespectful, please report it.)

 
8/30/2006 1:57:36 AMAshok

It is working excellent..Thank u
(If this comment was disrespectful, please report it.)

 
9/2/2010 8:52:24 AMRob C

I recommended your program as AN ALTERNATIVE to someone who was attempting to automate Word's Spell Checker.
They got back to me and said it did not pick up bad spelling for the word 'and'
I have browsed your word list, and it is indeed not present.
So I tried adding it, but could not convince your program to regenerate the DB.
Probably you are storing settings in the Registry (which I avoid by using INI file).
I will study your code, so I can tweak it to allow a Re-gen.
(PS putting your empty DB into the main folder was not enough to enable the re-gen button.)
Whilst I was fumbling around, I went to the SCOWL page, to see if the latest list had 'and' in it, and perhaps much more ? ?
I downloaded it, but it needs a College education, to be able to create a word list from the contents of their zip file.
Can you point me to a web page, that explains how a Windows user would generate a list from all that.
Thanks,
Rob
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.