source code for chapter 1 of http://nltk.org/book