private TextData GetTextDataFromXDocument(XDocument xDocument)
        {
            var text      = xmlService.GetTextFromAllElements(xDocument, "text");
            var stopWords = stopWordProvider.GetStopWords();

            return(textAnalyzer.GetTextDataFromText(text, stopWords));
        }
        public string Execute(string text)
        {
            var regexCode = @"(?<=(\A|\s|\.|,|!|\?))(" + string.Join("|", _stopwordProvider.GetStopWords()) + @")(?=(\s|\z|\.|,|!|\?))";

            return(Regex.Replace(text, regexCode, " ", RegexOptions.Singleline | RegexOptions.IgnoreCase).TrimExtraSpaces());
        }