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

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

  var p = adventurejs.Dictionary.prototype;

  /**
   * Determine whether string is recognized as a possessive
   * pronoun and return the string.
   * @memberOf adventurejs.Dictionary
   * @method adventurejs.Dictionary#getPossessiveDeterminer
   * @param {String} word
   * @returns {String|Boolean}
   */
  p.getPossessiveDeterminer = function Dictionary_getPossessiveDeterminer(
    word
  ) {
    if (this.possessive_determiners.includes(word)) return word;
    else return false;
  };
})();