InflectorInterface
interface InflectorInterface
The generic interface to create a plural form of a name.
Methods
string
getPluralForm(string $root)
Generate a plural name based on the passed in root.
string
getSingularForm(string $root)
Generate a singular name based on the passed in root.
bool
isPlural(string $root)
Check if $root word is plural.
bool
isSingular(string $root)
Check if $root word is singular.
Details
at line 26
string
getPluralForm(string $root)
Generate a plural name based on the passed in root.
at line 35
string
getSingularForm(string $root)
Generate a singular name based on the passed in root.
at line 44
bool
isPlural(string $root)
Check if $root word is plural.
at line 53
bool
isSingular(string $root)
Check if $root word is singular.