translator

I created a gem!!

Introduction

I created a Gem which helps you to check your users message whether contains a terrible word,or not.

Usage

require "message_judgment"
=> true
irb(main):002:0> message="Hello,I want your sex!"
=> "Hello,I want your sex!"
irb(main):003:0> targets=["sex","fack"]
=> ["sex", "fack"]
irb(main):004:0> MessageJudgment.message_judgment?(message,targets)
=> "Hello,I want your !"

First,you gotta give first argument your users message which you wanna chck、and then give second argument some terrible word or forbidden word as an array. That's all! You think this's really convenient,don't you?

Let's use this one!!

Here is repository

コメント

このブログの人気の投稿