jsfakeit
Version:

56 lines (55 loc) • 2.61 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.adjectiveIndefinite = exports.adjectiveInterrogative = exports.adjectivePossessive = exports.adjectiveDemostrative = exports.adjectiveProper = exports.adjectiveQuantitative = exports.adjectiveDescriptive = exports.adjective = void 0;
const word_1 = require("../data/word");
const chooseRand_1 = require("../helper/chooseRand");
/** Adjective will generate a random adjective*/
const adjective = () => {
const adjType = [
exports.adjectiveDescriptive,
exports.adjectiveDemostrative,
exports.adjectiveIndefinite,
exports.adjectiveInterrogative,
exports.adjectivePossessive,
exports.adjectiveProper,
exports.adjectiveQuantitative,
];
const i = (0, chooseRand_1.getRandomArbitrary)(0, adjType.length);
return adjType[i]();
};
exports.adjective = adjective;
/** AdjectiveDescriptive will generate a random descriptive adjective*/
const adjectiveDescriptive = () => {
return (0, chooseRand_1.chooseRand)('adjective_descriptive', word_1.Word);
};
exports.adjectiveDescriptive = adjectiveDescriptive;
/** AdjectiveQuantitative will generate a random quantitative adjective*/
const adjectiveQuantitative = () => {
return (0, chooseRand_1.chooseRand)('adjective_quantitative', word_1.Word);
};
exports.adjectiveQuantitative = adjectiveQuantitative;
/** AdjectiveProper will generate a random proper adjective*/
const adjectiveProper = () => {
return (0, chooseRand_1.chooseRand)('adjective_proper', word_1.Word);
};
exports.adjectiveProper = adjectiveProper;
/** AdjectiveDemonstrative will generate a random demonstrative adjective*/
const adjectiveDemostrative = () => {
return (0, chooseRand_1.chooseRand)('adjective_demonstrative', word_1.Word);
};
exports.adjectiveDemostrative = adjectiveDemostrative;
/** AdjectivePossessive will generate a random possessive adjective*/
const adjectivePossessive = () => {
return (0, chooseRand_1.chooseRand)('adjective_possessive', word_1.Word);
};
exports.adjectivePossessive = adjectivePossessive;
/** AdjectiveInterrogative will generate a random interrogative adjective*/
const adjectiveInterrogative = () => {
return (0, chooseRand_1.chooseRand)('adjective_interrogative', word_1.Word);
};
exports.adjectiveInterrogative = adjectiveInterrogative;
/** AdjectiveIndefinite will generate a random indefinite adjective*/
const adjectiveIndefinite = () => {
return (0, chooseRand_1.chooseRand)('adjective_indefinite', word_1.Word);
};
exports.adjectiveIndefinite = adjectiveIndefinite;