From 3dc9484fc81db8f3c8ffd4ebb4bab042e66c6214 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 14 Jul 2023 19:04:15 +0200 Subject: more improvements (failing tests down to 540) --- api/word.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'api/word.ts') diff --git a/api/word.ts b/api/word.ts index e92bc19..ff07043 100644 --- a/api/word.ts +++ b/api/word.ts @@ -52,7 +52,7 @@ function irregularKuru(tags: TokenTags, conjugation: string): string { ].includes(tag as any)) return "こ" + conjugation; break; } - return "く" + conjugation; + return "くる"; } export default class Word extends APIBase { @@ -115,6 +115,9 @@ export default class Word extends APIBase { } furigana(format: JapaneseFormatter) { + // don't create furigana for filler/kana only terms + if (this.text.writing == this.text.reading) return this.text.writing; + return this.text.furigana(format); } -- cgit v1.2.3