Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / languages / classes / LanguageKk_cyrl.php
index b9da24a..a89dbc2 100644 (file)
@@ -63,9 +63,7 @@ class LanguageKk_cyrl extends Language {
                $secondPerson = [ "з" ]; // 1st plural, 2nd formal
                $thirdPerson = [ "ы", "і" ]; // 3rd
 
-               $lastLetter = $this->lastLetter( $word, $allVowels );
-               $wordEnding =& $lastLetter[0];
-               $wordLastVowel =& $lastLetter[1];
+               list( $wordEnding, $wordLastVowel ) = $this->lastLetter( $word, $allVowels );
 
                // Now convert the word
                switch ( $case ) {
@@ -73,21 +71,21 @@ class LanguageKk_cyrl extends Language {
                        case "genitive": # ilik
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "тің";
+                                               $word .= "тің";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "тың";
+                                               $word .= "тың";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "нің";
+                                               $word .= "нің";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ның";
+                                               $word .= "ның";
                                        }
                                } elseif ( in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "дің";
+                                               $word .= "дің";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "дың";
+                                               $word .= "дың";
                                        }
                                }
                                break;
@@ -95,15 +93,15 @@ class LanguageKk_cyrl extends Language {
                        case "dative": # barıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ке";
+                                               $word .= "ке";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "қа";
+                                               $word .= "қа";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ге";
+                                               $word .= "ге";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ға";
+                                               $word .= "ға";
                                        }
                                }
                                break;
@@ -111,21 +109,21 @@ class LanguageKk_cyrl extends Language {
                        case "possessive dative": # täweldık + barıs
                                if ( in_array( $wordEnding, $firstPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "е";
+                                               $word .= "е";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "а";
+                                               $word .= "а";
                                        }
                                } elseif ( in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ге";
+                                               $word .= "ге";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ға";
+                                               $word .= "ға";
                                        }
                                } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "не";
+                                               $word .= "не";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "на";
+                                               $word .= "на";
                                        }
                                }
                                break;
@@ -133,21 +131,21 @@ class LanguageKk_cyrl extends Language {
                        case "accusative": # tabıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ті";
+                                               $word .= "ті";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ты";
+                                               $word .= "ты";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ні";
+                                               $word .= "ні";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ны";
+                                               $word .= "ны";
                                        }
                                } elseif ( in_array( $wordEnding, $Sonorants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ді";
+                                               $word .= "ді";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ды";
+                                               $word .= "ды";
                                        }
                                }
                                break;
@@ -155,27 +153,27 @@ class LanguageKk_cyrl extends Language {
                        case "possessive accusative": # täweldık + tabıs
                                if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ді";
+                                               $word .= "ді";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ды";
+                                               $word .= "ды";
                                        }
                                } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
-                                               $word = $word . "н";
+                                               $word .= "н";
                                }
                                break;
                        case "dc4":
                        case "locative": # jatıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "те";
+                                               $word .= "те";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "та";
+                                               $word .= "та";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "де";
+                                               $word .= "де";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "да";
+                                               $word .= "да";
                                        }
                                }
                                break;
@@ -183,15 +181,15 @@ class LanguageKk_cyrl extends Language {
                        case "possessive locative": # täweldık + jatıs
                                if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "де";
+                                               $word .= "де";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "да";
+                                               $word .= "да";
                                        }
                                } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "нде";
+                                               $word .= "нде";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "нда";
+                                               $word .= "нда";
                                        }
                                }
                                break;
@@ -199,24 +197,24 @@ class LanguageKk_cyrl extends Language {
                        case "ablative": # şığıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "тен";
+                                               $word .= "тен";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "тан";
+                                               $word .= "тан";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels )
                                        || in_array( $wordEnding, $Sonants )
                                        || in_array( $wordEnding, $Sibilants )
                                ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ден";
+                                               $word .= "ден";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "дан";
+                                               $word .= "дан";
                                        }
                                } elseif ( in_array( $wordEnding, $Nasals ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "нен";
+                                               $word .= "нен";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "нан";
+                                               $word .= "нан";
                                        }
                                }
                                break;
