src/Linguistics.php
public function hasConfirmation($string)
    {
        $result = false;
        $words = $this->getWords($string);

        foreach ($words as $word) {
            if (in_array($word, $this->confirmationWords)) {
                $result = true;
            }
        }

        return $result;
    }
public function hasConfirmation($string)
    {
        $result = false;
        $words = $this->getWords($string);

        foreach ($words as $word) {
            if (in_array($word, $this->confirmationWords)) {
                $result = true;
            }
        }

        return $result;
    }
Has confirmation.

@param string $string

@return bool