private static Text SplitSentencesIntoWords(string[] sentences) { Text parsedText = new Text(); char[] delimiterChars = { ' ', ',', ':', '\t' }; foreach (var sent in sentences) { // split into words string[] words = sent.Split(delimiterChars); List<Word> listWords = words.Where(w => w != "") .Select(word => new Word() { Item = word }).ToList(); Sentence sentence = AddWordsToSentence(listWords); // sort words sentence.Words.Sort(); parsedText.Add(sentence); } return parsedText; }