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

GetMiddleFrequency() public method

Returns how often the given word appears in the middle of an identifier, i.e. not first or last.
public GetMiddleFrequency ( string word ) : int
word string The word.
return int
        public int GetMiddleFrequency(string word)
        {
            if (!frequencies.ContainsKey(word))
            {
                return 0;
            }
            else
            {
                return frequencies[word].Middle;
            }
        }