FOF30\Inflector\Inflector::addWord PHP Method

addWord() public method

Add a word to the cache, useful to make exceptions or to add words in other languages.
public addWord ( string $singular, string $plural ) : void
$singular string word.
$plural string word.
return void
    public function addWord($singular, $plural)
    {
        $this->cache['pluralized'][$singular] = $plural;
        $this->cache['singularized'][$plural] = $singular;
    }