Documentation

RulesetInflector
in package
implements WordInflector

Inflects based on multiple rulesets.

Rules:

  • If the word matches any uninflected word pattern, it is not inflected
  • The first ruleset that returns a different value for an irregular word wins
  • The first ruleset that returns a different value for a regular word wins
  • If none of the above match, the word is left as-is

Table of Contents

Interfaces

WordInflector

Properties

$rulesets  : array<string|int, Ruleset>

Methods

__construct()  : mixed
inflect()  : string

Properties

Methods

inflect()

public inflect(string $word) : string
Parameters
$word : string
Return values
string

        
On this page

Search results