private void ProcessWord(ITextToken tok, WordAndPunct wap)
{
if (wap.Word == "")
return;
string nextWord = wap.Word.ToLower();
if (prevWord == nextWord)
AddWord(tok, wap);
prevWord = nextWord;
// If there are characters (such as quotes) between words,
// then two words are not considered repeating, even if they are identical
foreach (char cc in wap.Punct)
{
if (!char.IsWhiteSpace(cc))
{
Reset();
break;
}
}
}