Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find synonym and root of a word in java

I am developing a JAVA application where user enters a word in textbox,the synonyms of the word has to be autoprompted to him.

Given a 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
like image 660
psy Avatar asked Feb 07 '11 16:02

psy


2 Answers

One option would be to use WordNet with a Java API, e.g. JAWS: http://lyle.smu.edu/~tspell/jaws

like image 182
Fabian Steeg Avatar answered Sep 25 '22 02:09

Fabian Steeg


As for roots this process is called stemming (google for that). There are some (Java) libraries like that: http://snowball.tartarus.org/download.php

like image 33
PeterMmm Avatar answered Sep 23 '22 02:09

PeterMmm