!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"); assertTrueVerbose(matchAny([["donald duck" is a noun]], print(bot.imaginedFacts()))); }