@@ -224,42 +222,42 @@ class LanguageKk_cyrl extends Language {
                        case "possessive ablative": # täweldık + şığıs
                                if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $thirdPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "нен";
+                                               $word .= "нен";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "нан";
+                                               $word .= "нан";
                                        }
                                } elseif ( in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ден";
+                                               $word .= "ден";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "дан";
+                                               $word .= "дан";
                                        }
                                }
                                break;
                        case "dc6":
                        case "comitative": # kömektes
                                if ( in_array( $wordEnding, $Consonants ) ) {
-                                               $word = $word . "пен";
+                                               $word .= "пен";
                                } elseif ( in_array( $wordEnding, $allVowels )
                                        || in_array( $wordEnding, $Nasals )
                                        || in_array( $wordEnding, $Sonants )
                                ) {
-                                               $word = $word . "мен";
+                                               $word .= "мен";
                                } elseif ( in_array( $wordEnding, $Sibilants ) ) {
-                                               $word = $word . "бен";
+                                               $word .= "бен";
                                }
                                break;
                        case "dc61":
                        case "possessive comitative": # täweldık + kömektes
                                if ( in_array( $wordEnding, $Consonants ) ) {
-                                               $word = $word . "пенен";
+                                               $word .= "пенен";
                                } elseif ( in_array( $wordEnding, $allVowels )
                                        || in_array( $wordEnding, $Nasals )
                                        || in_array( $wordEnding, $Sonants )
                                ) {
-                                               $word = $word . "менен";
+                                               $word .= "менен";
                                } elseif ( in_array( $wordEnding, $Sibilants ) ) {
-                                               $word = $word . "бенен";
+                                               $word .= "бенен";
                                }
                                break;
                        default: # dc0 #nominative #ataw
@@ -297,9 +295,7 @@ class LanguageKk_cyrl extends Language {
                $secondPerson = [ "z" ]; // 1st plural, 2nd formal
                $thirdPerson = [ "ı", "i" ]; // 3rd
 
-               $lastLetter = $this->lastLetter( $word, $allVowels );
-               $wordEnding =& $lastLetter[0];
-               $wordLastVowel =& $lastLetter[1];
+               list( $wordEnding, $wordLastVowel ) = $this->lastLetter( $word, $allVowels );
 
                // Now convert the word
                switch ( $case ) {
@@ -307,21 +303,21 @@ class LanguageKk_cyrl extends Language {
                        case "genitive": # ilik
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "tiñ";
+                                               $word .= "tiñ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "tıñ";
+                                               $word .= "tıñ";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "niñ";
+                                               $word .= "niñ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "nıñ";
+                                               $word .= "nıñ";
                                        }
                                } elseif ( in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "diñ";
+                                               $word .= "diñ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "dıñ";
+                                               $word .= "dıñ";
                                        }
                                }
                                break;
@@ -329,15 +325,15 @@ class LanguageKk_cyrl extends Language {
                        case "dative": # barıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ke";
+                                               $word .= "ke";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "qa";
+                                               $word .= "qa";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ge";
+                                               $word .= "ge";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ğa";
+                                               $word .= "ğa";
                                        }
                                }
                                break;
@@ -345,21 +341,21 @@ class LanguageKk_cyrl extends Language {
                        case "possessive dative": # täweldık + barıs
                                if ( in_array( $wordEnding, $firstPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "e";
+                                               $word .= "e";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "a";
+                                               $word .= "a";
                                        }
                                } elseif ( in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ge";
+                                               $word .= "ge";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ğa";
+                                               $word .= "ğa";
                                        }
                                } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ne";
+                                               $word .= "ne";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "na";
+                                               $word .= "na";
                                        }
                                }
                                break;
@@ -367,21 +363,21 @@ class LanguageKk_cyrl extends Language {
                        case "accusative": # tabıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ti";
+                                               $word .= "ti";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "tı";
+                                               $word .= "tı";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ni";
+                                               $word .= "ni";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "nı";
+                                               $word .= "nı";
                                        }
                                } elseif ( in_array( $wordEnding, $Sonorants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "di";
+                                               $word .= "di";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "dı";
+                                               $word .= "dı";
                                        }
                                }
                                break;
@@ -389,27 +385,27 @@ class LanguageKk_cyrl extends Language {
                        case "possessive accusative": # täweldık + tabıs
                                if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "di";
+                                               $word .= "di";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "dı";
+                                               $word .= "dı";
                                        }
                                } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
-                                               $word = $word . "n";
+                                               $word .= "n";
                                }
                                break;
                        case "dc4":
                        case "locative": # jatıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "te";
+                                               $word .= "te";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ta";
+                                               $word .= "ta";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "de";
+                                               $word .= "de";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "da";
+                                               $word .= "da";
                                        }
                                }
                                break;
@@ -417,15 +413,15 @@ class LanguageKk_cyrl extends Language {
                        case "possessive locative": # täweldık + jatıs
                                if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "de";
+                                               $word .= "de";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "da";
+                                               $word .= "da";
                                        }
                                } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "nde";
