lib/Inflector/Inflections.php
public function singular($rule, $replacement){
		if(is_string($rule)){
			Utils::array_delete($this->uncountables, $rule);
		}
		Utils::array_delete($this->uncountables, $replacement);
		array_unshift($this->singulars, array($rule, $replacement));
	}
public function singular($rule, $replacement){
		if(is_string($rule)){
			Utils::array_delete($this->uncountables, $rule);
		}
		Utils::array_delete($this->uncountables, $replacement);
		array_unshift($this->singulars, array($rule, $replacement));
	}
public function singular ( $ rule , $ replacement ) { if ( is_string ( $ rule ) ) { Utils :: array_delete ( $ this -> uncountables , $ rule ) ; } Utils :: array_delete ( $ this -> uncountables , $ replacement ) ; array_unshift ( $ this -> singulars , array ( $ rule , $ replacement ) ) ; }
Specifies a new singularization rule and its replacement. The rule can either be a string or a regular expression.
The replacement should always be a string that may include references to the matched data from the rule.
@param string $rule
@param string $replacement
@return void
@author Koen Punt
Specifies a new singularization rule and its replacement . The rule can either be a string or a regular expression . The replacement should always be a string that may include references to the matched data from the rule .