src/TextFormatter.php
protected function isFirstWordOfSentence($index)
    {
        if ($index == 0) {
            return true;
        }

        $twoCharactersBack = mb_substr($this->title, $index - 2, 1, $this->encoding);

        if ($this->isPunctuation($twoCharactersBack)) {
            return true;
        }

        return false;
    }
protected function isFirstWordOfSentence($index)
    {
        if ($index == 0) {
            return true;
        }

        $twoCharactersBack = mb_substr($this->title, $index - 2, 1, $this->encoding);

        if ($this->isPunctuation($twoCharactersBack)) {
            return true;
        }

        return false;
    }
protected function isFirstWordOfSentence ( $ index ) { if ( $ index == 0 ) { return true ; } $ twoCharactersBack = mb_substr ( $ this -> title , $ index - 2 , 1 , $ this -> encoding ) ; if ( $ this -> isPunctuation ( $ twoCharactersBack ) ) { return true ; } return false ; }
Checks to see if the word the start of a new sentence

@param $index
@return bool
Checks to see if the word the start of a new sentence