52 $frontVowels = [
"е",
"ө",
"ү",
"і",
"ә",
"э",
"я",
"ё",
"и" ];
53 $backVowels = [
"а",
"о",
"ұ",
"ы" ];
54 $allVowels = [
"е",
"ө",
"ү",
"і",
"ә",
"э",
"а",
"о",
"ұ",
"ы",
"я",
"ё",
"и" ];
56 $Nasals = [
"м",
"н",
"ң" ];
57 $Sonants = [
"и",
"й",
"л",
"р",
"у",
"ю" ];
58 $Consonants = [
"п",
"ф",
"к",
"қ",
"т",
"ш",
"с",
"х",
"ц",
"ч",
"щ",
"б",
"в",
"г",
"д" ];
59 $Sibilants = [
"ж",
"з" ];
60 $Sonorants = [
"и",
"й",
"л",
"р",
"у",
"ю",
"м",
"н",
"ң",
"ж",
"з" ];
63 $firstPerson = [
"м",
"ң" ];
64 $secondPerson = [
"з" ];
65 $thirdPerson = [
"ы",
"і" ];
67 list( $wordEnding, $wordLastVowel ) = $this->
lastLetter( $word, $allVowels );
72 case "genitive": # ilik
73 if ( in_array( $wordEnding, $Consonants ) ) {
74 if ( in_array( $wordLastVowel, $frontVowels ) ) {
76 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
79 } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) ) {
80 if ( in_array( $wordLastVowel, $frontVowels ) ) {
82 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
85 } elseif ( in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) {
86 if ( in_array( $wordLastVowel, $frontVowels ) ) {
88 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
94 case "dative": # barıs
95 if ( in_array( $wordEnding, $Consonants ) ) {
96 if ( in_array( $wordLastVowel, $frontVowels ) ) {
98 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
101 } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
102 if ( in_array( $wordLastVowel, $frontVowels ) ) {
104 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
110 case "possessive dative": # täweldık + barıs
111 if ( in_array( $wordEnding, $firstPerson ) ) {
112 if ( in_array( $wordLastVowel, $frontVowels ) ) {
114 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
117 } elseif ( in_array( $wordEnding, $secondPerson ) ) {
118 if ( in_array( $wordLastVowel, $frontVowels ) ) {
120 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
123 } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
124 if ( in_array( $wordLastVowel, $frontVowels ) ) {
126 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
132 case "accusative": # tabıs
133 if ( in_array( $wordEnding, $Consonants ) ) {
134 if ( in_array( $wordLastVowel, $frontVowels ) ) {
136 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
139 } elseif ( in_array( $wordEnding, $allVowels ) ) {
140 if ( in_array( $wordLastVowel, $frontVowels ) ) {
142 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
145 } elseif ( in_array( $wordEnding, $Sonorants ) ) {
146 if ( in_array( $wordLastVowel, $frontVowels ) ) {
148 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
154 case "possessive accusative": # täweldık + tabıs
155 if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
156 if ( in_array( $wordLastVowel, $frontVowels ) ) {
158 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
161 } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
166 case "locative": # jatıs
167 if ( in_array( $wordEnding, $Consonants ) ) {
168 if ( in_array( $wordLastVowel, $frontVowels ) ) {
170 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
173 } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
174 if ( in_array( $wordLastVowel, $frontVowels ) ) {
176 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
182 case "possessive locative": # täweldık + jatıs
183 if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
184 if ( in_array( $wordLastVowel, $frontVowels ) ) {
186 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
189 } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
190 if ( in_array( $wordLastVowel, $frontVowels ) ) {
192 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
198 case "ablative": # şığıs
199 if ( in_array( $wordEnding, $Consonants ) ) {
200 if ( in_array( $wordLastVowel, $frontVowels ) ) {
202 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
205 } elseif ( in_array( $wordEnding, $allVowels )
206 || in_array( $wordEnding, $Sonants )
207 || in_array( $wordEnding, $Sibilants )
209 if ( in_array( $wordLastVowel, $frontVowels ) ) {
211 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
214 } elseif ( in_array( $wordEnding, $Nasals ) ) {
215 if ( in_array( $wordLastVowel, $frontVowels ) ) {
217 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
223 case "possessive ablative": # täweldık + şığıs
224 if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $thirdPerson ) ) {
225 if ( in_array( $wordLastVowel, $frontVowels ) ) {
227 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
230 } elseif ( in_array( $wordEnding, $secondPerson ) ) {
231 if ( in_array( $wordLastVowel, $frontVowels ) ) {
233 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
239 case "comitative": # kömektes
240 if ( in_array( $wordEnding, $Consonants ) ) {
242 } elseif ( in_array( $wordEnding, $allVowels )
243 || in_array( $wordEnding, $Nasals )
244 || in_array( $wordEnding, $Sonants )
247 } elseif ( in_array( $wordEnding, $Sibilants ) ) {
252 case "possessive comitative": # täweldık + kömektes
253 if ( in_array( $wordEnding, $Consonants ) ) {
255 } elseif ( in_array( $wordEnding, $allVowels )
256 || in_array( $wordEnding, $Nasals )
257 || in_array( $wordEnding, $Sonants )
260 } elseif ( in_array( $wordEnding, $Sibilants ) ) {
264 default: # dc0 #nominative #ataw
284 $frontVowels = [
"e",
"ö",
"ü",
"i",
"ä",
"é" ];
285 $backVowels = [
"a",
"o",
"u",
"ı" ];
286 $allVowels = [
"e",
"ö",
"ü",
"i",
"ä",
"é",
"a",
"o",
"u",
"ı" ];
288 $Nasals = [
"m",
"n",
"ñ" ];
289 $Sonants = [
"ï",
"y",
"ý",
"l",
"r",
"w" ];
290 $Consonants = [
"p",
"f",
"k",
"q",
"t",
"ş",
"s",
"x",
"c",
"ç",
"b",
"v",
"g",
"d" ];
291 $Sibilants = [
"j",
"z" ];
292 $Sonorants = [
"ï",
"y",
"ý",
"l",
"r",
"w",
"m",
"n",
"ñ",
"j",
"z" ];
295 $firstPerson = [
"m",
"ñ" ];
296 $secondPerson = [
"z" ];
297 $thirdPerson = [
"ı",
"i" ];
299 list( $wordEnding, $wordLastVowel ) = $this->
lastLetter( $word, $allVowels );
304 case "genitive": # ilik
305 if ( in_array( $wordEnding, $Consonants ) ) {
306 if ( in_array( $wordLastVowel, $frontVowels ) ) {
308 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
311 } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) ) {
312 if ( in_array( $wordLastVowel, $frontVowels ) ) {
314 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
317 } elseif ( in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) {
318 if ( in_array( $wordLastVowel, $frontVowels ) ) {
320 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
326 case "dative": # barıs
327 if ( in_array( $wordEnding, $Consonants ) ) {
328 if ( in_array( $wordLastVowel, $frontVowels ) ) {
330 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
333 } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
334 if ( in_array( $wordLastVowel, $frontVowels ) ) {
336 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
342 case "possessive dative": # täweldık + barıs
343 if ( in_array( $wordEnding, $firstPerson ) ) {
344 if ( in_array( $wordLastVowel, $frontVowels ) ) {
346 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
349 } elseif ( in_array( $wordEnding, $secondPerson ) ) {
350 if ( in_array( $wordLastVowel, $frontVowels ) ) {
352 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
355 } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
356 if ( in_array( $wordLastVowel, $frontVowels ) ) {
358 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
364 case "accusative": # tabıs
365 if ( in_array( $wordEnding, $Consonants ) ) {
366 if ( in_array( $wordLastVowel, $frontVowels ) ) {
368 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
371 } elseif ( in_array( $wordEnding, $allVowels ) ) {
372 if ( in_array( $wordLastVowel, $frontVowels ) ) {
374 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
377 } elseif ( in_array( $wordEnding, $Sonorants ) ) {
378 if ( in_array( $wordLastVowel, $frontVowels ) ) {
380 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
386 case "possessive accusative": # täweldık + tabıs
387 if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
388 if ( in_array( $wordLastVowel, $frontVowels ) ) {
390 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
393 } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
398 case "locative": # jatıs
399 if ( in_array( $wordEnding, $Consonants ) ) {
400 if ( in_array( $wordLastVowel, $frontVowels ) ) {
402 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
405 } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
406 if ( in_array( $wordLastVowel, $frontVowels ) ) {
408 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
414 case "possessive locative": # täweldık + jatıs
415 if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
416 if ( in_array( $wordLastVowel, $frontVowels ) ) {
418 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
421 } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
422 if ( in_array( $wordLastVowel, $frontVowels ) ) {
424 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
430 case "ablative": # şığıs
431 if ( in_array( $wordEnding, $Consonants ) ) {
432 if ( in_array( $wordLastVowel, $frontVowels ) ) {
434 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
437 } elseif ( in_array( $wordEnding, $allVowels )
438 || in_array( $wordEnding, $Sonants )
439 || in_array( $wordEnding, $Sibilants )
441 if ( in_array( $wordLastVowel, $frontVowels ) ) {
443 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
446 } elseif ( in_array( $wordEnding, $Nasals ) ) {
447 if ( in_array( $wordLastVowel, $frontVowels ) ) {
449 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
455 case "possessive ablative": # täweldık + şığıs
456 if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $thirdPerson ) ) {
457 if ( in_array( $wordLastVowel, $frontVowels ) ) {
459 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
462 } elseif ( in_array( $wordEnding, $secondPerson ) ) {
463 if ( in_array( $wordLastVowel, $frontVowels ) ) {
465 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
471 case "comitative": # kömektes
472 if ( in_array( $wordEnding, $Consonants ) ) {
474 } elseif ( in_array( $wordEnding, $allVowels )
475 || in_array( $wordEnding, $Nasals )
476 || in_array( $wordEnding, $Sonants )
479 } elseif ( in_array( $wordEnding, $Sibilants ) ) {
484 case "possessive comitative": # täweldık + kömektes
485 if ( in_array( $wordEnding, $Consonants ) ) {
487 } elseif ( in_array( $wordEnding, $allVowels )
488 || in_array( $wordEnding, $Nasals )
489 || in_array( $wordEnding, $Sonants )
492 } elseif ( in_array( $wordEnding, $Sibilants ) ) {
496 default: # dc0 #nominative #ataw
516 $frontVowels = [
"ە",
"ٶ",
"ٷ",
"ٸ",
"ٵ",
"ە" ];
517 $backVowels = [
"ا",
"و",
"ۇ",
"ى" ];
518 $allVowels = [
"ە",
"ٶ",
"ٷ",
"ٸ",
"ٵ",
"ە",
"ا",
"و",
"ۇ",
"ى" ];
520 $Nasals = [
"م",
"ن",
"ڭ" ];
521 $Sonants = [
"ي",
"ي",
"ل",
"ر",
"ۋ" ];
522 $Consonants = [
"پ",
"ف",
"ك",
"ق",
"ت",
"ش",
"س",
"ح",
"تس",
"چ",
"ب",
"ۆ",
"گ",
"د" ];
523 $Sibilants = [
"ج",
"ز" ];
524 $Sonorants = [
"ي",
"ي",
"ل",
"ر",
"ۋ",
"م",
"ن",
"ڭ",
"ج",
"ز" ];
527 $firstPerson = [
"م",
"ڭ" ];
528 $secondPerson = [
"ز" ];
529 $thirdPerson = [
"ى",
"ٸ" ];
531 list( $wordEnding, $wordLastVowel ) = $this->
lastLetter( $word, $allVowels );
536 case "genitive": # ilik
537 if ( in_array( $wordEnding, $Consonants ) ) {
538 if ( in_array( $wordLastVowel, $frontVowels ) ) {
540 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
543 } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) ) {
544 if ( in_array( $wordLastVowel, $frontVowels ) ) {
546 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
549 } elseif ( in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) {
550 if ( in_array( $wordLastVowel, $frontVowels ) ) {
552 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
558 case "dative": # barıs
559 if ( in_array( $wordEnding, $Consonants ) ) {
560 if ( in_array( $wordLastVowel, $frontVowels ) ) {
562 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
565 } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
566 if ( in_array( $wordLastVowel, $frontVowels ) ) {
568 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
574 case "possessive dative": # täweldık + barıs
575 if ( in_array( $wordEnding, $firstPerson ) ) {
576 if ( in_array( $wordLastVowel, $frontVowels ) ) {
578 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
581 } elseif ( in_array( $wordEnding, $secondPerson ) ) {
582 if ( in_array( $wordLastVowel, $frontVowels ) ) {
584 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
587 } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
588 if ( in_array( $wordLastVowel, $frontVowels ) ) {
590 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
596 case "accusative": # tabıs
597 if ( in_array( $wordEnding, $Consonants ) ) {
598 if ( in_array( $wordLastVowel, $frontVowels ) ) {
600 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
603 } elseif ( in_array( $wordEnding, $allVowels ) ) {
604 if ( in_array( $wordLastVowel, $frontVowels ) ) {
606 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
609 } elseif ( in_array( $wordEnding, $Sonorants ) ) {
610 if ( in_array( $wordLastVowel, $frontVowels ) ) {
612 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
618 case "possessive accusative": # täweldık + tabıs
619 if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
620 if ( in_array( $wordLastVowel, $frontVowels ) ) {
622 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
625 } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
630 case "locative": # jatıs
631 if ( in_array( $wordEnding, $Consonants ) ) {
632 if ( in_array( $wordLastVowel, $frontVowels ) ) {
634 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
637 } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
638 if ( in_array( $wordLastVowel, $frontVowels ) ) {
640 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
646 case "possessive locative": # täweldık + jatıs
647 if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
648 if ( in_array( $wordLastVowel, $frontVowels ) ) {
650 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
653 } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
654 if ( in_array( $wordLastVowel, $frontVowels ) ) {
656 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
662 case "ablative": # şığıs
663 if ( in_array( $wordEnding, $Consonants ) ) {
664 if ( in_array( $wordLastVowel, $frontVowels ) ) {
666 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
669 } elseif ( in_array( $wordEnding, $allVowels )
670 || in_array( $wordEnding, $Sonants )
671 || in_array( $wordEnding, $Sibilants )
673 if ( in_array( $wordLastVowel, $frontVowels ) ) {
675 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
678 } elseif ( in_array( $wordEnding, $Nasals ) ) {
679 if ( in_array( $wordLastVowel, $frontVowels ) ) {
681 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
687 case "possessive ablative": # täweldık + şığıs
688 if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $thirdPerson ) ) {
689 if ( in_array( $wordLastVowel, $frontVowels ) ) {
691 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
694 } elseif ( in_array( $wordEnding, $secondPerson ) ) {
695 if ( in_array( $wordLastVowel, $frontVowels ) ) {
697 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
703 case "comitative": # kömektes
704 if ( in_array( $wordEnding, $Consonants ) ) {
706 } elseif ( in_array( $wordEnding, $allVowels )
707 || in_array( $wordEnding, $Nasals )
708 || in_array( $wordEnding, $Sonants )
711 } elseif ( in_array( $wordEnding, $Sibilants ) ) {
716 case "possessive comitative": # täweldık + kömektes
717 if ( in_array( $wordEnding, $Consonants ) ) {
719 } elseif ( in_array( $wordEnding, $allVowels )
720 || in_array( $wordEnding, $Nasals )
721 || in_array( $wordEnding, $Sonants )
724 } elseif ( in_array( $wordEnding, $Sibilants ) ) {
728 default: # dc0 #nominative #ataw