public static function isSingular($string)
    {
        // Check cache assuming the string is plural.
        $singular = isset(self::$_cache['singularized'][$string]) ? self::$_cache['singularized'][$string] : null;
        $plural = $singular && isset(self::$_cache['pluralized'][$singular]) ? self::$_cache['pluralized'][$singular] : null;
        
        if ($singular && $plural) {
            return $plural != $string;
        }
        
        // If string is not in the cache, try to pluralize and singularize it.
        return self::singularize(self::pluralize($string)) == $string;
    }
public static function isSingular($string)
    {
        // Check cache assuming the string is plural.
        $singular = isset(self::$_cache['singularized'][$string]) ? self::$_cache['singularized'][$string] : null;
        $plural = $singular && isset(self::$_cache['pluralized'][$singular]) ? self::$_cache['pluralized'][$singular] : null;
        
        if ($singular && $plural) {
            return $plural != $string;
        }
        
        // If string is not in the cache, try to pluralize and singularize it.
        return self::singularize(self::pluralize($string)) == $string;
    }
public static function isSingular ( $ string ) { // Check cache assuming the string is plural. $ singular = isset ( self :: $ _cache [ 'singularized' ] [ $ string ] ) ? self :: $ _cache [ 'singularized' ] [ $ string ] : null ; $ plural = $ singular && isset ( self :: $ _cache [ 'pluralized' ] [ $ singular ] ) ? self :: $ _cache [ 'pluralized' ] [ $ singular ] : null ; if ( $ singular && $ plural ) { return $ plural != $ string ; } // If string is not in the cache, try to pluralize and singularize it. return self :: singularize ( self :: pluralize ( $ string ) ) == $ string ; }
Check to see if an English word is singular

@param string $string The word to check
@return boolean
Check to see if an English word is singular