Module: Rude

Defined in:
lib/rude.rb,
lib/rude/version.rb

Constant Summary collapse

DEFAULT_RUDE_WORDS =
[
  "anal", "anus", "arse", "ass", "ballsack", "balls", "bastard", "bitch", "biatch", "bloody", "blowjob", "blow job", "bollock", 
  "bollok", "boner", "boob", "bugger", "bum", "butt", "buttplug", "clitoris", "cock", "coon", "crap", "cunt", "damn", "dick", 
  "dildo", "dyke", "fag", "feck", "fellate", "fellatio", "felching", "fuck", "f u c k", "fudgepacker", "fudge packer", "flange",
  "Goddamn", "God damn", "hell", "homo", "jerk", "jizz", "knobend", "knob end", "labia", "lmao", "lmfao", "muff", "nigger", 
  "nigga", "omg", "penis", "piss", "poop", "prick", "pube", "pussy", "queer", "scrotum", "sex", "shit", "s hit", "sh1t", "slut",
  "smegma", "spunk", "tit", "tosser", "turd", "twat", "vagina", "wank", "whore", "wtf"
]
VERSION =
"1.0.2"

Class Method Summary collapse

Class Method Details

.is?(text) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
24
25
26
27
28
# File 'lib/rude.rb', line 21

def self.is?(text)
  text.split(' ').each do |t|
    if DEFAULT_RUDE_WORDS.member?(t.downcase)
      return true
    end
  end
  return false
end