diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-07-14 19:04:15 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-07-14 19:04:15 +0200 |
commit | 3dc9484fc81db8f3c8ffd4ebb4bab042e66c6214 (patch) | |
tree | 047c2d28407935c503ba6d672592bb9c67723388 /api/word.ts | |
parent | 948d2311a0fdf2bb5641861824e6c629d1f2a93d (diff) |
more improvements (failing tests down to 540)
Diffstat (limited to 'api/word.ts')
-rw-r--r-- | api/word.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |