src/TextFormatter.php
protected function hasDash($word)
    {
        $wordWithoutDashes = str_replace('-', '', $word);

        return preg_match("/\-/", $word) && mb_strlen($wordWithoutDashes, $this->encoding) > 1;
    }
protected function hasDash($word)
    {
        $wordWithoutDashes = str_replace('-', '', $word);

        return preg_match("/\-/", $word) && mb_strlen($wordWithoutDashes, $this->encoding) > 1;
    }
protected function hasDash ( $ word ) { $ wordWithoutDashes = str_replace ( '-' , '' , $ word ) ; return preg_match ( "/\-/" , $ word ) && mb_strlen ( $ wordWithoutDashes , $ this -> encoding ) > 1 ; }
Checks to see if the word has a dash

@param $word
@return int
Checks to see if the word has a dash