bluefirex / wordgen
There is no license information available for the latest version (1.0.2) of this package.
1.0.2
2017-03-31 15:05 UTC
Requires
- php: >7.0.0
- ext-gmp: *
This package is not auto-updated.
Last update: 2024-04-28 00:37:49 UTC
README
This is a very primitive library for generating english words and basic sentences. You can use it for a variety of things, such as creating an ID that is readable like an english word or creating memorable passwords.
Installation
composer require bluefirex/wordgen
Usage
<?php require __DIR__ . '/vendor/autoload.php'; use bluefirex\WordGen\Generator; $randomWord = Generator::getRandomWord(); $randomNounWithAdjective = Generator::getRandomNounWithAdjective($delimiter = ' '); $randomAdjective = Generator::getRandomAdjective(); $randomNoun = Generator::getRandomNoun(); $randomVerb = Generator::getRandomVerb(); $randomSentence = Generator::getRandomSentence();
Contributions
- Word Lengths, Bigrams and Trigrams by pcrov/Wordle
- Dictionary by kohsuke/wordnet-random-name