+                                               $word .= "nde";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "nda";
+                                               $word .= "nda";
                                        }
                                }
                                break;
@@ -433,24 +429,24 @@ class LanguageKk_cyrl extends Language {
                        case "ablative": # şığıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ten";
+                                               $word .= "ten";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "tan";
+                                               $word .= "tan";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels )
                                        || in_array( $wordEnding, $Sonants )
                                        || in_array( $wordEnding, $Sibilants )
                                ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "den";
+                                               $word .= "den";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "dan";
+                                               $word .= "dan";
                                        }
                                } elseif ( in_array( $wordEnding, $Nasals ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "nen";
+                                               $word .= "nen";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "nan";
+                                               $word .= "nan";
                                        }
                                }
                                break;
@@ -458,42 +454,42 @@ class LanguageKk_cyrl extends Language {
                        case "possessive ablative": # täweldık + şığıs
                                if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $thirdPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "nen";
+                                               $word .= "nen";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "nan";
+                                               $word .= "nan";
                                        }
                                } elseif ( in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "den";
+                                               $word .= "den";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "dan";
+                                               $word .= "dan";
                                        }
                                }
                                break;
                        case "dc6":
                        case "comitative": # kömektes
                                if ( in_array( $wordEnding, $Consonants ) ) {
-                                               $word = $word . "pen";
+                                               $word .= "pen";
                                } elseif ( in_array( $wordEnding, $allVowels )
                                        || in_array( $wordEnding, $Nasals )
                                        || in_array( $wordEnding, $Sonants )
                                ) {
-                                               $word = $word . "men";
+                                               $word .= "men";
                                } elseif ( in_array( $wordEnding, $Sibilants ) ) {
-                                               $word = $word . "ben";
+                                               $word .= "ben";
                                }
                                break;
                        case "dc61":
                        case "possessive comitative": # täweldık + kömektes
                                if ( in_array( $wordEnding, $Consonants ) ) {
-                                               $word = $word . "penen";
+                                               $word .= "penen";
                                } elseif ( in_array( $wordEnding, $allVowels )
                                        || in_array( $wordEnding, $Nasals )
                                        || in_array( $wordEnding, $Sonants )
                                ) {
-                                               $word = $word . "menen";
+                                               $word .= "menen";
                                } elseif ( in_array( $wordEnding, $Sibilants ) ) {
-                                               $word = $word . "benen";
+                                               $word .= "benen";
                                }
                                break;
                        default: # dc0 #nominative #ataw
@@ -531,9 +527,7 @@ class LanguageKk_cyrl extends Language {
                $secondPerson = [ "ز" ]; // 1st plural, 2nd formal
                $thirdPerson = [ "ى", "ٸ" ]; // 3rd
 
-               $lastLetter = $this->lastLetter( $word, $allVowels );
-               $wordEnding = $lastLetter[0];
-               $wordLastVowel = $lastLetter[1];
+               list( $wordEnding, $wordLastVowel ) = $this->lastLetter( $word, $allVowels );
 
                // Now convert the word
                switch ( $case ) {
@@ -541,21 +535,21 @@ class LanguageKk_cyrl extends Language {
                        case "genitive": # ilik
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "تٸڭ";
+                                               $word .= "تٸڭ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "تىڭ";
+                                               $word .= "تىڭ";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "نٸڭ";
+                                               $word .= "نٸڭ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "نىڭ";
+                                               $word .= "نىڭ";
                                        }
                                } elseif ( in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "دٸڭ";
+                                               $word .= "دٸڭ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "دىڭ";
+                                               $word .= "دىڭ";
                                        }
                                }
                                break;
@@ -563,15 +557,15 @@ class LanguageKk_cyrl extends Language {
                        case "dative": # barıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "كە";
+                                               $word .= "كە";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "قا";
+                                               $word .= "قا";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "گە";
+                                               $word .= "گە";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "عا";
+                                               $word .= "عا";
                                        }
                                }
                                break;
@@ -579,21 +573,21 @@ class LanguageKk_cyrl extends Language {
                        case "possessive dative": # täweldık + barıs
                                if ( in_array( $wordEnding, $firstPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ە";
+                                               $word .= "ە";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ا";
+                                               $word .= "ا";
                                        }
                                } elseif ( in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "گە";
+                                               $word .= "گە";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "عا";
+                                               $word .= "عا";
                                        }
                                } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "نە";
+                                               $word .= "نە";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "نا";
+                                               $word .= "نا";
                                        }
                                }
                                break;
