}
// Adjective Phrase
else if (wps instanceof simplenlg.xmlrealiser.wrapper.XmlAdjPhraseSpec) {
simplenlg.xmlrealiser.wrapper.XmlAdjPhraseSpec wp = (simplenlg.xmlrealiser.wrapper.XmlAdjPhraseSpec) wps;
AdjPhraseSpec p = factory.createAdjectivePhrase(head);
hp = p;
p.setFeature(Feature.IS_COMPARATIVE, wp.isISCOMPARATIVE());
p.setFeature(Feature.IS_SUPERLATIVE, wp.isISSUPERLATIVE());
}
// Prepositional Phrase
else if (wps instanceof simplenlg.xmlrealiser.wrapper.XmlPPPhraseSpec) {
PPPhraseSpec p = factory.createPrepositionPhrase(head);
hp = p;
}
// Adverb Phrase
else if (wps instanceof simplenlg.xmlrealiser.wrapper.XmlAdvPhraseSpec) {
simplenlg.xmlrealiser.wrapper.XmlAdvPhraseSpec wp = (simplenlg.xmlrealiser.wrapper.XmlAdvPhraseSpec) wps;
AdvPhraseSpec p = factory.createAdverbPhrase();
p.setHead(head);
hp = p;
p.setFeature(Feature.IS_COMPARATIVE, wp.isISCOMPARATIVE());
p.setFeature(Feature.IS_SUPERLATIVE, wp.isISSUPERLATIVE());
}
// Verb Phrase
else if (wps instanceof simplenlg.xmlrealiser.wrapper.XmlVPPhraseSpec) {
simplenlg.xmlrealiser.wrapper.XmlVPPhraseSpec wp = (simplenlg.xmlrealiser.wrapper.XmlVPPhraseSpec) wps;