Pluralizer
class Pluralizer (View source)
Properties
| static array | $uncountable | Uncountable word forms. |
Methods
static string
plural(string $value, int $count = 2)
Get the plural form of an English word.
static string
singular(string $value)
Get the singular form of an English word.
static bool
uncountable(string $value)
Determine if the given value is uncountable.
static string
matchCase(string $value, string $comparison)
Attempt to match the case on two strings.
static Inflector
inflector()
Get the inflector instance.
Details
static string
plural(string $value, int $count = 2)
Get the plural form of an English word.
static string
singular(string $value)
Get the singular form of an English word.
static protected bool
uncountable(string $value)
Determine if the given value is uncountable.
static protected string
matchCase(string $value, string $comparison)
Attempt to match the case on two strings.
static Inflector
inflector()
Get the inflector instance.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.