checks a dictionary, generates a codebook and classifies phrases according to the codes in the codebook