Skip to the content

Kotoba言葉

Load only the word lists you need, mark repeated letters correctly and play a daily or seeded word game.

Kotoba is the Japanese word for words. About the name

Contents

Reference · Marking, scores and game rules

IdiomKindtype

Whose judgement put a phrase on the list: "idiom" is JMdict's own, an entry it marks idiomatic; "expression" is this package's rule, for set phrases JMdict files as plain expressions (鼻が高い, "proud").

Import it

import type { IdiomKind } from "@johnmorrisdotca/kotoba";

Definition

type IdiomKind = "idiom" | "expression";

Examples

import type { IdiomKind } from "@johnmorrisdotca/kotoba";

const kind: IdiomKind = "idiom";
console.log(kind);
idiom

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kotoba 1.11.0.