1 | static LS ai_categoriesForWord(S word) {
|
2 | Map<S, Set<S>> wordCategories = ai_wordCategoriesWithElements(); |
3 | new L<S> cats; |
4 | for (S cat : keys(wordCategories)) |
5 | if (contains(wordCategories.get(cat), word)) |
6 | cats.add(cat); |
7 | ret cats; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018191 |
| Snippet name: | ai_categoriesForWord - for current language |
| Eternal ID of this version: | #1018191/1 |
| Text MD5: | 8e4fd772ccaa600e970ffae0dbfbfb3c |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-09-09 17:15:13 |
| Source code size: | 252 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 597 / 608 |
| Referenced in: | [show references] |