ABB.Swum.SamuraiIdSplitter.Score C# (CSharp) Method

Score() private method

private Score ( string word ) : double
word string
return double
        private double Score(string word)
        {
            int programCount;
            double globalCount;
            try
            {
                programCount = ProgramWordCount[word.ToLower()];
            } 
            catch(KeyNotFoundException) 
            {
                programCount = 0;
            }
            try
            {
                globalCount = GlobalWordCount[word.ToLower()];
            }
            catch (KeyNotFoundException)
            {
                globalCount = 0;
            }

            return programCount + globalCount / LogProgramTotalWordCount;
            //return programCount;
        }