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