Warning: session_start(): open(/var/lib/php/sessions/sess_i24r0bdkhpo81d8bevoq5bu70e, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
p-exp {
BakedBot bot = bakedBotWithRulesAndFacts([[
[id: hbmitwbnclzyxxgu] anyInput() && $x, $y in eval(listToOverlappingPairs(words(ai_input())))
=> fact($_q_x and $_q_y are words next to each other)
[id: bvkghqiwkxgkpmda] fact($_q_x and $_q_y are words next to each other)
&& fact($_q_x is a noun)
&& fact($_q_y is a noun)
=> fact[javaTokNoQuotes]("$x $y" is a noun)
]], [[
"donald" is a noun
"duck" is a noun
]]);
setOpt(bot.factsBot(), useIterate := true);
bot.imagineMode();
bot.answer("hi donald duck yo");
bot.answer("!imaginaryFacts");
assertEqualsVerbose_match(lines(bot.imaginaryFacts()), [["donald duck" is a noun]]);
}