code/libraries/joomlatools/library/string/inflector/inflector.php
public static function pluralize($word)
    {
        //Get the cached noun of it exists
        if(isset(self::$_cache['pluralized'][$word])) {
            return self::$_cache['pluralized'][$word];
        }

        //Create the plural noun
        if (in_array($word, self::$_rules['countable'])) {
            self::$_cache['pluralized'][$word] = $word;
            return $word;
        }

        foreach (self::$_rules['pluralization'] as $regexp => $replacement)
        {
            $matches = null;
            $plural = preg_replace($regexp, $replacement, $word, -1, $matches);
            if ($matches > 0) {
                self::$_cache['pluralized'][$word] = $plural;
                return $plural;
            }
        }

        return $word;
    }
public static function pluralize($word)
    {
        //Get the cached noun of it exists
        if(isset(self::$_cache['pluralized'][$word])) {
            return self::$_cache['pluralized'][$word];
        }

        //Create the plural noun
        if (in_array($word, self::$_rules['countable'])) {
            self::$_cache['pluralized'][$word] = $word;
            return $word;
        }

        foreach (self::$_rules['pluralization'] as $regexp => $replacement)
        {
            $matches = null;
            $plural = preg_replace($regexp, $replacement, $word, -1, $matches);
            if ($matches > 0) {
                self::$_cache['pluralized'][$word] = $plural;
                return $plural;
            }
        }

        return $word;
    }
public static function pluralize ( $ word ) { //Get the cached noun of it exists if ( isset ( self :: $ _cache [ 'pluralized' ] [ $ word ] ) ) { return self :: $ _cache [ 'pluralized' ] [ $ word ] ; } //Create the plural noun if ( in_array ( $ word , self :: $ _rules [ 'countable' ] ) ) { self :: $ _cache [ 'pluralized' ] [ $ word ] = $ word ; return $ word ; } foreach ( self :: $ _rules [ 'pluralization' ] as $ regexp => $ replacement ) { $ matches = null ; $ plural = preg_replace ( $ regexp , $ replacement , $ word , - 1 , $ matches ) ; if ( $ matches > 0 ) { self :: $ _cache [ 'pluralized' ] [ $ word ] = $ plural ; return $ plural ; } } return $ word ; }
Singular English word to plural.

@param   string $word Word to pluralize
@return  string Plural noun
Singular English word to plural .