1 | input = input:lower() |
2 | |
3 | if input == 'computer off' or input == 'switch off' or input == 'turn off' |
4 | or input == 'off!' or input == '!off' or input == 'off' then |
5 | return 'TURN OFF' |
6 | end |
A recognizer for the TURN OFF intention. (See: TURN ON)
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
No comments. add comment
| Recognizer | Recognition Result | Visualize | Recalc |
|---|---|---|---|
| #308 | 189 | [visualize] |
| Snippet ID: | #56 |
| Snippet name: | TURN OFF (recognizer) |
| Eternal ID of this version: | #56/1 |
| Text MD5: | dbc359f0117c5ccb2365d9a50f64e30c |
| 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:06:01 |
| Source code size: | 189 bytes / 6 lines |
| Pitched / IR pitched: | Yes / Yes |
| Views / Downloads: | 1429 / 627 |
| Referenced in: | [show references] |