private static int sortWordsCount(Word x, Word y) { if (x.count > y.count) return -1; else if (x.count < y.count) return 1; else return 0; }
private float calcPositionFactor(Word w) { float factor = 0.0f; foreach (var oc in w.occurances) { factor += oc * PPS; } return factor; }