wordchkmod

a small test to check word in a list to flag if it is not in or in.

Usage no npm install needed!

<script type="module">
  import wordchkmod from 'https://cdn.skypack.dev/wordchkmod';
</script>

README

var wcheck = require('wordchkmod');

// ref inappropriate_words = ["a1", "b2", "c3", "d4", "e5"];

console.log("Checking 'c3' ...");

if (wcheck.inappropriate("c3")) {

console.log("bad word!");

} else {

console.log("ok word!");

}

console.log("Checking 'okword' ...");

if (wcheck.inappropriate("okword")) {

console.log("bad word!");

} else {

console.log("ok word!");

}