ShiritoriRules型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
House rules, since no two tables play alike. The defaults are the forgiving ones, which keep a chain going from a small pool of words.
インポート
import type { ShiritoriRules } from "@johnmorrisdotca/kotoba";
定義
type ShiritoriRules = {
readonly voicing?: "ignored" | "kept";
readonly longVowel?: "vowel" | "before";
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
voicing (省略可) | "ignored" | "kept" | undefined |
|
longVowel (省略可) | "vowel" | "before" | undefined | What a final ー chains on. |
例
import type { ShiritoriRules } from "@johnmorrisdotca/kotoba";
const strict: ShiritoriRules = { voicing: "kept", longVowel: "before" };
console.log(strict);{ voicing: 'kept', longVowel: 'before' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。