aboutsummaryrefslogtreecommitdiff
path: root/api/word.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/word.ts')
-rw-r--r--api/word.ts5
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);
}