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

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

  var p = AdventureJS.Dictionary.prototype;

  /**
   * Determine whether string is recognized as a preposition.
   * @memberOf AdventureJS.Dictionary
   * @method AdventureJS.Dictionary#isPronoun
   * @kind function
   * @param {String} word
   * @returns {String|Boolean}
   */
  p.isPronoun = function Dictionary_isPronoun(word) {
    return this.pronouns.includes(word);
  };
})();