// <var>word</var>
java.util.HashSet<String> res = new java.util.HashSet<String>();
IndexWord iw = Dictionary.getInstance().lookupIndexWord(
getPOS(pos), word);
PointerTargetNodeList hypernyms = PointerUtils.getInstance()
.getDirectHypernyms(iw.getSense(1));
for (int i = 0; i < hypernyms.size(); i++) {
PointerTargetNode ptn = (PointerTargetNode) hypernyms.get(i);
Word[] words = ptn.getSynset().getWords();
for (Word w : words)
res.add(w.getLemma());
}
String[] resArray = new String[res.size()];