
phraseGen.js is a Vanilla JavaScript word generator that helps developers generate random phrases, adjectives, and nouns with custom separators in the document.
How to use it:
Download and insert the phraseGen.js JavaScript library into the document.
<script src="./lib/phraseGen.js"></script>
Generate random phrases using the randPhrase() method and specify the length & separator.
- length: the number of phrases to generate
- outputType: spaces, no-spaces, or dashes
randPhrase(length, outputType);
Generate random subjectives using the randAdjective() method and specify the length & separator.
- length: the number of phrases to generate
- outputType: spaces, no-spaces, or dashes
randAdjective(length, outputType);
Generate random nouns using the randNoun() method and specify the length & separator.
- length: the number of phrases to generate
- outputType: spaces, no-spaces, or dashes
randNoun(length, outputType);







