static LinkedHashSet<S> ai_matrix_categoriesForTopic(S topic) { //ret ai_texts(topic, "$Y", "$X"); new LinkedHashSet<S> out; for (Pair<S> p : ai_texts_a(topic)) { if (swic(p.a, "under ")) continue; S rel = substring(p.a, lastIndexOf(p.a, ' ')+1); if (eqicOneOf(rel, "is", "is not")) out.add(p.b); } out.addAll(ai_texts_quoted("$X", "is a matrix category for", topic)); ret out; }
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: | 634 / 689 |
| Version history: | 6 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1013065 - ai_matrix_standardCategories |