l2e_vocab_blacklist 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d614e614bfb9509871ada021a5ee074f9137246c
4
- data.tar.gz: cce6e2b49cfa5b86de49f826a6465709c618f03e
3
+ metadata.gz: 13caa8192fdca84590834694461bc54cb15166bd
4
+ data.tar.gz: 74836e1dd8c8cab53dd3c21687d6704b7fa9b65b
5
5
  SHA512:
6
- metadata.gz: 80e84a46f0830602109aa25b6157f41f781aaa0d9cdb023661c8304d273153a0eb6d4349bcbf57449bec6764918cce64868452c20fe24830b1e6bfb8700f4535
7
- data.tar.gz: d1aa598ad425bdb03777f5042e857b50dbc72e410e6cba18bffa4950c5ea4ebbbd3b0649f6cfbbcecc0b117326500fbe27fcf0cf5f2e3ca14a0ae5537a7660c1
6
+ metadata.gz: 372cf1fa51c2edfa59089a6751c492a892fb65892dfc5a8b8bebdd2c304c582fc1047b1bf9caaff4a3668332f0933d07ebd16e5f21d53fb940b6a4091d61a10d
7
+ data.tar.gz: 46b4fe9b054bd42330acb0eeda4af050cabeaadd1a14bebc530952bf9c41813121677b9a583601fea003095efcf8af894d88db9d516e929a816bf56b303e9ddb
@@ -9,9 +9,7 @@ class VocabBlacklist
9
9
  str = str.downcase.strip.gsub(CONSIDER_REGEX, '')
10
10
  # Blacklist if any of the words
11
11
  str.split(" ").each do |word|
12
-
13
12
  return true if check_full_words_csv(word,age)
14
-
15
13
  end
16
14
  # For compound dirty words
17
15
  PHRASES.each do |bad_phrase|
@@ -23,7 +21,6 @@ class VocabBlacklist
23
21
 
24
22
 
25
23
  def self.censor(str, age = "0", replace_with = "****")
26
-
27
24
  PHRASES.each do |bad_phrase|
