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

encodeHiddenfunction

A hidden word as it is written down for a puzzle: in capitals.

Import it

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

Definition

function encodeHidden(word: string): string

Parameters

NameTypeDescription
wordstring

The word or kana array specified by this signature.

Returns

string

A hidden word as it is written down for a puzzle: in capitals.

Examples

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

console.log(encodeHidden("apple"));
APPLE

What it prints (run when this page was built)

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