It is able to recognize whether input matches grammar