Generate nearly meaningful random English sentence strings using real words!
To install sensible-lorem
, use npm:
npm i sensible-lorem
To use the package in your project, require it and call the function with the desired word count:
(The argument of sensiLorem function specifies the number of words the generated string will contain)
const sensiLorem = require("sensible-lorem");
sensiLorem(10);
This will output a string of approximately 10 words that form coherent sentences.
Generates sentences with real English words, making them suitable for placeholder text.
Specify the number of words you want in the output.
Utilizes various grammatical structures for richer text.
Words are chosen to create more meaningful combinations.
Here’s an example of how to use sensible-lorem:
const sensiLorem = require("sensible-lorem");
console.log(sensiLorem(11));
// Output might be: "The curious cat quickly climbed the tall tree near the peaceful park"
Contributions are welcome! Please fork the repository and create a pull request for any enhancements or bug fixes.
Thanks to the contributors of the English language for providing the rich vocabulary that makes this package possible! <3