A syntactic based approach for evaluating semantics of texts