Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possessive specifier of NP gets pluralized too when NP is pluralized #9

Closed
Saad-Mahamood opened this issue Mar 20, 2015 · 0 comments
Closed

Comments

@Saad-Mahamood
Copy link
Member

Reported by CoNPComplete, Jul 12, 2014


What steps will reproduce the problem?

NPPhraseSpec sisterNP = nlgFactory.createNounPhrase("sister");
NLGElement word = nlgFactory.createInflectedWord("Albert Einstein", LexicalCategory.NOUN);
word.setFeature(LexicalFeature.PROPER, true);
NPPhraseSpec possNP = nlgFactory.createNounPhrase(word);
possNP.setFeature(Feature.POSSESSIVE, true);
sisterNP.setSpecifier(possNP);
System.out.println(realiser.realise(sisterNP));//Albert Einstein's sister
sisterNP.setPlural(true);
System.out.println(realiser.realise(sisterNP));"Albert Einsteins' sisters" instead of "Albert Einstein's sisters"
sisterNP.setPlural(false);
possNP.setFeature(LexicalFeature.GENDER, Gender.MASCULINE);
possNP.setFeature(Feature.PRONOMINAL, true);
System.out.println(realiser.realise(sisterNP));//his sister
sisterNP.setPlural(true);
System.out.println(realiser.realise(sisterNP));//"their sisters" instead of "his sisters"

What is the expected output? What do you see instead?
a)Albert Einstein's sisters instead of Albert Einsteins' sisters
b)his sisters instead of their sisters

What version of the product are you using? On what operating system?
Latest SVN version on Ubuntu 14.04 with Java 7

Saad-Mahamood added a commit that referenced this issue Mar 22, 2016
Test case for correct pluralization when possessives are present (Closes #9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant