static L ai_categoriesForChatLine(S text) { if (matchStart("hello", text)) ret ll("greeting"); if (matchStart("yes", text) || matchStart("no", text)) ret ll("yes/no answer"); if (ai_isYesNoQuestion_1(text)) ret ll("yes/no question"); else if (ai_isQuestion_1(text)) ret ll("question"); if (matchStart("OK", text)) ret ll("ok line"); if (startsWith(text, "!")) ret ll("bot command"); ret ll(); }