Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Swear word detector
Ruleset is not complete. If you want to use it in your project, please edit lib/config/rules.yaml
or use your own ruleset!
Add this line to your application's Gemfile:
gem 'bad_word_detector'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bad_word_detector
Detects #uck
, F|_|__C_K
and other variations of hidden swear words in text.
Usage:
finder = BadWordDetector.new
finder.find("What the #uck")
it will return BadWord object
Transformation rules is defined in form:
{"#" => {"symbol"=>"f", "weight" => 2}} # weight is optional
Or in file conf/rules.yaml
List of swear words is located in conf/library.yaml
Whitelist of english words in conf/whitelist.yaml
You can also set own rules:
finder = BadWordDetector.new rules, library, whitelist
Or you can use string filenames for YAML files of same format:
finder = BadWordDetector.new 'my_rules.yaml', 'my_library.yaml', 'my_whitelist.yaml'
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that bad_word_detector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.