Warning: session_start(): open(/var/lib/php/sessions/sess_gunu3vvm54qcpp86tkavdtmjjq, 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
!759
sS concepts = [[
qhwrrglkfrbixwov - X has text Y.
jqqmoikhpezdzszn - X has Y line(s).
ygoumdrmuwqzeesj - How many line(s) does X have?
lefmtqojfaiukfke - How many
kcbifqeqvsidsios - -> a text
]];
sS statements = [[
kcbifqeqvsidsios has text "hello world\nhello again".
]];
p {
myTruth(concepts, statements);
addLispEvaluator("ygoumdrmuwqzeesj", new F1() {
Int get(Lisp l) {
S text = lispForwardRaw("qhwrrglkfrbixwov", l.get(0));
//print("Text: " + struct(text));
ret text != null ? countLines(text) : null;
}
});
//answerHowManyQuestion("kcbifqeqvsidsios has how many line(s).");
answerHowManyQuestion("How many line(s) does kcbifqeqvsidsios have?");
}
svoid answerHowManyQuestion(S q) {
print("Answering: " + q);
Lisp l = englishToLisp(q);
printIndent(l);
O result = callLispEvaluator(l);
printIndent("Result: " + struct(result));
}