1 | assert(input, 'Error: input is nil') |
2 | input = input:lower() |
3 | |
4 | if input == 'computer on' or input == 'switch on' or input == 'turn on' |
5 | or input == 'on!' or input == '!on' or input == 'on' then |
6 | return 'TURN ON' |
7 | end |
A recognizer for the TURN ON intention.
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
2 comment(s) hidden. show
| Recognizer | Recognition Result | Visualize | Recalc |
|---|---|---|---|
| #308 | 220 | [visualize] |
| Snippet ID: | #55 |
| Snippet name: | TURN ON (recognizer) |
| Eternal ID of this version: | #55/1 |
| Text MD5: | 792fe94f01b550ee7b4df5e332023be5 |
| Author: | stefan |
| Category: | intention recognizer |
| Type: | Lua code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2013-12-31 17:13:42 |
| Source code size: | 220 bytes / 7 lines |
| Pitched / IR pitched: | Yes / Yes |
| Views / Downloads: | 2318 / 593 |
| Referenced in: | [show references] |