code: function current_word_is_url(tagged_sentence, i, parameter) {
                var is_url = false;
                if (tagged_sentence[i][0].indexOf(".") > -1) {
                  // url if there are two contiguous alpha characters
                  if (/[a-zA-Z]{2}/.test(tagged_sentence[i][0])) {
                    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