class StringUtil

Creates singulars from plurals.

Methods

static string|array
singularify(string $plural)

Returns the singular form of a word.

Details

at line 156
static string|array singularify(string $plural)

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.

Parameters

string $plural A word in plural form

Return Value

string|array The singular form or an array of possible singular forms