added util package 
diff --git a/src/main/java/de/ids_mannheim/korap/query/serialize/util/CosmasCondition.java b/src/main/java/de/ids_mannheim/korap/query/serialize/util/CosmasCondition.java
new file mode 100644
index 0000000..24866d6
--- /dev/null
+++ b/src/main/java/de/ids_mannheim/korap/query/serialize/util/CosmasCondition.java
@@ -0,0 +1,25 @@
+package de.ids_mannheim.korap.query.serialize.util;
+
+import org.antlr.runtime.tree.Tree;
+
+public class CosmasCondition {
+
+	public boolean negated = false;
+	public String elem = "";
+	public String position = "";
+	
+	public CosmasCondition(Tree cond) {
+		String nodeString = cond.toStringTree();
+		if (nodeString.startsWith("-")) {
+			negated = true;
+			nodeString = nodeString.substring(1);
+		} else if (nodeString.startsWith("+")) {
+			nodeString = nodeString.substring(1);
+		}
+		
+		elem = nodeString.substring(0, 1);
+		nodeString = nodeString.substring(1);
+		
+		position = nodeString.equals("a") ? "startswith" : "endswith";
+	}
+}