Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// getObjectivePronoun.js

(function () {
  /* global AdventureJS A */

  var p = AdventureJS.Dictionary.prototype;

  /**
   * Check if specified word is listed in dictionary.pronouns.
   * @memberOf AdventureJS.Dictionary
   * @method AdventureJS.Dictionary#getObjectivePronoun
   * @kind function
   * @param {String} word
   * @returns {String|Boolean}
   */
  p.getObjectivePronoun = function Dictionary_getObjectivePronoun(word) {
    if (this.objective_pronouns.includes(word)) return word;
    else return false;
  };
})();