added another filter to the n-grams to avoid storing unnecessary information which won't be used in the prediction model.
kind-of first version of the prediction algorithm