code: function current_word_is_url(sentence, i, parameter) {
    var is_url = false;
    if (sentence.taggedWords[i].token.indexOf(".") > -1) {
      // url if there are two contiguous alpha characters
      if (/[a-zA-Z]{2}/.test(sentence.taggedWords[i].token)) {
        is_url = true;
      }
    }
    return((parameter === "YES") ? is_url : !is_url);
  }
docs: Checks if the current word is a url Adapted from the original Javascript Brill tagger