// inflect.js
(function () {
/* global AdventureJS A */
var p = AdventureJS.Dictionary.prototype;
/**
* Takes a plural pronoun token ("we", "we're", etc)
* and converts to the equivalent pronoun according
* to game.settings.game_pronouns, unless another set of
* pronouns is provided.
* @memberOf AdventureJS.Dictionary
* @method AdventureJS.Dictionary#inflect
* @kind function
* @param {String} pronoun
* @ajsinternal
*/
p.inflect = function Dictionary_inflect(
pronoun,
pronouns = this.game.settings.game_pronouns
) {
if ("undefined" === typeof this.inflections[pronouns]) return "";
if ("undefined" === typeof this.inflections[pronouns][pronoun]) return "";
return this.inflections[pronouns][pronoun];
};
})();