checkTextfunction
Check a name or other short text a child has typed.
Every export of every entry point, each with its own page. This page keeps the addresses the old one-page reference had.
@johnmorrisdotca/kotoba/children-filtercheckTextfunctionCheck a name or other short text a child has typed.
isCleanfunctionSay whether a name or short text passes the children's filter.
@johnmorrisdotca/kotoba/words-enEN_WORDSconstantTHE ENGLISH WORDS FOR GOMOJI.
@johnmorrisdotca/kotoba/words-frFR_WORDSconstantTHE FRENCH WORDS FOR GOMOJI.
@johnmorrisdotca/kotoba/words-deDE_WORDSconstantTHE GERMAN WORDS FOR GOMOJI.
@johnmorrisdotca/kotoba/pop-answersPOP_ANSWERSconstantPop-culture answer words, grouped by word length.
POP_CATEGORIESconstantPOP GOMOJI'S ANSWERS.
@johnmorrisdotca/kotoba/pop-guessesPOP_GUESSESconstantPOP GOMOJI'S DICTIONARY GUESSES AT THREE AND SEVEN LETTERS, the lengths Gomoji's English lists do not have.
@johnmorrisdotca/kotoba/kana-3JA_WORDS_3constantTHE 3-KANA WORDS FOR GOMOJI.
@johnmorrisdotca/kotoba/kana-4JA_WORDS_4constantTHE 4-KANA WORDS FOR GOMOJI.
@johnmorrisdotca/kotoba/kana-5JA_WORDS_5constantTHE 5-KANA WORDS FOR GOMOJI.
@johnmorrisdotca/kotoba/idioms-jaJA_IDIOMSconstantTHE JAPANESE IDIOMS.
@johnmorrisdotca/kotoba/shiritori-jaJA_SHIRITORIconstantTHE SHIRITORI WORDS.
@johnmorrisdotca/kotoba/proverbs-jaJA_PROVERBSconstantTHE PROVERBS.
@johnmorrisdotca/kotoba/yojijukugo-jaJA_YOJIJUKUGOconstantTHE FOUR-CHARACTER COMPOUNDS.
@johnmorrisdotca/kotoba/clicliLanguagefunctionThe language the command line speaks: --lang, or the environment's, or the system's; Japanese for ja…, English for anything else.
CliResulttypeWhat the command line came to.
CliSurroundingstypeWhat the command line is run in.
CliTiertypeWhich words of a list: the easy answers, every answer, or every word that may be guessed.
CliWordstypeThe lists the command line reads: the alphabet languages and Japanese kana.
runClifunctionRun the command line.
@johnmorrisdotca/kotoba/meanings-en-4EN_MEANINGS_4constantTHE ENGLISH MEANINGS OF 4-LETTER WORDS.
@johnmorrisdotca/kotoba/meanings-en-5EN_MEANINGS_5constantTHE ENGLISH MEANINGS OF 5-LETTER WORDS.
@johnmorrisdotca/kotoba/meanings-en-6EN_MEANINGS_6constantTHE ENGLISH MEANINGS OF 6-LETTER WORDS.
@johnmorrisdotca/kotoba/meanings-enenglishMeaningfunctionWhat an English word means, in a short line, or null for a word with no meaning to show: one WordNet has no entry for, a word of the other languages, or one left out because it is not for children.
PackedMeaningstypeThe meanings of one length of word as a data file holds them: the release it was made from, and a row to a line, each the word, a tab and the line.
readMeaningsfunctionReads a stored list of meanings into a map from word to line.
@johnmorrisdotca/kotoba/loadLoadedWordListtypeA list read into words: the easy answers inside the answers inside the words that may be guessed.
loadWordListfunctionOne list of one size read into words, or null for a size the language has no list of.
WORD_LIST_NAMESconstantThe lists, in the order they are named.
WORD_LIST_SIZESconstantThe sizes each list comes in: four to six letters, or three to five kana.
WordListNametypeThe languages that have a list to load: English, French, German, and Japanese kana.
@johnmorrisdotca/kotoba/playKOTOBA_PLAY_CSSconstantThe game's stylesheet: added to the page once, as a <style> with the id kotoba-play-style.
KOTOBA_PLAY_VARIABLESconstantThe variables the game's look is made of, with what they are unless set.
KotobaNewGametypeWhat newGame may change: the choices about the word, and nothing about the look.
KotobaPlaytypeA mounted game.
KotobaPlayOptionstypeWhat a round is dealt from, and how the game looks and behaves.
mountKotobafunctionPut a word game into container, and deal the first round.
@johnmorrisdotca/kotoba/elementdefineGamefunctionDefines the default game or a subclass under a custom tag.
KOTOBA_EMBED_OPTION_KEYSconstantReal mounted options, checked alongside builder coverage.
KotobaElementOptionstypeHost data, appearance overrides, loading and callbacks; attributes override round choices.
KotobaGameclassA word game with scoped keyboard handling, reflected choices and UTC daily play.
@johnmorrisdotca/kotoba/element/definedefineGamefunctionDefines the default game or a subclass under a custom tag.
KOTOBA_EMBED_OPTION_KEYSconstantReal mounted options, checked alongside builder coverage.
KotobaElementOptionstypeHost data, appearance overrides, loading and callbacks; attributes override round choices.
KotobaGameclassA word game with scoped keyboard handling, reflected choices and UTC daily play.
@johnmorrisdotca/kotobaALPHABETSconstantThe letters each alphabet game's words are written in, as a character class.
changeWordGamefunctionThe last kana typed made small or large again (つ and っ), or given the next mark (は, ば, ぱ).
cycleMarkfunction゛゜: a kana's mark, round in turn — は → ば → ぱ → は, か → が → か, う → ゔ → う; a kana with no marked form stays.
dailyIndexfunctionWhich of count words a day gets, from 0 to count - 1.
DailyOptionstypeHow a day's word is chosen.
dailyWordfunctionThe word of a day: the same for everybody who asks about the same day of the same list.
dayKeyfunctionThe calendar day a moment falls on, as YYYY-MM-DD: in UTC unless an IANA time zone such as Asia/Tokyo is named.
DayKeytypeA day's name: four digits of year, two of month and two of day, such as 2026-10-01.
dayNumberfunctionHow many days after 1970-01-01 a day is, counting the calendar and nothing else: a day has no hours here.
decodeGuessesfunctionGuesses run together, size letters each, read back as a list; null for anything else.
decodeHiddenfunctionA hidden word read back, in lower case, or null for one that is not size letters of the language's alphabet.
encodeHiddenfunctionA hidden word as it is written down for a puzzle: in capitals.
eraseWordGamefunctionThe last thing typed taken back: romaji not yet a kana first, then the last kana or letter.
finishRomajifunctionAt Enter: what was typed, with a last "n" read as ん and any other unfinished sound dropped.
foundBonusfunctionFinding the word: 10 for every place of every guess the board gives, so it grows with the board.
GomojiLanguagetypeThe alphabet games: English, French, German, and the pop-culture English list.
guessMarksfunctionHow each place of a guess did against the hidden word.
IdiomtypeOne set phrase.
IdiomKindtypeWhose 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").
isDayKeyfunctionWhether the text is a real calendar date written YYYY-MM-DD, from the year 0000 to 9999.
isKanaGamefunctionWhether a round is played in kana.
isSmallfunctionWhether this kana is one of the supported small forms.
KANA_COLUMNconstantWHAT A KANA WORD SCORES, won or lost, on English's scale (wordScore) so the two boards read alike.
KANA_SIZESconstantThe lengths the kana lists come in.
kanaBasefunctionA kana without its size or its mark: ぱ → は, っ → つ, ゔ → う.
kanaFamilyfunctionThe gojūon row a kana belongs to, by its base, or null for ー and anything that is no kana.
kanaFoundfunctionFound: every place plain green — the right kana, the right size, the right mark.
KanaMarktypeHOW A KANA GUESS IS COLOURED, by John's rules for Gomoji in kana (2026-09-25; the table is in docs/plans/other/WORD-04-kana.md):
KanaMarkedtypeOne kana guess position with its native match and size/voicing differences.
kanaScorefunctionScore kana guesses using exact, elsewhere and same-family matches plus found and speed bonuses.
KanaScoretypeThe word-score components with the additional same-kana-family column component.
kanaTonefunctionWhich mark a kana carries: none, ゛ or ゜.
KanaWordstypeA kana list, read.
KEYBOARD_ROWSconstantTHE 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.
keyMarksfunctionThe best mark each letter has earned across the guesses, for colouring a keyboard: a hit beats near beats miss.
KOTOBA_STRINGSconstantEvery string, in both languages.
kotobaLanguagefunctionThe language a person asked for, by en or ja or a tag that begins with one: English for anything else.
kotobaSayfunctionA string with its braces filled in from values; a brace with no value is left as it is.
KotobaStringstypeThe names of the strings.
LanguagetypeThe languages Kotoba speaks.
LetterMarktypeHow a guessed letter did: in its place, in the word elsewhere, or not in it.
LONG_BARconstantThe long-vowel bar, a character of its own.
markGuessfunctionEach letter of a guess marked against the hidden word, counting a letter only as often as the word holds it.
markKanaGuessfunctionA guess coloured against the word, place by place.
normalizeShiritoriReadingfunctionA reading folded to hiragana, with anything that is not kana or a long vowel mark dropped.
PackedtypeA kana list as its entry point exports it: the JMdict release, an alphabet of kana and one character a kana for each, and the three lists written in those characters.
PackedIdiomstypeThe idiom list as it is stored: one row a phrase, the three flags as 0 or 1.
PackedSayingstypeThe proverb and four-character compound lists as they are stored: one row an entry, the two flags as 0 or 1.
PlaceMarktypeOne place of a marked guess: how it did, and for kana whether its size or mark is wrong.
playShiritorifunctionJudges one word against the readings played so far.
readIdiomsfunctionReads the stored idiom list into plain rows.
readRomajifunctionWhat has been typed, as kana, and what is still being typed.
readSayingsfunctionReads a stored list of proverbs or four-character compounds into plain rows.
readShiritoriWordsfunctionReads the stored shiritori list into plain rows, commonest first.
readWordListsfunctionOne length of a list read into words, or null for a length the list does not have.
SayingtypeOne proverb or four-character compound.
searchIdiomsfunctionThe phrases that hold a piece of text in their written form, their reading or any of their meanings, ignoring case.
searchSayingsfunctionThe proverbs or compounds that hold a piece of text in their written form, their reading or any of their meanings, ignoring case.
shiritoriChoicesfunctionThe words of a pool that could be played next and do not lose, in the pool's own order.
shiritoriDistractorScorefunctionHow tempting a word that does not continue the chain is, for a game offering wrong answers: 0 for a word that does continue, or holds no kana; 1 for any other; more for one that shares the vowel, or that ends where the chain stands.
shiritoriHeadKeyfunctionThe kana a reading starts on, or null when it holds none.
ShiritoriPlaytypeWhat a word does to a chain.
shiritoriReadingContinuesfunctionWhether a word starts on the kana the chain has reached.
shiritoriReadingIsPlayablefunctionWhether a word continues the chain and does not end it.
ShiritoriRefusaltypeWhy a word was refused: it starts on the wrong kana, holds no kana, or was said already.
ShiritoriRulestypeHouse rules, since no two tables play alike.
shiritoriTailKeyfunctionThe kana the next word must start on, or null when the word ends the chain: it ends in ん, or holds no kana.
ShiritoriWordtypeOne word of the shiritori list.
startWordGamefunctionA new round: nothing guessed, nothing typed.
submitWordGamefunctionThe guess being typed sent in, now being the time in milliseconds.
toggleSizefunction小: a kana made small, or large again (つ ⇄ っ); one with no small form stays as it is.
typeWordGamefunctionOne key typed, now being the time in milliseconds (the first key starts the clock).
unpackfunctionA packed kana list read into its words, size kana each.
VERSIONconstantThe package's version.
WORD_GAME_ROWSconstantThe guesses a round gives unless said.
WORD_SCOREconstantWHAT A GOMOJI WORD SCORES, won or lost.
WordDatatypeAn alphabet list as its entry point exports it: for each length, the easy answers, all the answers and every word that may be guessed, each a run of words between spaces.
WordGametypeA round.
wordGameKeysfunctionThe keys a round accepts, by the character each types: the letters of the language's keyboard, and for kana the letters of romaji and the long-vowel bar.
WordGameLanguagetypeThe languages a round is played in: the alphabet ones and Japanese kana.
WordGameRefusaltypeWhy a guess was not taken: it was too short, or the list does not have the word.
WordGameStatustypeHow a round stands: still being played, found, or out of guesses.
WordGameSubmittypeA guess sent in: the round after it, and why the guess was not taken, if it was not.
WordGameWordstypeThe words a round may be guessed from.
WordListLanguagetypeThe languages with a dictionary of their own: English, French and German.
WordListstypeOne length of an alphabet list, read: the easy answers, every answer, and the words that may be guessed.
wordScorefunctionrows is how many guesses the puzzle gives (guessesFor), which sets every weight.
WordScoretypeThe placed-letter, elsewhere-letter, found-word and speed components and their total.