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;
  };
})();