public string GetAmountOfSpaces([FromBody] string txt)
        {
            var spaces = TextStatsGenerator.CountSpaces(txt);

            return($"There are {spaces} spaces in the giving text.");
        }
Esempio n. 2
0
        public string GetAmountOfWords([FromBody] string txt)
        {
            var words = TextStatsGenerator.WordCounter(txt);

            return($"There are {words} words in the giving text.");
        }
        public string GetAmountOfPunctuationMarks([FromBody] string txt)
        {
            var punc = TextStatsGenerator.SpecialCharactersCounter(txt);

            return($"There are {punc} punctuation marks in the giving text.");
        }