Spell Checker Search
Posted: Thu Nov 20, 2008 3:17 pm
Greetings,
I am developing a spell checker for a client. The dictionary word list that I have put together is over 100,000 words (1 word per line).
My script sets wholematches to true and then uses wordoffset(XX,YY) to see if the typed word is in my list of words.
If I check each word on the fly as I type, the search is plenty fast (3 ticks), however, when I use the same code to check each word in the whole field all at once, then I am looking at 3 ticks per word which gets pretty lengthy on a long text field.
I am not skilled at doing searches or setting up a word list to speed a search up. Is there a better way to do this?
Thanks!
John Miller
I am developing a spell checker for a client. The dictionary word list that I have put together is over 100,000 words (1 word per line).
My script sets wholematches to true and then uses wordoffset(XX,YY) to see if the typed word is in my list of words.
If I check each word on the fly as I type, the search is plenty fast (3 ticks), however, when I use the same code to check each word in the whole field all at once, then I am looking at 3 ticks per word which gets pretty lengthy on a long text field.
I am not skilled at doing searches or setting up a word list to speed a search up. Is there a better way to do this?
Thanks!
John Miller