### Usage:
{{{
Inflector::rules('plural', array('/^(inflect)or$/i' => '\1ables'));
Inflector::rules('plural', array(
'rules' => array('/^(inflect)ors$/i' => '\1ables'),
'uninflected' => array('dontinflectme'),
'irregular' => array('red' => 'redlings')
));
}}}
public static rules ( string $type, array $rules, boolean $reset = false ) : void | ||
$type | string | The type of inflection, either 'plural' or 'singular' |
$rules | array | An array of rules to be added. |
$reset | boolean | If true, will unset default inflections for all new rules that are being defined in $rules. |
return | void |