I'm using SimpleNLG 4.4.2
to get plural form for a noun:
final XMLLexicon xmlLexicon = new XMLLexicon();
final WordElement word = xmlLexicon.getWord("apple", LexicalCategory.NOUN);
System.out.println(word);
System.out.println(word.getFeature(LexicalFeature.PLURAL));
However even for this simple example, getFeature
returns null
instead of apples
. What am I doing wrong?