28
25
  str.gsub!(/#{bad_phrase}/i, replace_with)
29
26
  end
@@ -44,8 +41,8 @@ class VocabBlacklist
44
41
  end.join(" ")
45
42
  end
46
43
 
47
- def self.file_to_nomalized_words(file)
48
- File.read(file).split("\n").reject { |s| s.to_s.strip.empty? }.map(&:downcase).map { |s| s.gsub(CONSIDER_REGEX, '') }
44
+ def self.file_to_normalized_words(file)
45
+ CSV.parse(File.read(file)).map(&:first).reject { |s| s.to_s.strip.empty?; puts s }.map(&:downcase).map { |s| s.gsub(CONSIDER_REGEX, '') }
49
46
  end
50
47
 
51
48
  def self.words_with_expansions(words)
@@ -55,11 +52,11 @@ class VocabBlacklist
55
52
  BLACKLIST_DIR = File.join(File.dirname(__FILE__), 'l2e_vocab_blacklist/blacklists')
56
53
  CONSIDER_REGEX = /[^0-9a-z\* ]/i
57
54
 
58
- PHRASES = file_to_nomalized_words("#{BLACKLIST_DIR}/full_words.txt").select { |w| w.split(" ").length > 1 }
59
- FULL_WORDS = file_to_nomalized_words("#{BLACKLIST_DIR}/full_words.txt").reject { |w| w.split(" ").length > 1 }
60
- GREEDY_WORDS = words_with_expansions(file_to_nomalized_words("#{BLACKLIST_DIR}/greedy_words.txt")).uniq.freeze
55
+ PHRASES = file_to_normalized_words("#{BLACKLIST_DIR}/full_words.csv").select { |w| w.split(" ").length > 1 }
56
+ FULL_WORDS = file_to_normalized_words("#{BLACKLIST_DIR}/full_words.csv").reject { |w| w.split(" ").length > 1 }
57
+ GREEDY_WORDS = words_with_expansions(file_to_normalized_words("#{BLACKLIST_DIR}/greedy_words.txt")).uniq.freeze
61
58
 
62
- FULL_WORDS_CSV = CSV.parse(File.read("#{BLACKLIST_DIR}/full_words.csv"), :headers => true)
59
+ FULL_WORDS_CSV = CSV.parse(File.read("#{BLACKLIST_DIR}/full_words.csv"))
63
60
 
64
61
  private
65
62
 
@@ -1,4 +1,3 @@
1
- word,age
2
1
  50 Shades of Gray,15
3
2
  50 Shades of Grey,15
4
3
  A-Hole,10
@@ -41,7 +40,7 @@ Cockblock,15
41
40
  Cocksucker,15
42
41
  Cocksucking,15
43
42
  Codeine,5
44
- Condon,15
43
+ Condom,15
45
44
  Coolie,15
46
45
  Cornholing,15
47
46
  Cr*p,15
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: l2e_vocab_blacklist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Sherrid
@@ -18,11 +18,10 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - README.md
22
21
  - lib/l2e_vocab_blacklist.rb
23
- - lib/l2e_vocab_blacklist/blacklists/full_words.csv
24
- - lib/l2e_vocab_blacklist/blacklists/full_words.txt
25
22
  - lib/l2e_vocab_blacklist/blacklists/greedy_words.txt
23
+ - lib/l2e_vocab_blacklist/blacklists/full_words.csv
24
+ - README.md
26
25
  homepage: https://github.com/gregsherrid/l2e_vocab_blacklist
27
26
  licenses:
28
27
  - All rights reserved, for now
@@ -43,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
42
  version: '0'
44
43
  requirements: []
45
44
  rubyforge_project:
46
- rubygems_version: 2.4.6
45
+ rubygems_version: 2.0.3
47
46
  signing_key:
48
47
  specification_version: 4
49
48
  summary: L2E Vocab Blacklist
@@ -1,340 +0,0 @@
1
- Asshole
2
- Anal
3
- Ass
4
- A-Hole
5
- Asexual
6
- Anus
7
- Aerolia
8
- Alcohol
9
- Abortion
10
- Apeshit
11
- Aids
12
- Abstinence
13
- Addict
14
- Arrested
15
- Amphetamine
16
- Butt
17
- Bugger
18
- Bunghole
19
- Butthole
20
- Blowjob
21
- BJ
22
- Bastard
23
- Boob
24
- Boobies
25
- Breasts
26
- Bong
27
- Beer
28
- Bisexual
29
- Beefcake
30
- Busty
31
- Bullshit
32
- Bra
33
- Brazzer
34
- Beaner
35
- Bulging
36
- Barbiturates
37
- Cartel
38
- Codeine
39
- Cunt
40
- Corset
41
- Cum
42
- Cumming
43
- Clitoris
44
- Cock
45
- Cocksucking
46
- Cocksucker
47
- Cockblock
48
- Cocaine
49
- Cornholing
50
- Chink
51
- Chino
52
- Crip
53
- Crack
54
- Cleavage
55
- Cunnilingus
56
- Chronic
57
- Circumcision
58
- Circumcised
59
- Cigarette
60
- Cig
61
- ChoMo
62
- Chulo
63
- Coolie
64
- Chlamydia
65
- Condon
66
- Cumshot
67
- Cervix
68
- Contraception
69
- Cannabis
70
- Crap
71
- Dildo
72
- Dick
73
- Dicking
74
- Damn
75
- Dyke
76
- Dipshit
77
- Daterape
78
- Douche
79
- Dingleberry
80
- Dooms
81
- Doobie
82
- Diarrhea
83
- Dimbad
84
- Doggy Style
85
- Drag Queen
86
- Deep Throat
87
- Deepthroat
88
- Dental Dam
89
- DMT
90
- Diaphragm
91
- Eat out
92
- Ecstasy
93
- Ejaculate
94
- Ejaculation
95
- Exhibitionism
96
- Fag
97
- Faggot
98
- Fisting
99
- Foreskin
100
- Fetish
101
- Fetus
102
- Fetal
103
- Grundle
104
- Gimp
105
- Gonorrhea
106
- G-spot
107
- g spot
108
- Gigolo
109
- Gook
110
- Gay
111
- Gang Bang
112
- Gape
113
- Golden Shower
114
- Genital
115
- Gin
116
- Harlot
117
- Hangover
118
- Hungover
119
- Herpes
120
- Hook Up
121
- Hookah
122
- Hooker
123
- Harem
124
- Heroin
125
- Heroina
126
- Hick
127
- Hickey
128
- Hickie
129
- Hard On
130
- Hand Job
131
- Handjob
132
- Homosexual
133
- Heterosexual
134
- Hiv
135
- Homicide
136
- Hallucinate
137
- Hallucination
138
- Hallucinating
139
- Hallucinogen
140
- Huff
141
- Huffing
142
- Hump
143
- Illicit
144
- Intercourse
145
- Joint
146
- Jackass
147
- Jigga
148
- Jap
149
- Jerkoff
150
- Jerk Off
151
- Jerk It
152
- Juicy
153
- Kyke
154
- Kook
155
- Kunt
156
- Knocked Up
157
- KKK
158
- Lust
159
- Lustful
160
- Labia
161
- Lesbian
162
- Lesbo
163
- Lover
164
- Licking
165
- Lube
166
- Lubricant
167
- Lubrication
168
- Lithium
169
- LSD
170
- Mofo
171
- Milf
172
- Meth
173
- Methamphetamine
174
- Morphine
175
- Marijuana
176
- Mary Jane
177
- Merk
178
- Molest
179
- Missionary
180
- Masturbate
181
- Masturbation
182
- Money Shot
183
- Murder
184
- Moneyshot
185
- Mali
186
- Moron
187
- Menstruation
188
- MDMA
189
- Nigga
190
- Nipple
191
- Nips
192
- Nignog
193
- Niptip
194
- Nicotine
195
- Narcotic
196
- Nookie
197
- Nooky
198
- Nude
199
- Nudist
200
- Nudity
201
- Naked
202
- Negro
203
- Nazi
204
- Orgasm
205
- Orgasmic
206
- Orgy
207
- Opiates
208
- Opium
209
- Ovaries
210
- Oral
211
- Oxy
212
- Oxycodone
213
- Penis
214
- Private Parts
215
- Pee
216
- Penile
217
- Preggers
218
- Pregnant
219
- Pregnancy
220
- Prostitute
221
- Prostitution
222
- Porn
223
- Pornograph
224
- Panties
225
- Pussy
226
- Playboy
227
- Queer
228
- Queef
229
- Rape
230
- Raper
231
- Rapist
232
- Roofie
233
- Rohypnol
234
- Raunchy
235
- Rimjob
236
- Rim Job
237
- Racist
238
- Racism
239
- Racy
240
- Retard
241
- Rum
242
- Slut
243
- Smoke
244
- Shit
245
- Shitty
246
- Shrooms
247
- Shitter
248
- Shitting
249
- Shmegma
250
- Suck
251
- Sucker
252
- Snort
253
- Snorting
254
- Scat
255
- Syphilis
256
- Sperm
257
- Spermicide
258
- Shoplift
259
- Shoplifting
260
- Squirt
261
- Squirting
262
- Sex
263
- Sexy
264
- Sexual
265
- Sexist
266
- Sexism
267
- Sexing
268
- Salvia
269
- Sangria
270
- Steroids
271
- STD
272
- Splooge
273
- Suicide
274
- Shank
275
- Schlong
276
- Scrotum
277
- Tranny
278
- Transvestite
279
- Testes
280
- Testicle
281
- Testicular
282
- Transexual
283
- Transgender
284
- Transgendered
285
- Trafficking
286
- Tobacco
287
- Twerk
288
- Throbbing
289
- Tit
290
- Tittie
291
- Titty
292
- Turd
293
- Tequila
294
- THC
295
- Unmentionables
296
- Urethra
297
- Urine
298
- Ureter
299
- Uterus
300
- Underage
301
- Vulva
302
- Vagina
303
- Vagina
304
- Viagra
305
- Vag
306
- Vamp
307
- Vicodin
308
- Whisky
309
- Whore
310
- Whorehouse
311
- Whoring
312
- Wanker
313
- Weiner
314
- Wiener
315
- Whity
316
- Whitie
317
- Wetback
318
- Wigger
319
- Whack Off
320
- Weed
321
- X Rated
322
- XX
323
- XXX
324
- Yank
325
- Zipperhead
326
- F*ck
327
- F*cker
328
- Sh*t
329
- Cr*p
330
- C*nt
331
- B*tch
332
- P*ss
333
- C*ck
334
- C*cksucker
335
- Motherf*cker
336
- T*t
337
- 50 Shades of Grey
338
- 50 Shades of Gray
339
- Fifty Shades of Grey
340
- Fifty Shades of Gray