|
@@ 210-218 (lines=9) @@
|
| 207 |
|
* |
| 208 |
|
* @return $this |
| 209 |
|
*/ |
| 210 |
|
public function plural(string $rule, string $replacement): self |
| 211 |
|
{ |
| 212 |
|
unset($this->uncountables[$rule]); |
| 213 |
|
unset($this->uncountables[$replacement]); |
| 214 |
|
|
| 215 |
|
$this->plurals = [ $rule => $replacement ] + $this->plurals; |
| 216 |
|
|
| 217 |
|
return $this; |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
/** |
| 221 |
|
* Specifies a new singularization rule and its replacement. |
|
@@ 235-243 (lines=9) @@
|
| 232 |
|
* |
| 233 |
|
* @return $this |
| 234 |
|
*/ |
| 235 |
|
public function singular(string $rule, string $replacement): self |
| 236 |
|
{ |
| 237 |
|
unset($this->uncountables[$rule]); |
| 238 |
|
unset($this->uncountables[$replacement]); |
| 239 |
|
|
| 240 |
|
$this->singulars = [ $rule => $replacement ] + $this->singulars; |
| 241 |
|
|
| 242 |
|
return $this; |
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
/** |
| 246 |
|
* Specifies a new irregular that applies to both pluralization and singularization at the |