Symfony\Component\PropertyAccess\StringUtil::singularify
Returns the singular form of a word
If the method can't determine the form with certainty, an array of the possible singulars is returned.
Signature
public function singularify(string
$plural )
Parameters
$plural
— string- A word in plural form
Returns
- string|array
- The singular form or an array of possible singular
forms