# File referrercop.rb, line 369
  def self.filter_text(input, output = $stdout)
    input.each do |line|
      @stats.lines += 1

      # Skip over invalid lines.
      unless line =~ REGEXPS[:text_url]
        @stats.invalid += 1
        output.puts line
        next
      end

      # Examine the URL.
      if spam?($1)
        @stats.spam += 1
      else
        @stats.ham += 1
        output.puts line
      end
    end
  end