private function IndexNewWords()
{
$this->wordIndices = array();
foreach ($this->newWords as $i => $word) {
if ($this->IsTag($word)) {
$word = $this->StripTagAttributes($word);
}
if (isset($this->wordIndices[$word])) {
$this->wordIndices[$word][] = $i;
} else {
$this->wordIndices[$word] = array($i);
}
}
}