Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement an English dictionary in Java? [duplicate]

Tags:

java

Possible Duplicate:
Dictionary of English Words for a J2ME app

I am working on a project that needs to check the strength of a password based on the existence of an English word in the dictionary. My problem is to know whether there is any Java API for an English dictionary. If not what hints can help me to implement such dictionary ?

like image 419
Xris Avatar asked Dec 31 '25 16:12

Xris


1 Answers

If you just need to know if a word exists in English, just get a text file containing all English words and read it in to a HashSet.

For example:

http://code.google.com/p/dotnetperls-controls/downloads/detail?name=enable1.txt

like image 112
Russell Zahniser Avatar answered Jan 02 '26 10:01

Russell Zahniser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!