A syntactic parser describes a sentence’s grammatical structure, to help another application reason about it. Natural languages introduce many unexpected ambiguities, which our world-knowledge immediately filters out. A favourite example: They ate the pizza with anchovies A correct parse links “with” to “pizza”, while an incorrect parse links “with” to “eat”: The Natural Language Processing (NLP)
![Parsing English with 500 lines of Python](https://cdn-ak-scissors.b.st-hatena.com/image/square/356edaf2f20b62f918b605b78b1b5db9d7f6e088/height=288;version=1;width=512/http%3A%2F%2Fi.imgur.com%2Fz2hzXAp.jpg)