using FreqDist to calculate patterns weights