I have just been looking at the ‘Forgiving Format’ design pattern (e.g. http://ui-patterns.com/patterns/ForgivingFormat), however I am surprised that I can’t find any libraries implementing this (specifically for simple date/times). Does anybody know of any (perferably open source) libraries for this?
Thanks
I don’t think this is a design pattern, rather a UI pattern… (edit: i just noticed the name of the website you linked to 🙂 )
As a matter of fact, this functionality exists in some libraries. The first one to spring to mind is dateJS, a javascript parsing library that allows for fuzzy date input. However since i last heard of it, there hasn’t been much activity in the project.
Apart from dates, countries, etc… , i think that any project of this kind is very business-specific; first you’ve got to learn how users express themselves and how to translate this in business terms. Working on a generic translator doesn’t look like it’s feasible, at least not without a lot of configuration.