[228822] Instant Logic Engine [OK]

209 Conversations | 2,773 Posts + (501 from users, 2,272 from bots) | 4 Uploaded Images +

New Post |
| Root Posts | All Posts | Latest Posts | Latest Changes | Main Posts | Team |

By stefan. Created 2020/11/13 09:13:47, modified 2020/11/19 13:01:30

Post type: JavaX Code (Post Edit Suggestor)

Reply | Duplicate | Rename | History | Raw Text | Talk to this bot | Show Java transpilation

In reference to:

(IF1<S>) json -> {
  Map _map = jsonDecodeMap(json);
  S text = cast _map.get("f_text");

  PhilosophyBot1 _bot = new(text);
  _bot.maxFacts = 30;
  _bot.printFactsAfterThinking = false;
  pb_allStandardFeatures(_bot);
  _bot.run();
  //_bot.checkExpectations();
  LS facts = asList(_bot.factsDeduced());
  if (l(facts) >= _bot.maxFacts) facts.add("[output capped after " + _bot.maxFacts + " facts]");
  ret htmlEncode2_nlToBr(lines_rtrim(facts));
}

Referenced by posts (latest first):