'use strict';
import { wordPluralSuffixes } from '../../base-repo/constants/strings-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x2ac720,_0x15e26c)=>__defProp(_0x2ac720,'name',{'value':_0x15e26c,'configurable':!![]});function pluralize(_0x515e51){const _0x587950={},_0x252279=_0x515e51['trim']();let _0x15d2b7=''+_0x252279+wordPluralSuffixes['s'];if(_0x587950[_0x252279['toLowerCase']()])_0x15d2b7=_0x587950[_0x252279['toLowerCase']()];else {if(_0x252279['endsWith'](wordPluralSuffixes['y'])&&!/[aeiou]y$/['test'](_0x252279))_0x15d2b7=''+_0x252279['slice'](0x1ff2+-0x1510+-0xae2,-(-0x19*-0x113+0x1*-0x190f+-0x99*0x3))+wordPluralSuffixes['ies'];else /s$|x$|z$|ch$|sh$/['test'](_0x252279)&&(_0x15d2b7=''+_0x252279+wordPluralSuffixes['es']);}return _0x15d2b7;}__name(pluralize,'pluralize');

export { pluralize };
