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

22
LINES

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

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 = macmillanDefinitions3(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);
}

Author comment

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: 362 / 476
Referenced in: