haikunatorjs icon indicating copy to clipboard operation
haikunatorjs copied to clipboard

Add support for 'safe' combinations filter

Open bryandonmarc opened this issue 4 years ago • 0 comments

Feature request: Support for random names without obscene, NSFW, or otherwise sexually suggestive combinations.

Currently, the haikunator.haikunate() can result in inappropriate combinations such as

haikunator.haikunate();
// Sexual combinations:
// => throbbing-wood-6969 (or hard-wood, morning-wood, tiny-wood, etc.)
// => tight-queen-6969
// Drug-related:
// => green-bush-1420
// Religious taboos:
// => dark-voice-6666
// etc.

Reason: One of the combinations above actually appeared when a teacher was generating a random classroom access code while testing my learning management system project. It was downright embarrassing.

Work-around: I've modified the default list of nouns and adjectives and removed those which I think might result in inappropriate combinations. As for the random number token, I've placed a while condition which generates a new random token while the current token matches a list of inappropriate digit combinations e.g. 69, 420, 666, etc.

bryandonmarc avatar Feb 23 '21 11:02 bryandonmarc