Uses 3874K of libraries. Click here for Pure Java version (9895L/68K/232K).
1 | !7 |
2 | |
3 | concept Def {
|
4 | long updated; |
5 | S inputTerm, outputTerm; |
6 | L<S> definitions; |
7 | } |
8 | |
9 | p-subst {
|
10 | db(); |
11 | veryBigConsole(); |
12 | botDemo("juice", "money");
|
13 | } |
14 | |
15 | answer {
|
16 | s = trim(s); |
17 | Pair<S, L<S>> p = macmillanDefinitions3(s); |
18 | cset(uniq(Def, inputTerm := s), outputTerm := p.a, definitions := p.b, updated := now()); |
19 | print("== " + p.a + " ==");
|
20 | pnl(p.b); |
21 | try answer first(p.b); |
22 | } |
Began life as a copy of #1008456
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1011333 |
| Snippet name: | Macmillan Bot [Dictionary Bot] v2 |
| Eternal ID of this version: | #1011333/1 |
| Text MD5: | d78cab5af3b94afc2ea3503a9d5add65 |
| Transpilation MD5: | 447ab532fdf1e024a6c42746b84d34d9 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-25 00:16:05 |
| Source code size: | 405 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 707 / 881 |
| Referenced in: | [show references] |