1 | static L<S> ai_categoriesForChatLine(S s) { |
2 | new LinkedHashSet<S> l; |
3 | if (matchStart("hello", s)) { |
4 | l.add("greeting"); |
5 | if "hello robot|hello bot" l.add("greeting to robot"); |
6 | } |
7 | if (matchStart("yes", s) || matchStart("no", s)) |
8 | l.add("yes/no answer"); |
9 | if (ai_isYesNoQuestion_1(s)) |
10 | l.add("yes/no question"); |
11 | else if (ai_isQuestion_1(s)) |
12 | l.add("question"); |
13 | if (matchStart("OK", s)) |
14 | l.add("ok line"); |
15 | if (startsWith(s, "!")) |
16 | l.add("bot command"); |
17 | ret asList(l); |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010924 |
Snippet name: | ai_categoriesForChatLine |
Eternal ID of this version: | #1010924/6 |
Text MD5: | a74df676123e672f0d43563b90b37f86 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-11 00:17:05 |
Source code size: | 518 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 433 / 458 |
Version history: | 5 change(s) |
Referenced in: | [show references] |