Checking words in a dictionary

I need to determine if an unknown string of 5 or 6 letters is the correct word, i.e. is in the dictionary. I could pass the line / word to the online dictionary, but I need to check this line / word, which will be different every time, about 100-150 times. It seems to take a little time.

My next thought would be to try to get my own dictionary program. It should be in Java since my program is written in Java. Does the Java API already have a class for this? Can I get a descent that someone has already encoded, and all I have to do is pass a line / word to it?

My program is not used for spell checking. I want to write a program to parse Jumbled Word Puzzles when I'm stuck on a scrambled word. Thanks for your suggestions.

+5
source share
7 answers

You can use one of the open source dictionaries and upload it to the database: ftp://ftp.cerias.purdue.edu/pub/dict/ and ftp://ftp.ox.ac.uk/pub/wordlists/

+1
source

For scrambled words, you can see the Jumble algorithm , an implementation of which is visible here .

+1
source

, . HashSet, , , . .

, aspell API.

+1
0

, aspell Java.

edit: , aspell spinoff Jazzy.

0

, : http://wordlist.sourceforge.net/

, Java, HashSet. , .

0

Perhaps you could try Peter Norwig Spell Checking . I think this is an elegant way to get 80-90% accuracy.

0
source

All Articles