Reputation: 83
I want to get plural of the given noun. I have tried JAVA INFLECTOR. But it has very poor accuracy for nouns not following the regular rules.
Examples from JAVA INFLECTOR:
Stanford coreNLP lemmatizer is very good at plural to singular conversion. It takes care of many exceptional cases. As stated below:
Plural to singular from STANFORD LEMMATIZER:
But the problem is I don't know how to get plural from given singular using Stanford CoreNLP. The lemmatizer gives singular from plural.
So, basically I want to get plural from singular nouns using STANFORD NLP.
How can this be achieved?
Upvotes: 4
Views: 1983
Reputation: 18585
If you can harness javascript, I created a lightweight javascript for this. Very easy to use:
pluralizer.run('goose') --> 'geese'
pluralizer.run('deer') --> 'deer'
pluralizer.run('can') --> 'cans'
https://github.com/rhroyston/pluralizer-js
Upvotes: -3