input: from typing import List
  
  def autocomplete(input_text: str) -> List[str]:
      """ Given an input text, generates word candidates, filters them, ranks them, and returns the top 5 words.
      >>> autocomplete("app")
      ['apple', 'application', 'applicable', 'appendix', 'appetite']
      >>> autocomplete("ca")
      ['car', 'cat', 'camera', 'cab', 'camp']
      """
output:     word_candidates = ["apple", "application", "applicable", "appendix", "appetite", "car", "cat", "camera", "cab", "camp"]
      filtered_words = [word for word in word_candidates if word.startswith(input_text)]
      ranked_words = sorted(filtered_words)
      return ranked_words[:5]