2

I am looking for a tool in Java that would allow me to do the following things:

1) Find for a tilted word its basic form. Example:

  • For the words "connection", "connecting", "connects" and etc, it will return the word "connect".
  • For the words "running", "runs" it will return the word "run".

2) Return for each words a collection of it's synonyms.

Does anybody know of such a tool?

Eddie Dovzhik
  • 297
  • 1
  • 6
  • 14

1 Answers1

2

I assume you care only about English.

The first problem you have is called stemming. This SO post recommends this Java implementation of the Porter stemmer.

WordNet has a pretty big human created/curated database of words and their relations that includes synonyms among other things. Here is a Java API to WordNet.

Community
  • 1
  • 1
Rob Neuhaus
  • 9,190
  • 3
  • 28
  • 37