Convert a string to Some(s) if it's not blank or null, otherwise None
Counts of the character 2-grams in the string
Counts of the character n-grams in the string
Determine if the string is null or only contains white-space
Whether the string contains a URL
Simplify a URL into something less unique
Simplify a URL into something less unique
the URL
prefix to append to the simplified URL, e.g. "url:"
the number of parts of the path to keep, e.g. with path = 2 "video/technology/2015" -> "video/technology"
if true, keep the "http" or "https" part of the URL
Simplify a URL into something less unique
Simplify a URL into something less unique
Eg simplifyUrl(http://money.cnn.com/video/technology/2015/11/30/tech-gift-guide-selfie-gadgets.cnnmoney/index.html) is simplified to money.cnn.com/video