static int ai_speculate_all(S prefix) { int n = websMadeInThread(); for ping (S key : allIndexedTermsStartingWith(prefix)) { for ping (S word : ai_expandShortenedKeys(key)) { ai_speculate(word); } } ret websMadeInThread()-n; } static int ai_speculate_all() { ret ai_speculate_all(""); }