public static HashSet<String> getSynonyms(IDictionary iDictionary, String word, String posTag, boolean firstSenseOnly) {
// need a set to avoid repeating words
HashSet<String> synonyms = new HashSet<String>();
POS pos = POS.getPartOfSpeech(posTag.charAt(0));
if(pos == null) {
return synonyms;
}
IIndexWord iIndexWord = iDictionary.getIndexWord(word, pos);