Grammar engineering, written in Python with NLTK