For something that tries to be a bit more sophisticated, you can look at the NLTK Natural Language Toolkit:
http://www.nltk.org/
Based on Python and intended for education, but there's quite a bit of documentation and at least a couple of books (one is open source).