Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1008456 // Macmillan Bot [Dictionary Bot]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 3874K of libraries. Click here for Pure Java version (9895L/68K/232K).

!7

concept Def {
  long updated;
  S inputTerm, outputTerm;
  L<S> definitions;
}

p-subst {
  db();
  veryBigConsole();
  botDemo("juice", "money");
}

answer {
  s = trim(s);
  Pair<S, L<S>> p = macmillanDefinitions2(s);
  cset(uniq(Def, inputTerm := s), outputTerm := p.a, definitions := p.b, updated := now());
  print("== " + p.a + " ==");
  pnl(p.b);
  try answer first(p.b);
}

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: #1008456
Snippet name: Macmillan Bot [Dictionary Bot]
Eternal ID of this version: #1008456/11
Text MD5: be4de6e2d39c4d6f65dce4b6483fc22e
Transpilation MD5: 979a0e2d761ce37625a5720a7ad513af
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-23 00:07:08
Source code size: 405 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 435 / 829
Version history: 10 change(s)
Referenced in: [show references]