need details on Implementing Dictionary Filters for English words
I am working on a prj where I would have to read the texts written by a user and check each and every given word against a dictionary(a list of words and their combination) and filter the words.
one thing i came across is to have a file with list of words and then do a recursive comparison.
what i am thinking is like, would there be an existing api with which i can just pass the words and get the details.
any idea?
Re: need details on Implementing Dictionary Filters for English words
See the HashMap or TreeMap collections. These are used for mapping a key (the word) to a value (the definition).
Re: need details on Implementing Dictionary Filters for English words
Another alternative would be to use a relational database. Index the words appropriately and a single query can be used to pull out what you need (in this manner you can associate lots of other information along with the words - definitions, pronunciation, use in sentences, noun/verb/adj, etc..) . I'd consider this a fairly advanced way to go about it, but if you are looking for a fun challenge it might be something to look into