Warning: session_start(): open(/var/lib/php/sessions/sess_l77kk61hdah8l7hbei33a1g8p4, 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
cmodule IsBot > DynAttractorBot {
AttractorBot makeBot() {
ret testBot(MultiSpaceReasoningBot(litAttractorsBySpace(new DefaultAttractor { run {
print("Got input: " + input);
// tautological case
if (matchDoubleRest("is", input))
ret with emitAnswer(print("Emitting", "yes, obviously"));
LS tok = wordTok(input);
L determiners = indicesOfAny(tok, mechCISet("Determiners"));
print(+determiners);
if (isBetween(l(determiners), 1, 2)) {
int i = last(determiners);
S a = joinSubList(tok, 3, i-1), b = joinSubList(tok, i, l(tok)-1);
ret with emitAnswer("I wonder if " + a + " is " + b);
}
}})));
}
AttractorBot testBot(AttractorBot bot) {
testAttractorBotResponses_noFail(bot,
"is green green?", "yes, obviously",
"is a man a child?", "I wonder if a man is a child");
ret bot;
}
}