public function pluralize($word)
    {
        if ($plural = $this->getCache($word, 'pluralize')) {
            return $plural;
        }

        if (isset($this->_uncountables_keys[$word])) {
            return $word;
        }

        foreach ($this->_pluralizationRules as $regexp => $replacement) {
            $plural = preg_replace($regexp, $replacement, $word, -1, $matches);
            if ($matches > 0) {
                return $this->setCache($word, 'pluralize', $plural);
            }
        }

        return $this->setCache($word, 'pluralize', $word);
    }
public function pluralize($word)
    {
        if ($plural = $this->getCache($word, 'pluralize')) {
            return $plural;
        }

        if (isset($this->_uncountables_keys[$word])) {
            return $word;
        }

        foreach ($this->_pluralizationRules as $regexp => $replacement) {
            $plural = preg_replace($regexp, $replacement, $word, -1, $matches);
            if ($matches > 0) {
                return $this->setCache($word, 'pluralize', $plural);
            }
        }

        return $this->setCache($word, 'pluralize', $word);
    }
public function pluralize ( $ word ) { if ( $ plural = $ this -> getCache ( $ word , 'pluralize' ) ) { return $ plural ; } if ( isset ( $ this -> _uncountables_keys [ $ word ] ) ) { return $ word ; } foreach ( $ this -> _pluralizationRules as $ regexp => $ replacement ) { $ plural = preg_replace ( $ regexp , $ replacement , $ word , - 1 , $ matches ) ; if ( $ matches > 0 ) { return $ this -> setCache ( $ word , 'pluralize' , $ plural ) ; } } return $ this -> setCache ( $ word , 'pluralize' , $ word ) ; }
Singular English word to pluralize.

@param string $word Word to pluralize.

@return string Plural form of $word.
Singular English word to pluralize .