input: def autocomplete(input_text: str) -> list:
      """Generate a list of predicted words based on the input text using an autocomplete system.
      The function uses a helper function to generate word candidates, filters them, 
      ranks them, and returns the top 5 suggestions.
      >>> autocomplete("the")
      ['the', 'they', 'their', 'them', 'there']
      >>> autocomplete("python")
      ['python', 'pythonic', 'pythonista', 'pythons', 'python3']
      """
output:     candidates = generate_word_candidates(input_text)
      filtered_candidates = filter_candidates(candidates, input_text)
      ranked_candidates = rank_candidates(filtered_candidates)
      return ranked_candidates[:5]