Find the synonym and root of the word in java

I am developing a JAVA application in which the user enters a word into a text field, the synonyms of this word should be auto-written to him.

Given the word, is it possible to find its synonyms and its root in JAVA? Should I use a dictionary?

eg:

word: killer synonym: murderer butcher hitman word: killing root: kill 
+6
java dictionary synonym
source share
4 answers

One option is to use WordNet with the Java API, for example. JAWS: http://lyle.smu.edu/~tspell/jaws

+4
source share

As for the roots, this process is called stemming (google for this). Some (Java) libraries exist: http://snowball.tartarus.org/download.php

+3
source share

I would suggest looking for an API for an online site where you can access the synonym dictionary instead of creating your own. It will be large enough that you do not want to store it in memory, so you will have to have some kind of external storage if you do it yourself.

+1
source share

You definitely need to use a dictionary, at least for synonyms, since there are no standard "synonyms-lists" in the JRE.

0
source share

All Articles