!7 cmodule AutoCompleteInput > DynQuickSearch { transient LS patterns = map appendSpace(tlft([[ current year is the current year is we write the year we are writing the year we are in the year ]])); start { moduleDescForSearch = "Auto-Complete"; } LS calc_impl() { new LS out; S q = trim(this.query); for (S pat : patterns) if (swic(pat, q)) out.add(replaceFirstPart(q, pat) + localYear()); ret out; } }