input: from typing import List
  
  def analyze_sentiment(text: str) -> str:
      """ Categorizes given text into 'positive', 'negative', or 'neutral' sentiments.
      >>> analyze_sentiment('I love this product!')
      'positive'
      >>> analyze_sentiment('I hate this product!')
      'negative'
      >>> analyze_sentiment('This product is okay.')
      'neutral'
      """
output:     positive_words = ['love', 'great', 'good', 'excellent', 'amazing']
      negative_words = ['hate', 'bad', 'terrible', 'awful', 'horrible']
      
      words = text.lower().split()
      positive_count = sum(word in positive_words for word in words)
      negative_count = sum(word in negative_words for word in words)
      
      if positive_count > negative_count:
          return 'positive'
      elif negative_count > positive_count:
          return 'negative'
      else:
          return 'neutral'