SPhraseSpec s5 = this.phraseFactory.createClause();
s5.setSubject(this.phraseFactory.createNounPhrase("some", "person")); //$NON-NLS-1$ //$NON-NLS-2$
s5.setVerbPhrase(this.phraseFactory.createVerbPhrase("stroke")); //$NON-NLS-1$
s5.setObject(this.phraseFactory.createNounPhrase("the", "cat")); //$NON-NLS-1$ //$NON-NLS-2$
CoordinatedPhraseElement coord = new CoordinatedPhraseElement(this.s3,
s5);
complexS = this.phraseFactory.createClause();
complexS.setVerbPhrase(this.phraseFactory.createVerbPhrase("upset")); //$NON-NLS-1$
complexS.setFeature(Feature.TENSE, Tense.PAST);
complexS.setObject(this.phraseFactory.createNounPhrase("Peter")); //$NON-NLS-1$
complexS.setSubject(coord);
this.s3.setFeature(Feature.PERFECT, true);
Assert.assertEquals("the man's having given the woman John's flower " //$NON-NLS-1$
+ "and some person's stroking the cat upset Peter", //$NON-NLS-1$
this.realiser.realise(complexS).getRealisation());
setUp();
// now subordinate the complex sentence
// coord.setClauseStatus(SPhraseSpec.ClauseType.MAIN);
SPhraseSpec s6 = this.phraseFactory.createClause();
s6.setVerbPhrase(this.phraseFactory.createVerbPhrase("tell")); //$NON-NLS-1$
s6.setFeature(Feature.TENSE, Tense.PAST);
s6.setSubject(this.phraseFactory.createNounPhrase("the", "boy")); //$NON-NLS-1$ //$NON-NLS-2$
// ER - switched indirect and direct object
PhraseElement indirect = this.phraseFactory.createNounPhrase("every", //$NON-NLS-1$
"girl"); //$NON-NLS-1$
s6.setIndirectObject(indirect);
complexS = this.phraseFactory.createClause();
complexS.setVerbPhrase(this.phraseFactory.createVerbPhrase("upset")); //$NON-NLS-1$
complexS.setFeature(Feature.TENSE, Tense.PAST);
complexS.setObject(this.phraseFactory.createNounPhrase("Peter")); //$NON-NLS-1$
s6.setObject(complexS);
coord = new CoordinatedPhraseElement(this.s3, s5);
complexS.setSubject(coord);
this.s3.setFeature(Feature.PERFECT, true);
Assert.assertEquals(
"the boy told every girl that the man's having given the woman " //$NON-NLS-1$
+ "John's flower and some person's stroking the cat " //$NON-NLS-1$