A method for determining whether a text complies with a query, an apparatus and a computer program product, the method comprising: obtaining a macro comprising a plurality of representations of a query; and executing the macro against a database comprising a simplified representation of at least one phrase within the text, to determine whether the text complies with any of the representations of the query.
展开▼