public static function Stem($word)
    {
        if (strlen($word) <= 2) {
            return $word;
        }

        $word = self::step1ab($word);
        $word = self::step1c($word);
        $word = self::step2($word);
        $word = self::step3($word);
        $word = self::step4($word);
        $word = self::step5($word);

        return $word;
    }
public static function Stem($word)
    {
        if (strlen($word) <= 2) {
            return $word;
        }

        $word = self::step1ab($word);
        $word = self::step1c($word);
        $word = self::step2($word);
        $word = self::step3($word);
        $word = self::step4($word);
        $word = self::step5($word);

        return $word;
    }
public static function Stem ( $ word ) { if ( strlen ( $ word ) <= 2 ) { return $ word ; } $ word = self :: step1ab ( $ word ) ; $ word = self :: step1c ( $ word ) ; $ word = self :: step2 ( $ word ) ; $ word = self :: step3 ( $ word ) ; $ word = self :: step4 ( $ word ) ; $ word = self :: step5 ( $ word ) ; return $ word ; }
Stems a word. Simple huh?

@param  string $word Word to stem
@return string       Stemmed word
Stems a word . Simple huh?