# Defines how to automatically map c-structures to head mappings
# The LHS is a string literal indicating the non-terminal node type
# The RHS is a regular expression indicating the corresponding immediate head

SQ => VP
NP => NN.*
VP => VB.*|VP
PP => NP
		
		if (value.equals("SQ") || value.equals("S")) {
			for (TreeNode child : cNode.getChildren()) {
				if (child.getValues().get(0).equals("VP"))
					return child.getIndex();
			}
			return -1;
		} else if (value.equals("NP")) {
			for (TreeNode child : cNode.getChildren()) {
				if (child.getValues().get(0).startsWith("NN"))
					return child.getIndex();
			}
			return -1;
		} else if (value.equals("VP")) {
			for (TreeNode child : cNode.getChildren()) {
				if (child.getValues().get(0).startsWith("VB")
						|| child.getValues().get(0).equals("VP"))
					return child.getIndex();
			}
			return -1;
		} else if (value.equals("PP")) {
			for (TreeNode child : cNode.getChildren()) {
				if (child.getValues().get(0).equals("NP"))
					return child.getIndex();
			}
			return -1;
		}