Eliminate not a word from list

67 views Asked by At

Detecting actually not a word. To be clear with not a word, it has no meaning like leoepld. From list of word, can it be possible distinguish the word and not a word?

In Wordnet api, I have not seen any method to discriminate those words. I am not experienced much with Wordnet and JWI of mit.edu. Is it possible to do this thing told with those library and dictionary?

Example input;   Expected output
Set<String>      Set<String>

lodapke           looking    
asdfgre           university
looking           antonyms
university
antonyms
aeokalk

Programming language: Java, Platform: Windows, Library: wordnet & Jwi

1

There are 1 answers

0
Simply Craig On

You could use a dictionary file and check each of the words in your Set<String> against it. If it doesn't appear in your dictionary file you can declare it as not a word.

You are not going to teach a program how to figure out for itself whether it is a word or not.