ABB.Swum.WordData.PositionalFrequencies.GetLastFrequency C# (CSharp) Method

GetLastFrequency() public method

Returns how often the given word appears at the end of an identifier.
public GetLastFrequency ( string word ) : int
word string The word.
return int
        public int GetLastFrequency(string word)
        {
            if (!frequencies.ContainsKey(word))
            {
                return 0;
            }
            else
            {
                return frequencies[word].Last;
            }
        }