This release adds a limit
option to GenerationOptions
passed to any generation function.
const map = await loadArray([
"i like apples",
"apples are my favourite fruit",
"i like fruit but chocolate bars are objectively better",
"chocolate bars are delicious",
]);
generateFromMap(map, { limit: 40 });
The output may exceed this maximum length in rare cases but the library will stop generation after the string reaches the length defined in this option.