Libraryless. Click here for Pure Java version (17155L/120K).
1 | !7 |
2 | |
3 | module SpeechToCalendarEntry > DynPrintLogAndEnabled { |
4 | start { |
5 | dm_onTopInput_q(voidfunc(S s) { |
6 | print("StC: " + s); |
7 | if (!enabled) ret; |
8 | S ymd = ai_ymdFromEnglishSentence(s); |
9 | if (empty(ymd)) ret; |
10 | print("Speech to calendar: " + ymd); |
11 | S sentence = ai_dropTimeSpecifiers(s); |
12 | dm_requireAndCallModule("#1020691/Calendar", 'addEntry, ymd, sentence); |
13 | }); |
14 | } |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020721 |
Snippet name: | Speech To Calendar Entry [dev.] |
Eternal ID of this version: | #1020721/3 |
Text MD5: | 699051c2a148277506d2fd673565c9d5 |
Transpilation MD5: | d76bafd413f69a9921cc14112bb29521 |
Author: | stefan |
Category: | javax / stefan's os / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-31 23:48:16 |
Source code size: | 420 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 290 / 1613 |
Version history: | 2 change(s) |
Referenced in: | [show references] |