static L loadDialogs(S themeOrID) { L snippets; if (isSnippetID(themeOrID)) { new Snippet s; s.id = themeOrID; s.title = getSnippetTitle(s.id); snippets = litlist(s); } else snippets = sortSnippetsByID(findDialogsNamed(themeOrID)); //psl(snippets); new L dialogs; for (Snippet s : snippets) { new Dialog d; d.snippet = s; d.good = !cic(javaTok(s.title), "bad"); d.poem = parsePoem(s.id); dialogs.add(d); } //psl(dialogs); ret dialogs; }