Natural Language Analyzer for Dates (.NET)?

I want users to be able to enter dates (including repeating dates) using natural language (for example, "next Friday", "every weekday"). Like the examples http://todoist.com/Help/timeInsert

I found this post , but it is a little outdated and suggested only one solution that I am not completely satisfied with. I thought I could resurrect this question and see: are there any other .NET libraries that do this kind of date parsing?

+6
datetime ironpython nlp
source share
6 answers

I know this is not an optimal solution, but you can also try moving the dateJs library to .net

He handles things like today; tomorrow; July 2008 the next Friday; last april; 2004.08.07; 6/4/2005; 8:15 pm; 22:30:45; + 5 years

+6
source share

I donโ€™t know anything that you can use with the framework today that will allow you to do this, but if you are happy with playing with future bits, you can check Oslo and create your own text DSL.

This article shows how to do what you are trying to do:

http://www.infoq.com/articles/natural-language-date-dsl-oslo

+3
source share

DateTime.Parse () will take a string argument and try to generate its DateTime value. I'm a little rusty, but it should work for any date string that you can generate with DateTime.ToString ().

You can also take a look at DateTime.ParseExact (), which does the same as Parse (), but allows you to limit the possible input string formats. The following link should help you on both sides, as well as with any other date parsing functions within the framework.

http://msdn.microsoft.com/en-us/library/1k1skd40.aspx

+1
source share

We have developed exactly what you are looking for an internal project. We think about it if thatโ€™s enough. Take a look at this blog for more details: http://precisionsoftwaredesign.com/blog.php .

+1
source share

I built this library as part of a project at work. It is not completely polished, but if you are interested, I can work on it and / or arrange a license for your needs.

0
source share

A very old program that I wrote (using Clipper, a DBASE derivative), but the code is pretty readable.

http://www.jbooth-consulting.com/downloads/clipper/guessdate.zip

You can give you some ideas if you want to flip your own ...

0
source share

All Articles