Twig/CoreExtension.php
public function inflect(string $string, $pluralize = 0) : string
    {
        return ($pluralize) ? Inflect::pluralize($string) : Inflect::singularize($string);
    }
public function inflect(string $string, $pluralize = 0) : string
    {
        return ($pluralize) ? Inflect::pluralize($string) : Inflect::singularize($string);
    }
public function inflect ( string $ string , $ pluralize = 0 ) : string { return ( $ pluralize ) ? Inflect :: pluralize ( $ string ) : Inflect :: singularize ( $ string ) ; }
Pluralize or Singularize a string
@param string $string
@param int $pluralize
@return string
Pluralize or Singularize a string