PHP query analyzation
<p>I'm making a (self-dubbed) knowledge engine, where the user types in a question and online encyclopedias are searched, then returned with a simple answer.  How can a query be broken apart into parts of speech using PHP so the subject of the question can be identified?  Say, for instance, the example query was, "Who is the British Prime Minister?"  Obviously, Who is a pronoun, is is an auxiliary verb, the is an article (so it could probably be ignored and the sentence would still make sense), and British Prime Minister would be the main query I'm supposing.  Thanks for helping!</p>
