import nltk
from nltk.corpus import brown,inaugural,genesis
import matplotlib.pyplot as plt
cfd = nltk.ConditionalFreqDist((len(word.lower()),fileid[:4])
for fileid in inaugural.fileids()
for word in inaugural.words(fileid)
if word.isalpha())
cfd.plot(figure=plt.figure(figsize=(18, 16)))
cfd.plot(conditions=range(2,6),figure=plt.figure(figsize=(18, 16)))