LookAlike型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A kanji that looks like another, and how much.
インポート
import type { LookAlike } from "@johnmorrisdotca/jisho";
定義
type LookAlike = {
readonly kanji: string;
readonly score: number;
readonly strokes: number;
readonly parts: number;
readonly shape: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
kanji | string | The kanji it looks like. |
score | number | The highest of the scores, out of 100. |
strokes | number | Out of 100, by how few stroke edits separate them; 0 where this measure did not rank the pair. |
parts | number | Out of 100, by the parts they share; 0 where this measure did not rank the pair. |
shape | number | Out of 100, by how alike their strokes are drawn (KanjiVG); 0 where the pair has no such score. |
例
import type { LookAlike } from "@johnmorrisdotca/jisho";
const one: LookAlike = { kanji: "士", score: 100, strokes: 100, parts: 67, shape: 0 };
console.log(one.kanji);士出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。