A simple module to do word completion based on a list that is passed to it.