Documentation

Pluralizer
in package

Table of Contents

$uncountable  : array<string|int, mixed>
Uncountable word forms.
plural()  : string
Get the plural form of an English word.
singular()  : string
Get the singular form of an English word.
matchCase()  : string
Attempt to match the case on two strings.
uncountable()  : bool
Determine if the given value is uncountable.

Properties

$uncountable

Uncountable word forms.

public static array<string|int, mixed> $uncountable = ['audio', 'bison', 'cattle', 'chassis', 'compensation', 'coreopsis', 'data', 'deer', 'education', 'emoji', 'equipment', 'evidence', 'feedback', 'firmware', 'fish', 'furniture', 'gold', 'hardware', 'information', 'jedi', 'kin', 'knowledge', 'love', 'metadata', 'money', 'moose', 'news', 'nutrition', 'offspring', 'plankton', 'pokemon', 'police', 'rain', 'rice', 'series', 'sheep', 'software', 'species', 'swine', 'traffic', 'wheat']

Methods

plural()

Get the plural form of an English word.

public static plural(string $value[, int $count = 2 ]) : string
Parameters
$value : string
$count : int = 2
Return values
string

singular()

Get the singular form of an English word.

public static singular(string $value) : string
Parameters
$value : string
Return values
string

matchCase()

Attempt to match the case on two strings.

protected static matchCase(string $value, string $comparison) : string
Parameters
$value : string
$comparison : string
Return values
string

uncountable()

Determine if the given value is uncountable.

protected static uncountable(string $value) : bool
Parameters
$value : string
Return values
bool

Search results