private bool RepeatPatternMatchesPhrase(string phrase, int occurences, out int nextTokenIndex) { var pattern = new RepeatPattern( _builder.GetPatterns(), occurences); var tokens = new Tokenizer().Tokenize(phrase, new Options()); var isMatch = pattern.Match(tokens, out nextTokenIndex); return(isMatch); }