static S ai_html_wordThoughts(S selectedWord) {
Set ignoredWebs = ai_ignoredWebs();
L nodes = web_nodesNotFromCertainWebs(ignoredWebs, indexedNodes(selectedWord));
L rel1 = web_collectBackwardRelations(nodes);
L rel2 = web_collectForwardRelations(nodes);
//L is = ai_whatIs(selectedWord);
ret h3(htmlencode(selectedWord))
+ ul(map html_linkURLs_targetBlank(
allToString(flattenArray2(
uniquify(
map(func(WebRelation r) { htmlencode_noQuotes(web_text(r) + " " + ai_renderNode(r.b)) + " [" + r.web.globalID + "]" }, rel2)
),
uniquify(
map(func(WebRelation r) { htmlencode_noQuotes(ai_renderNode(r.a) + " " + web_text(r) + " " + web_text(r.b)) + " [" + r.web.globalID + "]" }, rel1)
),
"[" + n(nodes, "node") + "]"
))));
}