if (DEBUG) {
System.err.println("Semantic head finder: at VP");
System.err.println("Class is " + t.getClass().getName());
t.pennPrint(System.err);
}
<BUG>if (hasVerbalAuxiliary(kids, verbalAuxiliaries, true) || hasPassiveProgressiveAuxiliary(kids)) {
</BUG>
String[] how = { "left", "VP", "ADJP" };
Tree pti = traverseLocate(kids, how, false);
if (DEBUG) {

if (DEBUG) {
System.err.println("At " + motherCat + ", my parent is " + parent);
}
if ((motherCat.equals("VP") || motherCat.equals("SQ") || motherCat.equals("SINV"))) {
Tree[] kids = t.children();
if (DEBUG) {
System.err.println("Semantic head finder: at VP");
System.err.println("Class is " + t.getClass().getName());
t.pennPrint(System.err);
}
if (hasVerbalAuxiliary(kids, verbalAuxiliaries) || hasPassiveProgressiveAuxiliary(kids, passiveAuxiliaries)) {
String[] how = { "left", "VP", "ADJP" };
Tree pti = traverseLocate(kids, how, false);
if (DEBUG) {
