src/TextFormatter.php
protected function getWordIndex($word, $offset)
    {
        $index = mb_strpos($this->title, $word, $offset, $this->encoding);
        return $this->correctIndexOffset($index);
    }
protected function getWordIndex($word, $offset)
    {
        $index = mb_strpos($this->title, $word, $offset, $this->encoding);
        return $this->correctIndexOffset($index);
    }
protected function getWordIndex ( $ word , $ offset ) { $ index = mb_strpos ( $ this -> title , $ word , $ offset , $ this -> encoding ) ; return $ this -> correctIndexOffset ( $ index ) ; }
Finds the correct index of the word within the title

@param $word
@param $offset
@return int
Finds the correct index of the word within the title