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