// timeout on client side static long smartBot_autoComplete_defaultHardTimeout = 5000; static L smartBot_autoComplete(S s) { ret smartBot_autoComplete_defaultHardTimeout; } static L smartBot_autoComplete(S s, long hardTimeout) { L l = jsonDecodeList(loadPageWithTimeout("http://smartbot.botcompany.de/autocomplete/" + urlencode(s) + "?n=" + maxEntries, hardTimeout)); new L out; for (Map map : l) { S follow = getString(map, "follow"); if (nempty(follow)) continue with out.add(s + follow); S whole = getString(map, "whole"); if (nempty(whole)) out.add(whole); } ret out; }