src/TextFormatter.php
protected function wordShouldBeUppercase($index, $word)
    {
        return
            (
                $this->isFirstWordOfSentence($index) ||
                $this->isLastWord($word) ||
                !$this->isIgnoredWord($word)
            ) &&
            (
                !$this->hasUppercaseLetter($word)
            );
    }
protected function wordShouldBeUppercase($index, $word)
    {
        return
            (
                $this->isFirstWordOfSentence($index) ||
                $this->isLastWord($word) ||
                !$this->isIgnoredWord($word)
            ) &&
            (
                !$this->hasUppercaseLetter($word)
            );
    }
protected function wordShouldBeUppercase ( $ index , $ word ) { return ( $ this -> isFirstWordOfSentence ( $ index ) || $ this -> isLastWord ( $ word ) || ! $ this -> isIgnoredWord ( $ word ) ) && ( ! $ this -> hasUppercaseLetter ( $ word ) ) ; }
Condition to see if the given word should be uppercase

@param $index
@param $word
@return bool
Condition to see if the given word should be uppercase