We are using statistical techniques to increase the automation of logical and semantic disambiguation, but nothing is easy with natural language.
Here is the Stanford Parser (the probabilistic context-free grammar version) applied to a couple of sentences. There is nothing wrong with the Stanford Parser! It’s state of the art and worthy of respect for what it does well.