static LS ai_categoriesForWord(S word) { Map> wordCategories = ai_wordCategoriesWithElements(); new L cats; for (S cat : keys(wordCategories)) if (contains(wordCategories.get(cat), word)) cats.add(cat); ret cats; }