1 | static LinkedHashSet<S> ai_matrix_categoriesForTopic(S topic) { |
2 | //ret ai_texts(topic, "$Y", "$X"); |
3 | new LinkedHashSet<S> out; |
4 | for (Pair<S> p : ai_texts_a(topic)) { |
5 | if (swic(p.a, "under ")) continue; |
6 | S rel = substring(p.a, lastIndexOf(p.a, ' ')+1); |
7 | if (eqicOneOf(rel, "is", "is not")) |
8 | out.add(p.b); |
9 | } |
10 | out.addAll(ai_texts_quoted("$X", "is a matrix category for", topic)); |
11 | ret out; |
12 | } |
Began life as a copy of #1013059
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: | #1013062 |
Snippet name: | ai_matrix_categoriesForTopic |
Eternal ID of this version: | #1013062/7 |
Text MD5: | 9ba404a16515c2ade685af0b8f6ee673 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-27 07:56:25 |
Source code size: | 420 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 431 / 468 |
Version history: | 6 change(s) |
Referenced in: | [show references] |