Documentation

LanguageInflectorFactory

Table of Contents

Methods

build()  : Inflector
Builds the inflector instance with all applicable rules
withPluralRules()  : $this
Applies custom rules for pluralisation
withSingularRules()  : $this
Applies custom rules for singularisation

Methods

withPluralRules()

Applies custom rules for pluralisation

public withPluralRules(Ruleset|null $pluralRules[, bool $reset = false ]) : $this
Parameters
$pluralRules : Ruleset|null
$reset : bool = false

If true, will unset default inflections for all new rules

Return values
$this

withSingularRules()

Applies custom rules for singularisation

public withSingularRules(Ruleset|null $singularRules[, bool $reset = false ]) : $this
Parameters
$singularRules : Ruleset|null
$reset : bool = false

If true, will unset default inflections for all new rules

Return values
$this

        
On this page

Search results