From a87a573f09ed6b0335c23000384c409272321d82 Mon Sep 17 00:00:00 2001 From: Dmytro Dashenkov Date: Fri, 2 Feb 2024 23:12:50 +0200 Subject: [PATCH] =?UTF-8?q?Allow=20`=D1=89`=20for=20Ukrainian=20language?= =?UTF-8?q?=20(#193)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dmytro Dashenkov --- .../kotlin/com/github/pemistahl/lingua/internal/Constant.kt | 3 ++- .../com/github/pemistahl/lingua/api/LanguageDetectorTest.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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( "довършат",