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

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

  var p = adventurejs.Dictionary.prototype;

  /**
   * Check if specified word is listed in dictionary.reflexive_pronouns.
   * @memberOf adventurejs.Dictionary
   * @method adventurejs.Dictionary#getReflexivePronoun
   * @kind function
   * @param {String} word
   * @returns {String|Boolean}
   */
  p.getReflexivePronoun = function Dictionary_getReflexivePronoun(word) {
    if (this.reflexive_pronouns.includes(word)) return word;
    else return false;
  };
})();