From f412a0ae508e8a62a8f7f7e47cf9ea3c2cfae34a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 6 Feb 2025 10:40:41 -0600 Subject: [PATCH] detectLanguage: test that a Japanese text with Han-only characters is ambiguous --- src/utils/language.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/language.test.ts b/src/utils/language.test.ts index f4025290..60b844f0 100644 --- a/src/utils/language.test.ts +++ b/src/utils/language.test.ts @@ -38,6 +38,7 @@ Deno.test('Detects definitive texts', () => { // ambiguous assertEquals(detectLanguage('你好', 1), undefined); + assertEquals(detectLanguage('東京', 1), undefined); assertEquals(detectLanguage('Привет', 1), undefined); assertEquals(detectLanguage('Hello', 1), undefined); });