code: function current_word_ends_with(sentence, i, parameter) {
    var word = sentence.taggedWords[i].token;
    if (!parameter || (parameter.length > word.length)) {
      return false;
    }
    return(word.indexOf(parameter) === (word.length - parameter.length));
  }
docs: Indicates whether or not this string ends with the specified string. Adapted from the original Javascript Brill tagger