import nltk.book as book
text1 = book.text1
c = nltk.ConcordanceIndex(text1.tokens, key=lambda s: s.lower())
print([text1.tokens[offset + 1] for offset in c.offsets('monstrous')])
Calling NLTK's concordance - how to get text before/after a word that was used?