diff options
Diffstat (limited to 'test/api-japanese.ts')
-rw-r--r-- | test/api-japanese.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/test/api-japanese.ts b/test/api-japanese.ts deleted file mode 100644 index 86f2ac1..0000000 --- a/test/api-japanese.ts +++ /dev/null @@ -1,24 +0,0 @@ -import Japanese from "../api/japanese.ts"; - -// https://japanese.stackexchange.com/questions/69521/reading-per-kanji-irregular-readings -// wow - -var cases = [ - ["繰り返す", "くりかえす"], // [繰](く)り[返](かえ)す - ["漢字テスト", "かんじてすと"], // [漢字](かんじ)テスト - ["凛々しく", "りりしく"], // [凛々](りり)しく - ["字のテスト", "じのテスト"], // [字](じ)のテスト - ["文字", "っ"], // [漢字](っ) - ["文字りす", "りりりす"], // [文字](りり)りす - ["気を引き締める", "きをひきしめる"], // [気](き)を[引](ひ)き[締](し)める - ["文字り漢字", "りりりり"], // ????? - ["大口魚", "たら"], // [大口魚](たら) -] satisfies Array<[string, string]>; - -for (var args of cases) { - var test = new Japanese(...args as [string, string]); - // console.log(test.reading); - // console.log(test["tokenize"]()); - console.log(JSON.stringify(args) + " -> " + test.furigana("parenthesis")); -} - |