public static List <WordNGram> SplitString(byte numberOfWords, string text)
        {
            List <WordNGram> list = new List <WordNGram>();

            string[] words = Slova.RozdelitTextNaSlova(text, true, false, "\"'--");
            for (int i = 0; i < words.Length; i++)
            {
                WordNGram wordNGram = new WordNGram(numberOfWords);
                wordNGram.Words = new List <string>(numberOfWords);
                for (int j = 0; j < numberOfWords; j++)
                {
                    if ((i + j) < words.Length)
                    {
                        wordNGram.Words.Add(words[i + j]);
                    }
                }

                list.Add(wordNGram);
            }
            return(list);
        }
 public WordNGram(byte numberOfWords, string text)
 {
     NumberOfWords = numberOfWords;
     string[] words = Slova.RozdelitTextNaSlova(text);
     Words = new List <string>(words);
 }