def replace(word)
      case @replacement
      when :vowels then word.gsub(/[aeiou]/i, '*')
      when :stars  then '*' * word.size
      when :nonconsonants then word.gsub(/[^bcdfghjklmnpqrstvwxyz]/i, '*')
      when :default, :garbled then '$@!#%'
      else raise LanguageFilter::UnknownReplacement.new("#{@replacement} is not a known replacement type.")
      end
    end
def replace(word)
      case @replacement
      when :vowels then word.gsub(/[aeiou]/i, '*')
      when :stars  then '*' * word.size
      when :nonconsonants then word.gsub(/[^bcdfghjklmnpqrstvwxyz]/i, '*')
      when :default, :garbled then '$@!#%'
      else raise LanguageFilter::UnknownReplacement.new("#{@replacement} is not a known replacement type.")
      end
    end
This was moved to private because users should just use sanitize for any content