* <code>true</code> if the verb phrase has a modal.
* @return the modified head element
*/
private static NLGElement grabHeadVerb(PhraseElement phrase,
Tense tenseValue, boolean hasModal) {
NLGElement frontVG = phrase.getHead();
if (frontVG != null) {
if (frontVG instanceof WordElement) {
frontVG = new InflectedWordElement((WordElement) frontVG);
}
//AG: tense value should always be set on frontVG
if (tenseValue != null) {
frontVG.setFeature(Feature.TENSE, tenseValue);
}
// if (Tense.FUTURE.equals(tenseValue) && frontVG != null) {
// frontVG.setFeature(Feature.TENSE, Tense.FUTURE);
// }
if (hasModal) {
frontVG.setFeature(Feature.NEGATED, false);
}
}
return frontVG;
}