News for hackers. Stuff that matters.
Re:Safari's date-picker is the cause of 1/3 of our customer ... by bmitc on Tuesday December 27, 2022 @06:57AM (#34147908)
That's a cool library. I note that WolframAlpha handles this type of stuff readily. Does anyone ever bundle Wolfram products into theirs to handle natural language type things? I'm not immediately sure of the licensing framework, but it would seem nice to be able to do that.

Edit: It seems that WolframAlpha does have an HTTP API.

https://products.wolframalpha.com/api/documentation

I'm curious if anyone has used it. It costs but it could save an immense amount of time.

Re:Safari's date-picker is the cause of 1/3 of our customer ... by andrepd on Tuesday December 27, 2022 @07:12AM (#34147976)
Embedding wolframalpha is probably overkill, when all you need is simply a small arithmetic expression parser and to understand expressions like "next month" or "2 days ago", which even tools like GNU date support.
Re:Safari's date-picker is the cause of 1/3 of our customer ... by bmitc on Tuesday December 27, 2022 @07:57AM (#34148220)
For dates, probably, but I was more curious about other natural language use cases.
Re:Safari's date-picker is the cause of 1/3 of our customer ... by throwaway2037 on Tuesday December 27, 2022 @09:36AM (#34148999)
Hat tip that you mention GNU date. I am surprised each time I use that feature and it manages to produce the date that I wanted.