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

KEYBOARD_ROWSconstant

THE PHYSICAL KEYBOARD DRAWN UNDER A GOMOJI GRID, by language: QWERTY for English, AZERTY for French (the same 26 plain letters English's keys carry, arranged the way a French keyboard is), and QWERTZ for German, with Ä, Ö and Ü carried as keys of their own — German's letters, not English's plus a fold. All three are three rows, so WordKeyboard's Enter and Backspace, fixed to the last row, sit right whichever is drawn.

Import it

import { KEYBOARD_ROWS } from "@johnmorrisdotca/kotoba";

Definition

const KEYBOARD_ROWS: Record<GomojiLanguage, readonly string[]> = {
    en: ["qwertyuiop", "asdfghjkl", "zxcvbnm"],
    fr: ["azertyuiop", "qsdfghjklm", "wxcvbn"],
    de: ["qwertzuiopü", "asdfghjklöä", "yxcvbnm"],
    pop: ["qwertyuiop", "asdfghjkl", "zxcvbnm"],
}

Members

NameTypeDescription
enreadonly string[]
frreadonly string[]
dereadonly string[]
popreadonly string[]

Examples

import { KEYBOARD_ROWS } from "@johnmorrisdotca/kotoba";
console.log(KEYBOARD_ROWS);
{
  en: [ 'qwertyuiop', 'asdfghjkl', 'zxcvbnm' ],
  fr: [ 'azertyuiop', 'qsdfghjklm', 'wxcvbn' ],
  de: [ 'qwertzuiopü', 'asdfghjklöä', 'yxcvbnm' ],
  pop: [ 'qwertyuiop', 'asdfghjkl', 'zxcvbnm' ]
}

What it prints (run when this page was built)

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