diff --git a/src/main/kotlin/com/github/pemistahl/lingua/internal/Constant.kt b/src/main/kotlin/com/github/pemistahl/lingua/internal/Constant.kt index 4e88e249..c7087799 100644 --- a/src/main/kotlin/com/github/pemistahl/lingua/internal/Constant.kt +++ b/src/main/kotlin/com/github/pemistahl/lingua/internal/Constant.kt @@ -96,7 +96,8 @@ internal object Constant { "Ôô" to enumSetOf(FRENCH, PORTUGUESE, SLOVAK, VIETNAMESE), "ЁёЫыЭэ" to enumSetOf(BELARUSIAN, KAZAKH, MONGOLIAN, RUSSIAN), - "ЩщЪъ" to enumSetOf(BULGARIAN, KAZAKH, MONGOLIAN, RUSSIAN), + "Щщ" to enumSetOf(BULGARIAN, KAZAKH, MONGOLIAN, RUSSIAN, UKRAINIAN), + "Ъъ" to enumSetOf(BULGARIAN, KAZAKH, MONGOLIAN, RUSSIAN), "Òò" to enumSetOf(CATALAN, ITALIAN, VIETNAMESE, YORUBA), "Ææ" to enumSetOf(BOKMAL, DANISH, ICELANDIC, NYNORSK), "Åå" to enumSetOf(BOKMAL, DANISH, NYNORSK, SWEDISH), diff --git a/src/test/kotlin/com/github/pemistahl/lingua/api/LanguageDetectorTest.kt b/src/test/kotlin/com/github/pemistahl/lingua/api/LanguageDetectorTest.kt index 62d469e5..f019c227 100644 --- a/src/test/kotlin/com/github/pemistahl/lingua/api/LanguageDetectorTest.kt +++ b/src/test/kotlin/com/github/pemistahl/lingua/api/LanguageDetectorTest.kt @@ -577,7 +577,7 @@ class LanguageDetectorTest { ), arguments( "плаваща", - listOf(BULGARIAN, KAZAKH, MONGOLIAN, RUSSIAN) + listOf(BULGARIAN, KAZAKH, MONGOLIAN, RUSSIAN, UKRAINIAN) ), arguments( "довършат",