stanford-oval / sempre

OBSOLETE. The Old Almond parser
Other
0 stars 1 forks source link

Time Rules #8

Closed gcampax closed 8 years ago

gcampax commented 8 years ago

"every x seconds do something" and "every day at x time do something" They correspond to builtins @$at and @$timer.

I think we should merge them because:

1) Time rules are special enough that they warrant their own grammar rule

2) Time rules are language builtins so they won't be resolved from thingpedia

3) Time rules are sufficiently different in language structure from other triggers that they don't fit in the "something happens and condition and condition and condition" scheme (which makes the paraphrasing poorer, probably)

4) Time rules are easy to understand because they fit into a daily routine. "Wake me up at 7.50. Make me coffee at 8. Get directions to work at 8.30".

5) Time rules are very useful for continuous queries where a trigger is not really meaningful Think: "monitor if weather changes" vs "every day at 12pm get weather forecast" They kinda do they same thing but the second one is more explicit.

gcampax commented 8 years ago

I should mention that this branch depends on wip/rules for Sabrina, otherwise you can start the rule but you can't stop it.