prof_filter 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b72d1ab55f2a73302d75c534f906a9e35cd3e5823eeaf9c06520639f215fbac3
4
+ data.tar.gz: 70f01dad8bb64a655861eb1e7e44d57de3216d37bb0669fa4e5984ca89eab670
5
+ SHA512:
6
+ metadata.gz: e1bd8a343aca8e8457772244d76049fe7193bb17bf43a45ae88f0dac6bc1fa4fa9c080c0f2c52e8fb386414af08dee43d53817b9f44cb04cb81a3eab9bad1462
7
+ data.tar.gz: d2edc579589079e19151a9b05f96c8192be7ce92965e33cab6f34bbce32a7556b2d75279bd89bbf861f913cabdab929d1c0fcb0aa88219c84e5be97c5a2f4dce
@@ -0,0 +1,37 @@
1
+
2
+ class ProfFilter
3
+ Dir.chdir(File.dirname(__FILE__))
4
+ def self.runCheck(input)
5
+ #Ref for bad words: https://github.com/coffee-and-fun/google-profanity-words
6
+ profArr = ["4r5e", "5h1t", "5hit", "a55", "anal", "anus", "ar5e", "arrse", "arse", "ass", "ass-fucker", "asses", "assfucker", "assfukka", "asshole", "assholes", "asswhole", "a_s_s", "b!tch", "b00bs", "b17ch", "b1tch", "ballbag", "balls", "ballsack", "bastard", "beastial", "beastiality", "bellend", "bestial", "bestiality", "bi+ch", "biatch", "bitch", "bitcher", "bitchers", "bitches", "bitchin", "bitching", "bloody", "blow job", "blowjob", "blowjobs", "boiolas", "bollock", "bollok", "boner", "boob", "boobs", "booobs", "boooobs", "booooobs", "booooooobs", "breasts", "buceta", "bugger", "bum", "bunny fucker", "butt", "butthole", "buttmunch", "buttplug", "c0ck", "c0cksucker", "carpet muncher", "cawk", "chink", "cipa", "cl1t", "clit", "clitoris", "clits", "cnut", "cock", "cock-sucker", "cockface", "cockhead", "cockmunch", "cockmuncher", "cocks", "cocksuck", "cocksucked", "cocksucker", "cocksucking", "cocksucks", "cocksuka", "cocksukka", "cok", "cokmuncher", "coksucka", "coon", "cox", "crap", "cum", "cummer", "cumming", "cums", "cumshot", "cunilingus", "cunillingus", "cunnilingus", "cunt", "cuntlick", "cuntlicker", "cuntlicking", "cunts", "cyalis", "cyberfuc", "cyberfuck", "cyberfucked", "cyberfucker", "cyberfuckers", "cyberfucking", "d1ck", "damn", "dick", "dickhead", "dildo", "dildos", "dink", "dinks", "dirsa", "dlck", "dog-fucker", "doggin", "dogging", "donkeyribber", "doosh", "duche", "dyke", "ejaculate", "ejaculated", "ejaculates", "ejaculating", "ejaculatings", "ejaculation", "ejakulate", "f u c k", "f u c k e r", "f4nny", "fag", "fagging", "faggitt", "faggot", "faggs", "fagot", "fagots", "fags", "fanny", "fannyflaps", "fannyfucker", "fanyy", "fatass", "fcuk", "fcuker", "fcuking", "feck", "fecker", "felching", "fellate", "fellatio", "fingerfuck", "fingerfucked", "fingerfucker", "fingerfuckers", "fingerfucking", "fingerfucks", "fistfuck", "fistfucked", "fistfucker", "fistfuckers", "fistfucking", "fistfuckings", "fistfucks", "flange", "fook", "fooker", "fuck", "fucka", "fucked", "fucker", "fuckers", "fuckhead", "fuckheads", "fuckin", "fucking", "fuckings", "fuckingshitmotherfucker", "fuckme", "fucks", "fuckwhit", "fuckwit", "fudge packer", "fudgepacker", "fuk", "fuker", "fukker", "fukkin", "fuks", "fukwhit", "fukwit", "fux", "fux0r", "f_u_c_k", "gangbang", "gangbanged", "gangbangs", "gaylord", "gaysex", "goatse", "god-dam", "god-damned", "goddamn", "goddamned", "hardcoresex", "hell", "heshe", "hoar", "hoare", "hoer", "homo", "hore", "horniest", "horny", "hotsex", "jack-off", "jackoff", "jap", "jerk-off", "jism", "jiz", "jizm", "jizz", "kawk", "knob", "knobead", "knobed", "knobend", "knobhead", "knobjocky", "knobjokey", "kock", "kondum", "kondums", "kum", "kummer", "kumming", "kums", "kunilingus", "kiunt", "l3i+ch", "l3itch", "labia", "lmfao", "lust", "lusting", "m0f0", "m0fo", "m45terbate", "ma5terb8", "ma5terbate", "masochist", "master-bate", "masterb8", "masterbat*", "masterbat3", "masterbate", "masterbation", "masterbations", "masturbate", "mo-fo", "mof0", "mofo", "mothafuck", "mothafucka", "mothafuckas", "mothafuckaz", "mothafucked", "mothafucker", "mothafuckers", "mothafuckin", "mothafucking", "mothafuckings", "mothafucks", "mother fucker", "motherfuck", "motherfucked", "motherfucker", "motherfuckers", "motherfuckin", "motherfucking", "motherfuckings", "motherfuckka", "motherfucks", "muff", "mutha", "muthafecker", "muthafuckker", "muther", "mutherfucker", "n1gga", "n1gger", "nazi", "nigg3r", "nigg4h", "nigga", "niggah", "niggas", "niggaz", "nigger", "niggers", "nob", "nob jokey", "nobhead", "nobjocky", "nobjokey", "numbnuts", "nutsack", "orgasim", "orgasims", "orgasm", "orgasms", "p0rn", "pawn", "pecker", "penis", "penisfucker", "phonesex", "phuck", "phuk", "phuked", "phuking", "phukked", "phukking", "phuks", "phuq", "pigfucker", "pimpis", "piss", "pissed", "pisser", "pissers", "pisses", "pissflaps", "pissin", "pissing", "pissoff", "poop", "porn", "porno", "pornography", "pornos", "prick", "pricks", "pron", "pube", "pusse", "pussi", "pussies", "pussy", "pussys", "rectum", "retard", "rimjaw", "rimming", "s hit", "s.o.b.", "sadist", "schlong", "screwing", "scroat", "scrote", "scrotum", "semen", "sex", "sh!+", "sh!t", "sh1t", "shag", "shagger", "shaggin", "shagging", "shemale", "shi+", "shit", "shitdick", "shite", "shited", "shitey", "shitfuck", "shitfull", "shithead", "shiting", "shitings", "shits", "shitted", "shitter", "shitters", "shitting", "shittings", "shitty", "skank", "slut", "sluts", "smegma", "smut", "snatch", "son-of-a-bitch", "spac", "spunk", "s_h_i_t", "t1tt1e5", "t1tties", "teets", "teez", "testical", "testicle", "tit", "titfuck", "tits", "titt", "tittie5", "tittiefucker", "titties", "tittyfuck", "tittywank", "titwank", "tosser", "turd", "tw4t", "twat", "twathead", "twatty", "twunt", "twunter", "v14gra", "v1gra", "vagina", "viagra", "vulva", "w00se", "wang", "wank", "wanker", "wanky", "whoar", "whore", "willies", "willy", "xrated", "xxx"]
7
+
8
+ profArr.each do |word|
9
+ word = word.chomp("\r\n")
10
+ word = word.chomp(" ")
11
+ if input.include?(word)
12
+ filter = Filter(word)
13
+ input = input.gsub(/#{word}\b/,filter)
14
+ elsif input.include?(word.capitalize)
15
+ filter = Filter(word)
16
+ input = input.gsub(/#{word.capitalize}\b/,filter)
17
+ elsif input.include?(word.upcase)
18
+ filter = Filter(word)
19
+ input = input.gsub(/#{word.upcase}\b/,filter)
20
+ end
21
+ end
22
+ return input
23
+ end
24
+ end
25
+
26
+
27
+ def Filter (word)
28
+ filter = ""
29
+ loop do
30
+ if filter.length == word.length
31
+ break
32
+ else
33
+ filter = filter+"*"
34
+ end
35
+ end
36
+ filter
37
+ end
@@ -0,0 +1,451 @@
1
+ 4r5e
2
+ 5h1t
3
+ 5hit
4
+ a55
5
+ anal
6
+ anus
7
+ ar5e
8
+ arrse
9
+ arse
10
+ ass
11
+ ass-fucker
12
+ asses
13
+ assfucker
14
+ assfukka
15
+ asshole
16
+ assholes
17
+ asswhole
18
+ a_s_s
19
+ b!tch
20
+ b00bs
21
+ b17ch
22
+ b1tch
23
+ ballbag
24
+ balls
25
+ ballsack
26
+ bastard
27
+ beastial
28
+ beastiality
29
+ bellend
30
+ bestial
31
+ bestiality
32
+ bi+ch
33
+ biatch
34
+ bitch
35
+ bitcher
36
+ bitchers
37
+ bitches
38
+ bitchin
39
+ bitching
40
+ bloody
41
+ blow job
42
+ blowjob
43
+ blowjobs
44
+ boiolas
45
+ bollock
46
+ bollok
47
+ boner
48
+ boob
49
+ boobs
50
+ booobs
51
+ boooobs
52
+ booooobs
53
+ booooooobs
54
+ breasts
55
+ buceta
56
+ bugger
57
+ bum
58
+ bunny fucker
59
+ butt
60
+ butthole
61
+ buttmunch
62
+ buttplug
63
+ c0ck
64
+ c0cksucker
65
+ carpet muncher
66
+ cawk
67
+ chink
68
+ cipa
69
+ cl1t
70
+ clit
71
+ clitoris
72
+ clits
73
+ cnut
74
+ cock
75
+ cock-sucker
76
+ cockface
77
+ cockhead
78
+ cockmunch
79
+ cockmuncher
80
+ cocks
81
+ cocksuck
82
+ cocksucked
83
+ cocksucker
84
+ cocksucking
85
+ cocksucks
86
+ cocksuka
87
+ cocksukka
88
+ cok
89
+ cokmuncher
90
+ coksucka
91
+ coon
92
+ cox
93
+ crap
94
+ cum
95
+ cummer
96
+ cumming
97
+ cums
98
+ cumshot
99
+ cunilingus
100
+ cunillingus
101
+ cunnilingus
102
+ cunt
103
+ cuntlick
104
+ cuntlicker
105
+ cuntlicking
106
+ cunts
107
+ cyalis
108
+ cyberfuc
109
+ cyberfuck
110
+ cyberfucked
111
+ cyberfucker
112
+ cyberfuckers
113
+ cyberfucking
114
+ d1ck
115
+ damn
116
+ dick
117
+ dickhead
118
+ dildo
119
+ dildos
120
+ dink
121
+ dinks
122
+ dirsa
123
+ dlck
124
+ dog-fucker
125
+ doggin
126
+ dogging
127
+ donkeyribber
128
+ doosh
129
+ duche
130
+ dyke
131
+ ejaculate
132
+ ejaculated
133
+ ejaculates
134
+ ejaculating
135
+ ejaculatings
136
+ ejaculation
137
+ ejakulate
138
+ f u c k
139
+ f u c k e r
140
+ f4nny
141
+ fag
142
+ fagging
143
+ faggitt
144
+ faggot
145
+ faggs
146
+ fagot
147
+ fagots
148
+ fags
149
+ fanny
150
+ fannyflaps
151
+ fannyfucker
152
+ fanyy
153
+ fatass
154
+ fcuk
155
+ fcuker
156
+ fcuking
157
+ feck
158
+ fecker
159
+ felching
160
+ fellate
161
+ fellatio
162
+ fingerfuck
163
+ fingerfucked
164
+ fingerfucker
165
+ fingerfuckers
166
+ fingerfucking
167
+ fingerfucks
168
+ fistfuck
169
+ fistfucked
170
+ fistfucker
171
+ fistfuckers
172
+ fistfucking
173
+ fistfuckings
174
+ fistfucks
175
+ flange
176
+ fook
177
+ fooker
178
+ fuck
179
+ fucka
180
+ fucked
181
+ fucker
182
+ fuckers
183
+ fuckhead
184
+ fuckheads
185
+ fuckin
186
+ fucking
187
+ fuckings
188
+ fuckingshitmotherfucker
189
+ fuckme
190
+ fucks
191
+ fuckwhit
192
+ fuckwit
193
+ fudge packer
194
+ fudgepacker
195
+ fuk
196
+ fuker
197
+ fukker
198
+ fukkin
199
+ fuks
200
+ fukwhit
201
+ fukwit
202
+ fux
203
+ fux0r
204
+ f_u_c_k
205
+ gangbang
206
+ gangbanged
207
+ gangbangs
208
+ gaylord
209
+ gaysex
210
+ goatse
211
+ god-dam
212
+ god-damned
213
+ goddamn
214
+ goddamned
215
+ hardcoresex
216
+ hell
217
+ heshe
218
+ hoar
219
+ hoare
220
+ hoer
221
+ homo
222
+ hore
223
+ horniest
224
+ horny
225
+ hotsex
226
+ jack-off
227
+ jackoff
228
+ jap
229
+ jerk-off
230
+ jism
231
+ jiz
232
+ jizm
233
+ jizz
234
+ kawk
235
+ knob
236
+ knobead
237
+ knobed
238
+ knobend
239
+ knobhead
240
+ knobjocky
241
+ knobjokey
242
+ kock
243
+ kondum
244
+ kondums
245
+ kum
246
+ kummer
247
+ kumming
248
+ kums
249
+ kunilingus
250
+ kiunt
251
+ l3i+ch
252
+ l3itch
253
+ labia
254
+ lmfao
255
+ lust
256
+ lusting
257
+ m0f0
258
+ m0fo
259
+ m45terbate
260
+ ma5terb8
261
+ ma5terbate
262
+ masochist
263
+ master-bate
264
+ masterb8
265
+ masterbat*
266
+ masterbat3
267
+ masterbate
268
+ masterbation
269
+ masterbations
270
+ masturbate
271
+ mo-fo
272
+ mof0
273
+ mofo
274
+ mothafuck
275
+ mothafucka
276
+ mothafuckas
277
+ mothafuckaz
278
+ mothafucked
279
+ mothafucker
280
+ mothafuckers
281
+ mothafuckin
282
+ mothafucking
283
+ mothafuckings
284
+ mothafucks
285
+ mother fucker
286
+ motherfuck
287
+ motherfucked
288
+ motherfucker
289
+ motherfuckers
290
+ motherfuckin
291
+ motherfucking
292
+ motherfuckings
293
+ motherfuckka
294
+ motherfucks
295
+ muff
296
+ mutha
297
+ muthafecker
298
+ muthafuckker
299
+ muther
300
+ mutherfucker
301
+ n1gga
302
+ n1gger
303
+ nazi
304
+ nigg3r
305
+ nigg4h
306
+ nigga
307
+ niggah
308
+ niggas
309
+ niggaz
310
+ nigger
311
+ niggers
312
+ nob
313
+ nob jokey
314
+ nobhead
315
+ nobjocky
316
+ nobjokey
317
+ numbnuts
318
+ nutsack
319
+ orgasim
320
+ orgasims
321
+ orgasm
322
+ orgasms
323
+ p0rn
324
+ pawn
325
+ pecker
326
+ penis
327
+ penisfucker
328
+ phonesex
329
+ phuck
330
+ phuk
331
+ phuked
332
+ phuking
333
+ phukked
334
+ phukking
335
+ phuks
336
+ phuq
337
+ pigfucker
338
+ pimpis
339
+ piss
340
+ pissed
341
+ pisser
342
+ pissers
343
+ pisses
344
+ pissflaps
345
+ pissin
346
+ pissing
347
+ pissoff
348
+ poop
349
+ porn
350
+ porno
351
+ pornography
352
+ pornos
353
+ prick
354
+ pricks
355
+ pron
356
+ pube
357
+ pusse
358
+ pussi
359
+ pussies
360
+ pussy
361
+ pussys
362
+ rectum
363
+ retard
364
+ rimjaw
365
+ rimming
366
+ s hit
367
+ s.o.b.
368
+ sadist
369
+ schlong
370
+ screwing
371
+ scroat
372
+ scrote
373
+ scrotum
374
+ semen
375
+ sex
376
+ sh!+
377
+ sh!t
378
+ sh1t
379
+ shag
380
+ shagger
381
+ shaggin
382
+ shagging
383
+ shemale
384
+ shi+
385
+ shit
386
+ shitdick
387
+ shite
388
+ shited
389
+ shitey
390
+ shitfuck
391
+ shitfull
392
+ shithead
393
+ shiting
394
+ shitings
395
+ shits
396
+ shitted
397
+ shitter
398
+ shitters
399
+ shitting
400
+ shittings
401
+ shitty
402
+ skank
403
+ slut
404
+ sluts
405
+ smegma
406
+ smut
407
+ snatch
408
+ son-of-a-bitch
409
+ spac
410
+ spunk
411
+ s_h_i_t
412
+ t1tt1e5
413
+ t1tties
414
+ teets
415
+ teez
416
+ testical
417
+ testicle
418
+ tit
419
+ titfuck
420
+ tits
421
+ titt
422
+ tittie5
423
+ tittiefucker
424
+ titties
425
+ tittyfuck
426
+ tittywank
427
+ titwank
428
+ tosser
429
+ turd
430
+ tw4t
431
+ twat
432
+ twathead
433
+ twatty
434
+ twunt
435
+ twunter
436
+ v14gra
437
+ v1gra
438
+ vagina
439
+ viagra
440
+ vulva
441
+ w00se
442
+ wang
443
+ wank
444
+ wanker
445
+ wanky
446
+ whoar
447
+ whore
448
+ willies
449
+ willy
450
+ xrated
451
+ xxx
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: prof_filter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Emanuel Ivan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-02-19 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A profanity filter
14
+ email: emanuelivan45@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/prof_filter.rb
20
+ - lib/profanityWords.txt
21
+ homepage: http://rubygems.org/gems/prof_filter
22
+ licenses: []
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.2.32
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: To filter out bad language from input
43
+ test_files: []