Generate Random Phrases, Adjectives, And Nouns – phraseGen.js

Category: Javascript , Text | September 5, 2019
Author: zfett
Views Total: 140
Official Page: Go to website
Last Update: September 5, 2019
License: GPL-3.0

Preview:

Generate Random Phrases, Adjectives, And Nouns – phraseGen.js

Description:

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);

You Might Be Interested In:


Leave a Reply