by hegivor · 10y ago · 0 comments
nlp.value("I married April for the 2nd time on June 5th 1998 ").date()
// [Date object] d.toLocaleString() -> "04/2/1998"
https://github.com/nlp-compromise/nlp_compromise/blob/master...nlp-compromise definitely does way more, but in NLP, it helps to be domain-specific.
nlp.text('No one knows.').people()[0].text
'No one'2nd = 2