separate url construction from main ngram function