@@ -601,21 +595,21 @@ class LanguageKk_cyrl extends Language {
                        case "accusative": # tabıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "تٸ";
+                                               $word .= "تٸ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "تى";
+                                               $word .= "تى";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "نٸ";
+                                               $word .= "نٸ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "نى";
+                                               $word .= "نى";
                                        }
                                } elseif ( in_array( $wordEnding, $Sonorants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "دٸ";
+                                               $word .= "دٸ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "دى";
+                                               $word .= "دى";
                                        }
                                }
                                break;
@@ -623,27 +617,27 @@ class LanguageKk_cyrl extends Language {
                        case "possessive accusative": # täweldık + tabıs
                                if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "دٸ";
+                                               $word .= "دٸ";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "دى";
+                                               $word .= "دى";
                                        }
                                } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
-                                               $word = $word . "ن";
+                                               $word .= "ن";
                                }
                                break;
                        case "dc4":
                        case "locative": # jatıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "تە";
+                                               $word .= "تە";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "تا";
+                                               $word .= "تا";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "دە";
+                                               $word .= "دە";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "دا";
+                                               $word .= "دا";
                                        }
                                }
                                break;
@@ -651,15 +645,15 @@ class LanguageKk_cyrl extends Language {
                        case "possessive locative": # täweldık + jatıs
                                if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "دە";
+                                               $word .= "دە";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "دا";
+                                               $word .= "دا";
                                        }
                                } elseif ( in_array( $wordEnding, $thirdPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "ندە";
+                                               $word .= "ندە";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "ندا";
+                                               $word .= "ندا";
                                        }
                                }
                                break;
@@ -667,24 +661,24 @@ class LanguageKk_cyrl extends Language {
                        case "ablative": # şığıs
                                if ( in_array( $wordEnding, $Consonants ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "تەن";
+                                               $word .= "تەن";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "تان";
+                                               $word .= "تان";
                                        }
                                } elseif ( in_array( $wordEnding, $allVowels )
                                        || in_array( $wordEnding, $Sonants )
                                        || in_array( $wordEnding, $Sibilants )
                                ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "دەن";
+                                               $word .= "دەن";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "دان";
+                                               $word .= "دان";
                                        }
                                } elseif ( in_array( $wordEnding, $Nasals ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "نەن";
+                                               $word .= "نەن";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "نان";
+                                               $word .= "نان";
                                        }
                                }
                                break;
@@ -692,42 +686,42 @@ class LanguageKk_cyrl extends Language {
                        case "possessive ablative": # täweldık + şığıs
                                if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $thirdPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "نەن";
+                                               $word .= "نەن";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "نان";
+                                               $word .= "نان";
                                        }
                                } elseif ( in_array( $wordEnding, $secondPerson ) ) {
                                        if ( in_array( $wordLastVowel, $frontVowels ) ) {
-                                               $word = $word . "دەن";
+                                               $word .= "دەن";
                                        } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
-                                               $word = $word . "دان";
+                                               $word .= "دان";
                                        }
                                }
                                break;
                        case "dc6":
                        case "comitative": # kömektes
                                if ( in_array( $wordEnding, $Consonants ) ) {
-                                               $word = $word . "پەن";
+                                               $word .= "پەن";
                                } elseif ( in_array( $wordEnding, $allVowels )
                                        || in_array( $wordEnding, $Nasals )
                                        || in_array( $wordEnding, $Sonants )
                                ) {
-                                               $word = $word . "مەن";
+                                               $word .= "مەن";
                                } elseif ( in_array( $wordEnding, $Sibilants ) ) {
-                                               $word = $word . "بەن";
+                                               $word .= "بەن";
                                }
                                break;
                        case "dc61":
                        case "possessive comitative": # täweldık + kömektes
                                if ( in_array( $wordEnding, $Consonants ) ) {
-                                               $word = $word . "پەنەن";
+                                               $word .= "پەنەن";
                                } elseif ( in_array( $wordEnding, $allVowels )
                                        || in_array( $wordEnding, $Nasals )
                                        || in_array( $wordEnding, $Sonants )
                                ) {
-                                               $word = $word . "مەنەن";
+                                               $word .= "مەنەن";
                                } elseif ( in_array( $wordEnding, $Sibilants ) ) {
-                                               $word = $word . "بەنەن";
+                                               $word .= "بەنەن";
                                }
                                break;
                        default: # dc0 #nominative #ataw
@@ -737,7 +731,7 @@ class LanguageKk_cyrl extends Language {
 
        /**
         * @param string $word
-        * @param array $allVowels
+        * @param string[] $allVowels
         * @return array
         */
        function lastLetter( $word, $allVowels ) {