UNPKG

fiction-word

Version:
17 lines (16 loc) 660 B
export interface IpsumOptions { length?: number; wordDistribution?: [number, number][]; } /** * @description Generates a sentence with a given length or a normally distributed number. * @param length - The given length of the sentence in words. * @returns The generated sentence. */ export declare const makeSentence: (options?: number | IpsumOptions) => string; /** * @description Generates a paragraph with a given length or a normally distributed number. * @param length - The given length of the paragraph in sentences. * @returns The generated paragraph. */ export declare const makeParagraph: (options?: number | IpsumOptions) => string;