Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Add IP recognizer - This recognizer will find any Ipv4/Ipv6 presented
// E.g "My Ip is 8.8.8.8"
...Recognizers.recognizeIpAddress(input, culture),
// URL recognizer -This recognizer will find all the urls
// E.g "bing.com"
...Recognizers.recognizeURL(input, culture),
// GUID recognizer - This recognizer will find all the GUID presented
// E.g "My GUID number is {123e4567-e89b-12d3-a456-426655440000}"
...Recognizers.recognizeGUID(input, culture),
// Boolean recognizer - This function will find yes/no like responses, including emoji -
// E.g "yup, I need that" will return "True"
...Recognizers.recognizeBoolean(input, culture)
];
}
var recognizeBoolean = (query) => Recognizers.recognizeBoolean(query, Recognizers.Culture.English);