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 · /children-filter

isCleanfunction

Say whether a name or short text passes the children's filter.

Import it

import { isClean } from "@johnmorrisdotca/kotoba/children-filter";

Definition

function isClean(text: string, options?: Options): boolean

Parameters

NameTypeDescription
textstring

Text to check.

options (optional)Options | undefined

Language and maximum length, as for checkText.

Returns

boolean

True if the text passes.

Examples

import { isClean } from "@johnmorrisdotca/kotoba/children-filter";
console.log(isClean("Luna")); // true
true

What it prints (run when this page was built)

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