Extract dates from text
Easy dates parser that leverages on the power of n-gramify, datejs & dehumanize-date to parse dates that other parsers would fail.
The concept is simple, instead on Regex, we tokenize the string into 'reducing ngrams' & then extract dates!
datejs does the initial parsing & then we use dehumanize-date to confirm parsed tokens & format them.
var parse_date = var s=" Peter was born in 5th january 1994 will be 44 years old next week. "var parsed= console;
Output: