Added a splitQuery() predicate to handle query input terms.
Wrote the parsing predicates, minus the calls that actually write the output