Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function parseAll(input, culture) {
return [
// Number recognizer - This function will find any number from the input
// E.g "I have two apples" will return "2".
...Recognizers.recognizeNumber(input, culture),
// Ordinal number recognizer - This function will find any ordinal number
// E.g "eleventh" will return "11".
...Recognizers.recognizeOrdinal(input, culture),
// Percentage recognizer - This function will find any number presented as percentage
// E.g "one hundred percents" will return "100%"
...Recognizers.recognizePercentage(input, culture),
// Age recognizer - This function will find any age number presented
// E.g "After ninety five years of age, perspectives change" will return "95 Year"
...Recognizers.recognizeAge(input, culture),
// Currency recognizer - This function will find any currency presented
// E.g "Interest expense in the 1988 third quarter was $ 75.3 million" will return "75300000 Dollar"
...Recognizers.recognizeCurrency(input, culture),
// Dimension recognizer - This function will find any dimension presented
// E.g "The six-mile trip to my airport hotel that had taken 20 minutes earlier in the day took more than three hours." will return "6 Mile"
...Recognizers.recognizeDimension(input, culture),