Input, control and automation

Sunday 4 September 2016

Building a Home AI, Part 5: Fracted dates

01:43 Posted by Roxton , No comments
If you want occupation for an hour, drink. If you want occupation for a day, read. If you want occupation for a month, marry. If you want occupation for a lifetime, teach an AI to recognize every combination of dates and times in the English language.
—Ancient Chinese Proverb, trans. Roxton.

March and April have been slow months for Mervyn. This is partly because I took a holiday in Cornwall and partly because I have started a new and more demanding job that doesn't leave me as much time and energy as I was hitherto accustomed, but mostly because I have been working solely and solidly on date and time recognition. Though Roxton's mills grind slowly, they grind exceeding small: Mervyn now recognizes almost any date and time range you care to mention.

For example, here's me asking Mervyn what events I have from tomorrow to the Thursday after next (today is the 19th):
Yes, I have no social life. This is because I spend every waking moment feeding my brain to C#.
And here's me asking Google the same question:
It hasn't a clue what I'm on about. Of course, this is hardly a fair comparison - Google does much more than date recognition, and of course they could surpass Mervyn in an afternoon if they wanted to - but beating Google at anything is a nice achievement, nevertheless.

I think, and hope, that the date recognition is now solid enough that I can leave it alone for the present and return to work on actual functionality. Next on the list is finishing the "new event" procedure, and then building on that to produce similar behaviour for creating "to-do" items and reminders.

Caps Off

01:42 Posted by Roxton , No comments
All quiet here, I know. The new job is pretty time consuming, and most of what I'm writing for it falls under the IP clause in my contract and so can't be shared. However, I've been going through my code libraries and am trying to get all the non-protected things up on GitHub.

A very small and mostly useless tool, then: an app that automatically turns off Caps Lock whenever you lock your PC. Useful for me and people like me who rely on muscle memory to get through the day and haven't the patience to check whether Caps Lock is on every time we start typing our password. It's an actual app instead of a service (which would have been more useful) because we don't have local admin rights at work.