code: func suggestionList(input string, options []string) []string {
  	dists := []float64{}
  	filteredOpts := []string{}
  	inputThreshold := float64(len(input) / 2)
  
  	for _, opt := range options {
  		dist := lexicalDistance(input, opt)
  		threshold := math.Max(inputThreshold, float64(len(opt)/2))
  		threshold = math.Max(threshold, 1)
  		if dist <= threshold {
  			filteredOpts = append(filteredOpts, opt)
  			dists = append(dists, dist)
  		}
  	}
  	//sort results
  	suggested := suggestionListResult{filteredOpts, dists}
  	sort.Sort(suggested)
  	return suggested.Options
  }
docs: // suggestionList Given an invalid input string and a list of valid options, returns a filtered
  // list of valid options sorted based on their similarity with the input.