Autocomplete
Autocomplete[{string1, string2, ...}, "string"] gives a list of the stringi that can complete string.
Autocomplete[<|s1 -> w1, s2 -> w2, ...|>, "string"] puts the completions in order of decreasing weights wi.
Autocomplete[comps, "string", n] gives the first at most n completions.
Autocomplete[comps] gives an AutocompletionFunction that can be applied to a string.
Examples
Complete a string from options:
Autocomplete[{"apple", "application", "banana"}, "app"]
(* {"apple", "application"} *)Please visit the official Wolfram Language Reference for more details.