@@ 89-124 (lines=36) @@ | ||
86 | ||
87 | // Now convert the word |
|
88 | switch ( $case ) { |
|
89 | case "genitive": |
|
90 | if ( in_array( $wordEnding, $unvoicedPhonemes ) ) { |
|
91 | if ( in_array( $wordLastVowel, $roundFrontVowels ) ) { |
|
92 | $word = implode( "", $ar[0] ) . "түң"; |
|
93 | } elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) { |
|
94 | $word = implode( "", $ar[0] ) . "тиң"; |
|
95 | } elseif ( in_array( $wordLastVowel, $roundBackVowels ) ) { |
|
96 | $word = implode( "", $ar[0] ) . "туң"; |
|
97 | } elseif ( in_array( $wordLastVowel, $unroundBackVowels ) ) { |
|
98 | $word = implode( "", $ar[0] ) . "тың"; |
|
99 | } else { |
|
100 | } |
|
101 | } elseif ( $wordEnding === "л" ) { |
|
102 | if ( in_array( $wordLastVowel, $roundFrontVowels ) ) { |
|
103 | $word = implode( "", $ar[0] ) . "дүң"; |
|
104 | } elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) { |
|
105 | $word = implode( "", $ar[0] ) . "диң"; |
|
106 | } elseif ( in_array( $wordLastVowel, $roundBackVowels ) ) { |
|
107 | $word = implode( "", $ar[0] ) . "дуң"; |
|
108 | } elseif ( in_array( $wordLastVowel, $unroundBackVowels ) ) { |
|
109 | $word = implode( "", $ar[0] ) . "дың"; |
|
110 | } else { |
|
111 | } |
|
112 | } else { |
|
113 | if ( in_array( $wordLastVowel, $roundFrontVowels ) ) { |
|
114 | $word = implode( "", $ar[0] ) . "нүң"; |
|
115 | } elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) { |
|
116 | $word = implode( "", $ar[0] ) . "ниң"; |
|
117 | } elseif ( in_array( $wordLastVowel, $roundBackVowels ) ) { |
|
118 | $word = implode( "", $ar[0] ) . "нуң"; |
|
119 | } elseif ( in_array( $wordLastVowel, $unroundBackVowels ) ) { |
|
120 | $word = implode( "", $ar[0] ) . "ның"; |
|
121 | } else { |
|
122 | } |
|
123 | } |
|
124 | break; |
|
125 | case "dative": |
|
126 | if ( in_array( $wordEnding, $unvoicedPhonemes ) ) { |
|
127 | if ( in_array( $wordLastVowel, $frontVowels ) ) { |
|
@@ 142-177 (lines=36) @@ | ||
139 | } |
|
140 | } |
|
141 | break; |
|
142 | case "accusative": |
|
143 | if ( in_array( $wordEnding, $unvoicedPhonemes ) ) { |
|
144 | if ( in_array( $wordLastVowel, $roundFrontVowels ) ) { |
|
145 | $word = implode( "", $ar[0] ) . "тү"; |
|
146 | } elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) { |
|
147 | $word = implode( "", $ar[0] ) . "ти"; |
|
148 | } elseif ( in_array( $wordLastVowel, $roundBackVowels ) ) { |
|
149 | $word = implode( "", $ar[0] ) . "ту"; |
|
150 | } elseif ( in_array( $wordLastVowel, $unroundBackVowels ) ) { |
|
151 | $word = implode( "", $ar[0] ) . "ты"; |
|
152 | } else { |
|
153 | } |
|
154 | } elseif ( $wordEnding === "л" ) { |
|
155 | if ( in_array( $wordLastVowel, $roundFrontVowels ) ) { |
|
156 | $word = implode( "", $ar[0] ) . "дү"; |
|
157 | } elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) { |
|
158 | $word = implode( "", $ar[0] ) . "ди"; |
|
159 | } elseif ( in_array( $wordLastVowel, $roundBackVowels ) ) { |
|
160 | $word = implode( "", $ar[0] ) . "ду"; |
|
161 | } elseif ( in_array( $wordLastVowel, $unroundBackVowels ) ) { |
|
162 | $word = implode( "", $ar[0] ) . "ды"; |
|
163 | } else { |
|
164 | } |
|
165 | } else { |
|
166 | if ( in_array( $wordLastVowel, $roundFrontVowels ) ) { |
|
167 | $word = implode( "", $ar[0] ) . "нү"; |
|
168 | } elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) { |
|
169 | $word = implode( "", $ar[0] ) . "ни"; |
|
170 | } elseif ( in_array( $wordLastVowel, $roundBackVowels ) ) { |
|
171 | $word = implode( "", $ar[0] ) . "ну"; |
|
172 | } elseif ( in_array( $wordLastVowel, $unroundBackVowels ) ) { |
|
173 | $word = implode( "", $ar[0] ) . "ны"; |
|
174 | } else { |
|
175 | } |
|
176 | } |
|
177 | break; |
|
178 | case "locative": |
|
179 | if ( in_array( $wordEnding, $unvoicedPhonemes ) ) { |
|
180 | if ( in_array( $wordLastVowel, $frontVowels ) ) { |