assert(input, 'Error: input is nil') input = input:lower() if input == 'computer on' or input == 'switch on' or input == 'turn on' or input == 'on!' or input == '!on' or input == 'on' then return 'TURN ON' 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
| ID | Author/Program | Comment | Date | |
|---|---|---|---|---|
| 621 | #1000610 | Edit suggestion: !636 !629 main { static Object androidContext; static String programID; public static void main(String[] args) throws Exception { assert(input, 'Error: input is nil') input = input:lower() if input == 'computer on' or input == 'switch on' or input == 'turn on' or input == 'on!' or input == '!on' or input == 'on' then return 'TURN ON' end }} | 2015-08-19 00:58:22 | delete | 
| 619 | #1000604 (pitcher) | 2015-08-18 00:07:22 | 
| 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: | 2315 / 593 | 
| Referenced in: | [show references] |