added a routine for extracting words from Brown corpus