|
That's difficult.
the first thing that comes to my mind is "dictionaries"
Search an electronic dictionary and use it from your code, you can save it in data base or load it in memory from java (you can use java.util.Hashtableutil.Hashtable extends Dictionary).
To calculate the semantic between 2 words search one of them in the dictionary and then check if in its meaning is the other word. Do the same with the second word.
good luck
simon
|