1 | <?php |
||
6 | class NounPluralization extends \morphos\NounPluralization |
||
7 | { |
||
8 | private static $exceptions = [ |
||
9 | 'chief' => 'chiefs', |
||
10 | 'basis' => 'bases', |
||
11 | 'crisis' => 'crises', |
||
12 | 'radius' => 'radii', |
||
13 | 'nucleus' => 'nuclei', |
||
14 | 'curriculum' => 'curricula', |
||
15 | 'man' => 'men', |
||
16 | 'woman' => 'women', |
||
17 | 'child' => 'children', |
||
18 | 'foot' => 'feet', |
||
19 | 'tooth' => 'teeth', |
||
20 | 'ox' => 'oxen', |
||
21 | 'goose' => 'geese', |
||
22 | 'mouse' => 'mice' |
||
23 | ]; |
||
24 | |||
25 | private static $without_paired_form = [ |
||
26 | 'knowledge', |
||
27 | 'progress', |
||
28 | 'advise', |
||
29 | 'ink', |
||
30 | 'money', |
||
31 | 'scissors', |
||
32 | 'spectacles', |
||
33 | 'trousers', |
||
34 | ]; |
||
35 | |||
36 | public static $consonants = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'x', 'z', 'w']; |
||
37 | |||
38 | /** |
||
39 | * @param $word |
||
40 | * @param int $count |
||
41 | * @return string |
||
42 | */ |
||
43 | 47 | public static function pluralize($word, $count = 2) |
|
72 | } |
||
73 |