private function hasValidSEnding($word)
    {
        $lastLetter = Utf8::substr($word, -1, 1);
        return !in_array($lastLetter, array_merge(self::$vowels, array('j')));
    }
private function hasValidSEnding($word)
    {
        $lastLetter = Utf8::substr($word, -1, 1);
        return !in_array($lastLetter, array_merge(self::$vowels, array('j')));
    }
private function hasValidSEnding ( $ word ) { $ lastLetter = Utf8 :: substr ( $ word , - 1 , 1 ) ; return ! in_array ( $ lastLetter , array_merge ( self :: $ vowels , array ( 'j' ) ) ) ; }
Define a valid s-ending as a non-vowel other than j.
@param string $ending
@return boolean
Define a valid s - ending as a non - vowel other than j .