server/node_modules/prisma-datamodel/dist/util/util.js
/**
 * Pluralizes a word like the prisma server would do.
 * @param name The word to pluralize.
 */
Pluralizes a word like the prisma server would do.
@param name The word to pluralize.
Pluralizes a word like the prisma server would do . @param name The word to pluralize .
function plural(name) {
    var pluralWord = english_1.English.plural(name);
    if (pluralWord === null || pluralWord === name) {
        if (name.endsWith('s')) {
            return name + 'es';
        }
        else {
            return name + 's';
        }
    }
    else {
        return pluralWord;
    }
}
function plural ( name ) { var pluralWord = english_1 . English . plural ( name ) ; if ( pluralWord === null || pluralWord === name ) { if ( name . endsWith ( 's' ) ) { return name + 'es' ; } else { return name + 's' ; } } else { return pluralWord ; } }
Pluralizes a word like the prisma server would do.
Pluralizes a word like the prisma server would do .