The following SimpleNLG code which specifies the subject, verb and object using "monkeys", "eat", "bananas", respectively produces the sentence "monkey eats bananas". Thus, you see that it converted the plural nouns into singular ones (and ensured the verb agrees accordingly). Is there a way to ensure that SimpleNLG detects they're plurals and keeps them as such? I've seen documentation mention that certain Lexicon files may do this, but I tried the NIH Lexicon and that didn't help. Is this simply not supported by SimpleNLG? Or is there a way to do it using SimpleNLG or otherwise?
Lexicon = new Lexicon.getDefaultLexicon()
nlgFactory = new NLGFactory(lexicon);
Realiser realiser = new Realiser(lexicon);
NPPhraseSpec subject = nlgFactory.createNounPhrase("monkeys");
VPPhraseSpec verb = nlgFactory.createVerbPhrase("eat");
NPPhraseSpec object = nlgFactory.createNounPhrase("bananas");
SPhraseSpec clause = nlgFactory.createClause();
clause.setSubject(subject);
clause.setVerbPhrase(verb);
clause.setObject(object);
System.out.print(realiser.realiseSentence(clause));