fiction-word
Version:
A random word generator.
31 lines (30 loc) • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.paragraph = exports.sentence = exports.word = void 0;
var fiction_word_1 = require("./fiction-word");
var lorem_ipsum_1 = require("./lorem-ipsum");
var tools_1 = require("./tools");
/**
* @description Generates a word with a given length or a normally distributed number.
* @param length - The given length of the word.
* @returns The generated word.
*/
var word = function (length) { return (0, tools_1.capitalizeFirstLetter)((0, fiction_word_1.makeWord)(length)); };
exports.word = word;
/**
* @description Generates a sentence with a given length or a normally distributed number.
* @param length - The given length of the sentence.
* @returns The generated sentence.
*/
exports.sentence = lorem_ipsum_1.makeSentence;
/**
* @description Generates a paragraph with a given length or a normally distributed number.
* @param length - The given length of the paragraph.
* @returns The generated paragraph.
*/
exports.paragraph = lorem_ipsum_1.makeParagraph;
exports.default = {
word: exports.word,
sentence: exports.sentence,
paragraph: exports.paragraph,
};