Needed a spell checker for a project I was working on but could not find a free one on the web anywhere (there where quite a few for $$$). I decided to quickly whip one up in PureBasic. It worked quite well for what I needed so I have made it available for others to use also. I compiled it as a handy DLL so it can be used in other languages besides PB.
DLL Archive... Dictionary.zip
Spell Checker
Nice work Paul, I'm sure this will come in handy. 

www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
thanks! its really nice!.
Btw, how does it work? It takes word for word and then
compares with a database, and if word is not in database it complains?
btw i found 2 small bugs:
1)
type in "worrld" (yes world with 2 r's)
ok it should complain and it does..
if you correct the mistake and write more after the word "world", so there
stands "world is sleeping", then all is highligted.
2)
any number you write it takes as an spelling error.
(want to share the source, or keep it private?)
Btw, how does it work? It takes word for word and then
compares with a database, and if word is not in database it complains?
btw i found 2 small bugs:
1)
type in "worrld" (yes world with 2 r's)
ok it should complain and it does..
if you correct the mistake and write more after the word "world", so there
stands "world is sleeping", then all is highligted.
2)
any number you write it takes as an spelling error.
(want to share the source, or keep it private?)
- NoahPhense
- Addict
- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
Re: Spell Checker
Nice work. How about a userlib with now msgbox at the end, and a data
file so that words can be added/removed from the list?
- np
file so that words can be added/removed from the list?
- np
Not a bug.thefool wrote: btw i found 2 small bugs:
1)
type in "worrld" (yes world with 2 r's)
ok it should complain and it does..
if you correct the mistake and write more after the word "world", so there
stands "world is sleeping", then all is highligted.
Did you press the "spellcheck" button after you made your changes?
The example program performs a spell check when the "spellcheck" button is pressed. If you want the program to check as you type, you have to adjust the code accordingly.
Not a bug.2)
any number you write it takes as an spelling error.
This is a spell checker, it checks the spelling of words.
"Two" is a word... "2" is not a word.
All numbers will show as spelling errors because they are not words. If you want to check the spelling of a number, then type the number as a word

A 400kb user library?? Little excessive don't you think ?!?How about a userlib with now msgbox at the end, and a data
file so that words can be added/removed from the list?
DLL's are accepted as excess baggage, especially in this type of situation.
I posted a newer version that allows for an external dictionary file so you can add your own words. Keep in mind that the DLL is optimized for its own built in dictionary (over 110,000 words)... any extra dictionary data will slow the checking process down. (especially if the extra dictionary file grows to a large size)
Enjoy!

- NoahPhense
- Addict
- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
- Thorsten1867
- Addict
- Posts: 1372
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
It's a great work. But I'm looking for a german spellchecker. Is it possible to change the internal dictionary to an external dictionary to use the lib with other languages. Perhaps the source-code could be helpfull too, to create a german dictionary. 

Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]