code: function current_word_ends_with(tagged_sentence, i, parameter) {
                var word = tagged_sentence[i][0];
                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