コード例 #1
0
        public string CalculateMetric(string textForAnalyze)
        {
            string result = string.Empty;

            result = TextAnalyzeService.FindLongestWord(textForAnalyze).Length.ToString();

            return(result);
        }
コード例 #2
0
        public string CalculateMetric(string textForAnalyze)
        {
            var result = TextAnalyzeService.OrderByMostCommonWords(textForAnalyze).Take(TopNResult);

            return(string.Join(", ", result));
        }
コード例 #3
0
        public string CalculateMetric(string textForAnalyze)
        {
            var result = TextAnalyzeService.FindProperNames(textForAnalyze);

            return(result.Length.ToString());
        }