What I want to be able to do is tell if a word in a sentence is a noun, adverb, adjective, etc.. I looked into FreeLing, and a few other open source projects that I could find that are able to do this, just wondering if there is one that works with PHP natively, if not, do you have any suggestions on other projects like FreeLing that 开发者_C百科might help.
Best way would be using a grammar parser. www.link.cs.cmu.edu/link
精彩评论