I am currently developing desktop software, and I always wanted to implement an intuitive search function. For example, I need to write an algorithm that analyzes a search query, for example, "next Monday between 2 and 3 o’clock" or "anytime after 2 on Friday", or even "how can I use". Thus, the context may be completely different, but ask the same thing as me.
Should I tokenize the request (which I am doing so far), or should I treat the string as a complete template and compare with some library?
I'm not sure if SO is the right place for this, so if necessary, point me in the right direction. Basically, I just would like to give advice on the approach I should take.
Thanks.
source share