class WordSynth
  def initialize
    @effects = []
  end

  def add_effect(effect)
    @effects << effect
  end

  def play(original_words)
    @effects.reduce(original_words) do |words, effect|
      effect.call(words)
    end
  end
end
