input: 
  def analyze_sentiment(text: str) -> str:
      """Analyzes the sentiment of a given text and categorizes it into positive, negative, or neutral.
      >>> analyze_sentiment("I love this!")
      'positive'
      >>> analyze_sentiment("I hate this.")
      'negative'
      >>> analyze_sentiment("This is a neutral sentence.")
      'neutral'
      """
  
output:     positive_words = ["love", "like", "happy", "great", "excellent"]
      negative_words = ["hate", "dislike", "sad", "bad", "terrible"]
      
      text = text.lower()
      words = text.split()
      
      positive_count = sum(1 for word in words if word in positive_words)
      negative_count = sum(1 for word in words if word in negative_words)
      
      if positive_count > negative_count:
          return 'positive'
      elif negative_count > positive_count:
          return 'negative'
      else:
          return 'neutral'