A unofficial ruby wrapper for Filter8 (http://filter8.com). An API to filter lots of stuff from texts, e.g. bad words.
As you'd expect. Nothing special here:
gem install filter8
Before you use Filter8 you need to configure it:
Filter8.configure do |config|
config.api_key = "your filter8-api-key"
config.api_secret = "your filter8-api-secret"
end
Simply send the content, you wish to filter with the filter-method:
Filter8.filter("your content")
If you want to change the default-options of filter8 (https://filter8.com/documentation), you can pass an optional options-hash with the filter-configuration:
Filter8.filter("your content", blacklist: {enabled: true, locales: [:en, :de, :fr], tags: ["AsciiArt"]})
The email and urls filters are not yet supported.
Feedback and pull-request are always welcome. You can find the author via http://toadle.me
The filter8-gem is released under the MIT License.