public int GetOnlyFrequency(string word) { if (!frequencies.ContainsKey(word)) { return 0; } else { return frequencies[word].Only; } }