unswear 4.2 → 5.0
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 +4 -4
- data/README.md +37 -9
- data/config/blacklist.yml +567 -0
- data/{lib/unswear/curses.rb → config/old.txt} +6 -10
- data/lib/unswear.rb +20 -2
- data/lib/unswear/string.rb +14 -8
- data/lib/unswear/version.rb +2 -2
- data/test/test_unswear.rb +2 -2
- data/unswear.gemspec +3 -2
- metadata +9 -9
- data/LICENSE +0 -21
- data/lib/unswear/unswear.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e17a6bd729888fb2c7b70d24247aac2c45ed708
|
4
|
+
data.tar.gz: 6340dc7c32672da804284c01daadb1fb70560b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6975700239378953cf0c0ee49ddda7c79566e1f3c7dbdd937f2a78c34bc2ef011bb3287412dc730bf54dc3141a5399fa653ef776321a5801b8cc80a078a26033
|
7
|
+
data.tar.gz: cd10598cd97745b9194463d6b68c5a12b15f1539a12d83f16b594e45ff653698619515e495da863911edb97b6c1d94c4a42d8b08d3af49c8415cde86596c5baa
|
data/README.md
CHANGED
@@ -24,37 +24,65 @@ Censor a string
|
|
24
24
|
```ruby
|
25
25
|
require 'unswear' # Grab all of Unswear's methods
|
26
26
|
|
27
|
-
"
|
27
|
+
"holy fuckin shit".censor # => "holy f*ck*n sh*t"
|
28
28
|
```
|
29
29
|
|
30
30
|
.. or check if a string contains a swear
|
31
31
|
|
32
32
|
```ruby
|
33
33
|
"oh shit".swear? # => true
|
34
|
-
"
|
34
|
+
"sandwich".swear? # => false
|
35
35
|
"fuckface".curse? # => true
|
36
36
|
```
|
37
37
|
|
38
38
|
You can also list the swears that will be censored
|
39
39
|
|
40
40
|
```ruby
|
41
|
-
Unswear.
|
41
|
+
Unswear.words # => ["aclit", "adick", "aids", "alabama porch monkey", "anal intruder" ...
|
42
42
|
```
|
43
43
|
|
44
44
|
And if you'd like to check the version, there's a method for that as well
|
45
45
|
|
46
46
|
```ruby
|
47
|
-
Unswear.version # => "
|
47
|
+
Unswear.version # => "5.0"
|
48
48
|
```
|
49
49
|
|
50
50
|
## To Do
|
51
|
-
- [x] Create dangerous version of `censor`
|
51
|
+
- [x] Create dangerous version of `String#censor`
|
52
52
|
- [x] Fix all of the damn global variables
|
53
|
+
- [x] For some reason words by themselves aren't being censored:
|
54
|
+
```ruby
|
55
|
+
[1] pry(main)> 'holy shit'.censor
|
56
|
+
=> "holy sh*t"
|
57
|
+
[2] pry(main)> 'shit'.censor
|
58
|
+
=> nil
|
59
|
+
```
|
53
60
|
|
54
61
|
## License
|
55
|
-
|
62
|
+
The MIT License (MIT)
|
63
|
+
|
64
|
+
Copyright (c) 2015 Josh Trommel
|
65
|
+
|
66
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
67
|
+
of this software and associated documentation files (the "Software"), to deal
|
68
|
+
in the Software without restriction, including without limitation the rights
|
69
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
70
|
+
copies of the Software, and to permit persons to whom the Software is
|
71
|
+
furnished to do so, subject to the following conditions:
|
72
|
+
|
73
|
+
The above copyright notice and this permission notice shall be included in all
|
74
|
+
copies or substantial portions of the Software.
|
75
|
+
|
76
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
77
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
78
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
79
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
80
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
81
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
82
|
+
SOFTWARE.
|
56
83
|
|
57
84
|
## Disclaimer
|
58
|
-
|
59
|
-
|
60
|
-
|
85
|
+
Please don't get offended by any of the words on this list. I don't mean any of it. If you're offended, please create and issue and tell me that I'm a bad person.
|
86
|
+
|
87
|
+
## Credits
|
88
|
+
Unswear is basically a simpler [obscenity](https://github.com/tjackiw/obscenity). [blacklist.txt](https://github.com/tjackiw/obscenity/blob/master/config/blacklist.yml) is from obscenity, so thank you, Thiago Jackiw.
|
@@ -0,0 +1,567 @@
|
|
1
|
+
---
|
2
|
+
- aclit
|
3
|
+
- adick
|
4
|
+
- aids
|
5
|
+
- alabama porch monkey
|
6
|
+
- anal intruder
|
7
|
+
- anal invader
|
8
|
+
- analicker
|
9
|
+
- anus
|
10
|
+
- "4r5e"
|
11
|
+
- "5h1t"
|
12
|
+
- "5hit"
|
13
|
+
- a55
|
14
|
+
- anal
|
15
|
+
- ar5e
|
16
|
+
- arrse
|
17
|
+
- arse
|
18
|
+
- ass
|
19
|
+
- as$
|
20
|
+
- ass bandit
|
21
|
+
- ass clown
|
22
|
+
- ass face
|
23
|
+
- ass fucker
|
24
|
+
- ass hole
|
25
|
+
- ass load
|
26
|
+
- ass much
|
27
|
+
- ass out
|
28
|
+
- ass packer
|
29
|
+
- ass reamer
|
30
|
+
- ass whacker
|
31
|
+
- ass wipe
|
32
|
+
- assbandit
|
33
|
+
- assclown
|
34
|
+
- asscrack
|
35
|
+
- assed out
|
36
|
+
- assface
|
37
|
+
- assfucker
|
38
|
+
- asshole
|
39
|
+
- asslicker
|
40
|
+
- assload
|
41
|
+
- assmunch
|
42
|
+
- assout
|
43
|
+
- asspacker
|
44
|
+
- assreamer
|
45
|
+
- asswhacker
|
46
|
+
- asswipe
|
47
|
+
- baby batter
|
48
|
+
- babybatter
|
49
|
+
- ball breaker
|
50
|
+
- ball buster
|
51
|
+
- baller
|
52
|
+
- balling
|
53
|
+
- bat shit
|
54
|
+
- batshit
|
55
|
+
- bearded clam
|
56
|
+
- bearded taco
|
57
|
+
- beardedclam
|
58
|
+
- beardedtaco
|
59
|
+
- beaver
|
60
|
+
- beavershot
|
61
|
+
- beeatch
|
62
|
+
- beener
|
63
|
+
- biatch
|
64
|
+
- big baller
|
65
|
+
- bigballer
|
66
|
+
- bimbo
|
67
|
+
- bitch
|
68
|
+
- bite me
|
69
|
+
- biteme
|
70
|
+
- blewinski
|
71
|
+
- blood fart
|
72
|
+
- bloodfart
|
73
|
+
- blow job
|
74
|
+
- blow me
|
75
|
+
- blow my pole
|
76
|
+
- blowjob
|
77
|
+
- blowme
|
78
|
+
- blue ball
|
79
|
+
- blue balls
|
80
|
+
- blueball
|
81
|
+
- blueballs
|
82
|
+
- boner
|
83
|
+
- bull dike
|
84
|
+
- bull shit
|
85
|
+
- bulldike
|
86
|
+
- bullshit
|
87
|
+
- bung hole
|
88
|
+
- bunghole
|
89
|
+
- butt bandit
|
90
|
+
- butt banger
|
91
|
+
- butt buddy
|
92
|
+
- butt crust
|
93
|
+
- butt nugger
|
94
|
+
- butt pirate
|
95
|
+
- butt plug
|
96
|
+
- buttbandit
|
97
|
+
- buttbanger
|
98
|
+
- buttcrack
|
99
|
+
- buttfuck
|
100
|
+
- buttfucker
|
101
|
+
- butthump
|
102
|
+
- buttnugger
|
103
|
+
- buttpirate
|
104
|
+
- buttplug
|
105
|
+
- buttporn
|
106
|
+
- c0ck
|
107
|
+
- camel jockey
|
108
|
+
- camel toe
|
109
|
+
- cameltoe
|
110
|
+
- carpet eater
|
111
|
+
- carpeteater
|
112
|
+
- cherry popper
|
113
|
+
- cherrypopper
|
114
|
+
- chinc
|
115
|
+
- chink
|
116
|
+
- choad
|
117
|
+
- chode
|
118
|
+
- choke my chicken
|
119
|
+
- choking the chicken
|
120
|
+
- cocaine
|
121
|
+
- cock jockey
|
122
|
+
- cock knocker
|
123
|
+
- cock lord
|
124
|
+
- cock ring
|
125
|
+
- cock smoker
|
126
|
+
- cock sucker
|
127
|
+
- cock tease
|
128
|
+
- cockass
|
129
|
+
- cockblocker
|
130
|
+
- cockjockey
|
131
|
+
- cocklord
|
132
|
+
- cocknocker
|
133
|
+
- cockring
|
134
|
+
- cocksmoker
|
135
|
+
- cocksucker
|
136
|
+
- cocktease
|
137
|
+
- condom
|
138
|
+
- coochie
|
139
|
+
- coon
|
140
|
+
- cootch
|
141
|
+
- cooze
|
142
|
+
- corn hole
|
143
|
+
- cornhole
|
144
|
+
- crack ho
|
145
|
+
- crack spackler
|
146
|
+
- crackbitch
|
147
|
+
- cracker
|
148
|
+
- crackspacker
|
149
|
+
- crackspackler
|
150
|
+
- crakker
|
151
|
+
- crap
|
152
|
+
- crap face
|
153
|
+
- crap head
|
154
|
+
- crapface
|
155
|
+
- craphead
|
156
|
+
- crapper
|
157
|
+
- cum
|
158
|
+
- cum belch
|
159
|
+
- cum belcher
|
160
|
+
- cum bubble
|
161
|
+
- cum dumpster
|
162
|
+
- cum guzzle
|
163
|
+
- cum guzzler
|
164
|
+
- cum lapper
|
165
|
+
- cum licker
|
166
|
+
- cum stain
|
167
|
+
- cum sucker
|
168
|
+
- cumbelch
|
169
|
+
- cumbelcher
|
170
|
+
- cumbeltch
|
171
|
+
- cumbeltcher
|
172
|
+
- cumbubble
|
173
|
+
- cumdumpster
|
174
|
+
- cumguzzle
|
175
|
+
- cumguzzler
|
176
|
+
- cumlapper
|
177
|
+
- cumlicker
|
178
|
+
- cumm
|
179
|
+
- cumm bubble
|
180
|
+
- cumm dumpster
|
181
|
+
- cumm guzzler
|
182
|
+
- cumm stain
|
183
|
+
- cumm sucker
|
184
|
+
- cummbubble
|
185
|
+
- cummdumpster
|
186
|
+
- cummguzzler
|
187
|
+
- cummstain
|
188
|
+
- cummsucker
|
189
|
+
- cumstain
|
190
|
+
- cumsucker
|
191
|
+
- cumsuker
|
192
|
+
- cumwad
|
193
|
+
- cunt
|
194
|
+
- cunt hair
|
195
|
+
- cunt whisker
|
196
|
+
- cunthair
|
197
|
+
- cuntwhisker
|
198
|
+
- cuntwisker
|
199
|
+
- cuze
|
200
|
+
- d i c k
|
201
|
+
- daisy chain
|
202
|
+
- daisy gang
|
203
|
+
- dangelberry
|
204
|
+
- dangleberry
|
205
|
+
- deez nuts
|
206
|
+
- devil
|
207
|
+
- dick breath
|
208
|
+
- dick fiend
|
209
|
+
- dick head
|
210
|
+
- dick nose
|
211
|
+
- dick wad
|
212
|
+
- dick weed
|
213
|
+
- dickbreath
|
214
|
+
- dickface
|
215
|
+
- dickfiend
|
216
|
+
- dickhead
|
217
|
+
- dicknose
|
218
|
+
- dickwad
|
219
|
+
- dickweed
|
220
|
+
- dik breath
|
221
|
+
- dik fiend
|
222
|
+
- dik head
|
223
|
+
- dikbreath
|
224
|
+
- dike
|
225
|
+
- dikfiend
|
226
|
+
- dikhead
|
227
|
+
- dildo
|
228
|
+
- dingelberry
|
229
|
+
- dingleberry
|
230
|
+
- dipstick
|
231
|
+
- douche
|
232
|
+
- douche bag
|
233
|
+
- drain the lizard
|
234
|
+
- drugs
|
235
|
+
- dune coon
|
236
|
+
- dunecoon
|
237
|
+
- earning red wings
|
238
|
+
- eat me
|
239
|
+
- eat my shorts
|
240
|
+
- eatme
|
241
|
+
- ecstacy
|
242
|
+
- eggplant
|
243
|
+
- ejaculate
|
244
|
+
- fagg
|
245
|
+
- faggot
|
246
|
+
- faghump
|
247
|
+
- fagmunch
|
248
|
+
- felch
|
249
|
+
- felcher
|
250
|
+
- feltch
|
251
|
+
- feltcher
|
252
|
+
- finger bang
|
253
|
+
- finger banged
|
254
|
+
- finger banger
|
255
|
+
- finger fuck
|
256
|
+
- fingerbang
|
257
|
+
- fingerbanged
|
258
|
+
- fingerbanger
|
259
|
+
- fingerfuck
|
260
|
+
- flamer
|
261
|
+
- flip
|
262
|
+
- flogging the bishop
|
263
|
+
- fore skin
|
264
|
+
- foreskin
|
265
|
+
- fuck
|
266
|
+
- fuck face
|
267
|
+
- fucked
|
268
|
+
- fucker
|
269
|
+
- fuckers
|
270
|
+
- fuckface
|
271
|
+
- fucking
|
272
|
+
- fuckin
|
273
|
+
- fucknut
|
274
|
+
- fucknuts
|
275
|
+
- fucks
|
276
|
+
- fuckshit
|
277
|
+
- fuckstick
|
278
|
+
- fudge packer
|
279
|
+
- fudgepacker
|
280
|
+
- fuk
|
281
|
+
- fuk you
|
282
|
+
- fuker
|
283
|
+
- fukkhead
|
284
|
+
- fur burger
|
285
|
+
- furbuger
|
286
|
+
- furry burger
|
287
|
+
- fury burger
|
288
|
+
- fvck
|
289
|
+
- fvck you
|
290
|
+
- fvcker
|
291
|
+
- fvckface
|
292
|
+
- fvcking
|
293
|
+
- fvcknut
|
294
|
+
- fvcknuts
|
295
|
+
- gang bang
|
296
|
+
- gangbang
|
297
|
+
- genocide
|
298
|
+
- gniga
|
299
|
+
- gook
|
300
|
+
- hairy hatchet wound
|
301
|
+
- hairy taco
|
302
|
+
- hairyhatchetwound
|
303
|
+
- hairytaco
|
304
|
+
- half breed
|
305
|
+
- halfbreed
|
306
|
+
- hardon
|
307
|
+
- hell
|
308
|
+
- hermaphrodite
|
309
|
+
- herpes
|
310
|
+
- ho
|
311
|
+
- hoes
|
312
|
+
- hommo
|
313
|
+
- homo
|
314
|
+
- honkey
|
315
|
+
- honky
|
316
|
+
- hoochie mama
|
317
|
+
- hooker
|
318
|
+
- horse shit
|
319
|
+
- horseshit
|
320
|
+
- hot beef injection
|
321
|
+
- incest
|
322
|
+
- jacking off
|
323
|
+
- jap
|
324
|
+
- jerking off
|
325
|
+
- jiz
|
326
|
+
- jiz muffin
|
327
|
+
- jiz sandwich
|
328
|
+
- jizer
|
329
|
+
- jizm
|
330
|
+
- jizmuffin
|
331
|
+
- jizz
|
332
|
+
- jizz muffin
|
333
|
+
- jizz sandwich
|
334
|
+
- jizzer
|
335
|
+
- jizzm
|
336
|
+
- jizzmuffin
|
337
|
+
- jungle bunny
|
338
|
+
- junglebunny
|
339
|
+
- kike
|
340
|
+
- kill
|
341
|
+
- koochie
|
342
|
+
- koochy
|
343
|
+
- kootch
|
344
|
+
- kootchie
|
345
|
+
- kootchy
|
346
|
+
- kum
|
347
|
+
- kumm
|
348
|
+
- lesbo
|
349
|
+
- lettuce picker
|
350
|
+
- lettucepicker
|
351
|
+
- lezbo
|
352
|
+
- lick my nuts
|
353
|
+
- lickcock
|
354
|
+
- licknipple
|
355
|
+
- limpdick
|
356
|
+
- love canal
|
357
|
+
- lsd
|
358
|
+
- man whore
|
359
|
+
- mangina
|
360
|
+
- manwhore
|
361
|
+
- marijuana
|
362
|
+
- masturbate
|
363
|
+
- mick
|
364
|
+
- monkeydick
|
365
|
+
- monkeyhumper
|
366
|
+
- mooli
|
367
|
+
- mother fucker
|
368
|
+
- motherfucker
|
369
|
+
- mud people
|
370
|
+
- mud person
|
371
|
+
- mudpeople
|
372
|
+
- mudperson
|
373
|
+
- muff
|
374
|
+
- muff diver
|
375
|
+
- muffdiver
|
376
|
+
- muli
|
377
|
+
- murder
|
378
|
+
- nazi
|
379
|
+
- niger
|
380
|
+
- nigga
|
381
|
+
- niggah
|
382
|
+
- nigger
|
383
|
+
- nip
|
384
|
+
- nipple
|
385
|
+
- nutted
|
386
|
+
- nutter
|
387
|
+
- nutting
|
388
|
+
- one way pipe cleaner
|
389
|
+
- panocha
|
390
|
+
- pcp
|
391
|
+
- pecker
|
392
|
+
- pecker head
|
393
|
+
- pecker nose
|
394
|
+
- peckerhead
|
395
|
+
- peckernose
|
396
|
+
- pedophile
|
397
|
+
- penis breath
|
398
|
+
- penisbreath
|
399
|
+
- phelch
|
400
|
+
- phelcher
|
401
|
+
- pheltch
|
402
|
+
- pheltcher
|
403
|
+
- phlip
|
404
|
+
- pillow biter
|
405
|
+
- pillowbiter
|
406
|
+
- pimp
|
407
|
+
- pinis wrinkle
|
408
|
+
- piniswrinkle
|
409
|
+
- pipe hitter
|
410
|
+
- pipehitter
|
411
|
+
- piss
|
412
|
+
- pissdrinker
|
413
|
+
- pisslicker
|
414
|
+
- pito
|
415
|
+
- pole sitter
|
416
|
+
- pole smoker
|
417
|
+
- polesitter
|
418
|
+
- polesmoker
|
419
|
+
- polish the bishop
|
420
|
+
- polishing the torpedo
|
421
|
+
- polock
|
422
|
+
- poon tang
|
423
|
+
- poontang
|
424
|
+
- poop chute
|
425
|
+
- poop stain
|
426
|
+
- poopchute
|
427
|
+
- poopstain
|
428
|
+
- popped cherry
|
429
|
+
- poppedcherry
|
430
|
+
- prick
|
431
|
+
- psilocybin
|
432
|
+
- pu55y
|
433
|
+
- pussie
|
434
|
+
- pussy
|
435
|
+
- pussy juice
|
436
|
+
- pussy juiced
|
437
|
+
- pussy juicer
|
438
|
+
- pussy juicing
|
439
|
+
- pussy pounder
|
440
|
+
- pussy pounding
|
441
|
+
- pussy whipped
|
442
|
+
- pussy whipper
|
443
|
+
- pussy wiped
|
444
|
+
- pussyjuice
|
445
|
+
- pussyjuicer
|
446
|
+
- pussywhipped
|
447
|
+
- pussywhipper
|
448
|
+
- pussywiped
|
449
|
+
- puta
|
450
|
+
- pv55ie
|
451
|
+
- pv55y
|
452
|
+
- rag head
|
453
|
+
- raghead
|
454
|
+
- rectal
|
455
|
+
- rectum
|
456
|
+
- redneck
|
457
|
+
- retard
|
458
|
+
- retarded
|
459
|
+
- rim job
|
460
|
+
- rimjob
|
461
|
+
- rug munch
|
462
|
+
- rug munched
|
463
|
+
- rug muncher
|
464
|
+
- rugmuncher
|
465
|
+
- rump ranger
|
466
|
+
- rumpranger
|
467
|
+
- rumpshaker
|
468
|
+
- sachamo
|
469
|
+
- sambo
|
470
|
+
- sand niggah
|
471
|
+
- sand nigger
|
472
|
+
- sandniggah
|
473
|
+
- sandnigger
|
474
|
+
- satanic
|
475
|
+
- schlong
|
476
|
+
- scrubbing the carrot
|
477
|
+
- shit
|
478
|
+
- shits
|
479
|
+
- shit eater
|
480
|
+
- shit face
|
481
|
+
- shit faced
|
482
|
+
- shit head
|
483
|
+
- shit kicker
|
484
|
+
- shit pusher
|
485
|
+
- shit shover
|
486
|
+
- shiteater
|
487
|
+
- shitface
|
488
|
+
- shitfaced
|
489
|
+
- shitfucker
|
490
|
+
- shithead
|
491
|
+
- shitkicker
|
492
|
+
- shitpusher
|
493
|
+
- shitshover
|
494
|
+
- skank
|
495
|
+
- skin flute
|
496
|
+
- skullfuck
|
497
|
+
- skullfucked
|
498
|
+
- skullfucker
|
499
|
+
- skullfucks
|
500
|
+
- slap the salami
|
501
|
+
- slaping the sausage
|
502
|
+
- slit licker
|
503
|
+
- slitlicker
|
504
|
+
- slope
|
505
|
+
- slut
|
506
|
+
- slut bag
|
507
|
+
- slutbag
|
508
|
+
- smegma
|
509
|
+
- snog
|
510
|
+
- sodomise
|
511
|
+
- sodomised
|
512
|
+
- sodomiser
|
513
|
+
- sodomite
|
514
|
+
- sodomize
|
515
|
+
- sodomized
|
516
|
+
- sodomizer
|
517
|
+
- sodomy
|
518
|
+
- spank the monkey
|
519
|
+
- sphincter boy
|
520
|
+
- sphincter face
|
521
|
+
- sphincterboy
|
522
|
+
- sphincterface
|
523
|
+
- spic
|
524
|
+
- spick
|
525
|
+
- spik
|
526
|
+
- spunk monkey
|
527
|
+
- suicide
|
528
|
+
- taint
|
529
|
+
- tar baby
|
530
|
+
- tarbaby
|
531
|
+
- tard
|
532
|
+
- testes
|
533
|
+
- testicles
|
534
|
+
- testicular
|
535
|
+
- tip polisher
|
536
|
+
- tit
|
537
|
+
- tit fuck
|
538
|
+
- tit fucker
|
539
|
+
- titfuck
|
540
|
+
- titfucker
|
541
|
+
- tits
|
542
|
+
- titty
|
543
|
+
- titty twisted
|
544
|
+
- titty twister
|
545
|
+
- titty twisters
|
546
|
+
- titty twisting
|
547
|
+
- tity
|
548
|
+
- towel head
|
549
|
+
- towelhead
|
550
|
+
- trailer trash
|
551
|
+
- trailertrash
|
552
|
+
- transsexual
|
553
|
+
- transvestite
|
554
|
+
- twat
|
555
|
+
- uncle tom
|
556
|
+
- uplay wid dix
|
557
|
+
- vag
|
558
|
+
- vagina licker
|
559
|
+
- welfare rat
|
560
|
+
- wet back
|
561
|
+
- wetback
|
562
|
+
- whacking off
|
563
|
+
- white trash
|
564
|
+
- whore
|
565
|
+
- wop
|
566
|
+
- wrapping the weasel
|
567
|
+
- yclit
|
@@ -1,12 +1,8 @@
|
|
1
|
-
module Words
|
2
|
-
LIST = %w(
|
3
|
-
fuck fucking fucker fuckin nigger nigga cunt shit
|
4
1
|
ass asshole bitch piss dick pussy pussay chink
|
5
|
-
bastard fag faggot cock slut slutty sluttish whore
|
6
|
-
whorish arse arsehole ass-jabber assjabber assbag
|
7
2
|
assclown asscracker assface assfuck assfuck ass-nigger
|
8
3
|
assfucker ass-fucker asshat ass-hat assnigger ass-pirate
|
9
4
|
asspirate assshit ass-shit axwound beaner bitches
|
5
|
+
bastard fag faggot cock slut slutty sluttish whore
|
10
6
|
bitchass bitch-ass blowjob blow-job bitchy bitchtits
|
11
7
|
bollox boner brother-fucker brotherfucker butt-plug buttplug
|
12
8
|
bullshit bull-shit bumblefuck buttfucker butt-fucker
|
@@ -20,17 +16,17 @@ module Words
|
|
20
16
|
dicksucker dickwad dick-wad douchebag dumbass dumb-ass dumb-fuck
|
21
17
|
dumbfuck dumbshit dumb-shit dyke fatass flamer fuckbrain fuck-brain
|
22
18
|
fucked fuckface fuck-face fuckoff fuck-off fucktard fuck-tard
|
23
|
-
|
19
|
+
fuck fucking fucker fuckin nigger nigga cunt shit
|
24
20
|
goddamn goddamnit gook gooch gringo guido hard-on heeb hoe
|
25
21
|
honkey hump humping kike koocher kooch kraut kunt kyke
|
22
|
+
jackass jack-ass jap jigaboo jizz gaylord gay-lord goddamn
|
26
23
|
lameass lardass lame-ass lard-ass lesbo lezzie pecker pissed
|
27
|
-
poon poontang poonany poonany prick pussies pussylicking puto
|
28
24
|
mcfagget motherfucker motherfucking motherfuck niglet renob shitbreath
|
29
|
-
|
25
|
+
poon poontang poonany poonany prick pussies pussylicking puto
|
30
26
|
queer rimjob ruski sandnigger schlong shitbrains shit-brains shitty
|
27
|
+
shit-breath shitcunt shit-cunt shithead shit-head shitting shittiest
|
31
28
|
skank skanky skankiest slutbag cumbag slut-bag cum-bag splooge
|
32
29
|
tard retard tit titfuck tit-fuck tits titties twats twats unclefucker
|
33
30
|
uncle-fucker va-j-j vag vajayjay vjayjay wank wank-job wankjob
|
34
31
|
whorebag whore-bag wetback wet-back wop
|
35
|
-
|
36
|
-
end
|
32
|
+
whorish arse arsehole ass-jabber assjabber assbag
|
data/lib/unswear.rb
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
# Require some files
|
2
|
-
|
2
|
+
require 'yaml'
|
3
3
|
require_relative 'unswear/string'
|
4
|
-
require_relative 'unswear/
|
4
|
+
require_relative 'unswear/version'
|
5
|
+
require 'awesome_print'
|
6
|
+
|
7
|
+
module Unswear
|
8
|
+
extend self
|
9
|
+
|
10
|
+
# List all swear words
|
11
|
+
def words
|
12
|
+
path = File.join(__dir__, '../config/blacklist.yml')
|
13
|
+
yaml = YAML.load_file(path)
|
14
|
+
return yaml
|
15
|
+
end
|
16
|
+
|
17
|
+
# Return Unswear's version
|
18
|
+
def version
|
19
|
+
Unswear::VERSION
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
data/lib/unswear/string.rb
CHANGED
@@ -6,19 +6,25 @@ class String
|
|
6
6
|
input = self.split
|
7
7
|
|
8
8
|
# Thank you friends on SO
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
result = []
|
10
|
+
input.each do |uncensored|
|
11
|
+
if Unswear.words.include?(uncensored)
|
12
|
+
censored = uncensored.tr("aeiou", "*")
|
13
|
+
result.push(censored)
|
14
|
+
else
|
15
|
+
result.push(uncensored)
|
14
16
|
end
|
15
17
|
end
|
16
18
|
|
17
19
|
# Join the string together and remove commas
|
18
|
-
|
20
|
+
if result.length > 1
|
21
|
+
result = result.join(",").gsub! ",", " "
|
22
|
+
else
|
23
|
+
result = result.first
|
24
|
+
end
|
19
25
|
|
20
26
|
# Return input with censored words
|
21
|
-
return
|
27
|
+
return result
|
22
28
|
end
|
23
29
|
|
24
30
|
# Dangerous censor method
|
@@ -29,7 +35,7 @@ class String
|
|
29
35
|
# Method to check if string contains swear
|
30
36
|
def swear?
|
31
37
|
isSwear = false
|
32
|
-
|
38
|
+
Unswear.words.each do |word|
|
33
39
|
isSwear = true if self.downcase.include? word
|
34
40
|
end
|
35
41
|
# Return if string contains swear or not
|
data/lib/unswear/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = '
|
1
|
+
module Unswear
|
2
|
+
VERSION = '5.0'
|
3
3
|
end
|
data/test/test_unswear.rb
CHANGED
data/unswear.gemspec
CHANGED
@@ -12,8 +12,9 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
13
|
gem.name = 'unswear'
|
14
14
|
gem.require_paths = ['lib']
|
15
|
-
gem.version =
|
15
|
+
gem.version = Unswear::VERSION
|
16
|
+
gem.license = 'MIT'
|
16
17
|
|
17
18
|
gem.add_development_dependency 'bundler', '~> 1.6'
|
18
|
-
gem.add_development_dependency 'rake'
|
19
|
+
gem.add_development_dependency 'rake', '~> 0'
|
19
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unswear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '5.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Un-f*ck user input
|
@@ -47,18 +47,18 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
49
|
- Gemfile
|
50
|
-
- LICENSE
|
51
50
|
- README.md
|
52
51
|
- Rakefile
|
52
|
+
- config/blacklist.yml
|
53
|
+
- config/old.txt
|
53
54
|
- lib/unswear.rb
|
54
|
-
- lib/unswear/curses.rb
|
55
55
|
- lib/unswear/string.rb
|
56
|
-
- lib/unswear/unswear.rb
|
57
56
|
- lib/unswear/version.rb
|
58
57
|
- test/test_unswear.rb
|
59
58
|
- unswear.gemspec
|
60
59
|
homepage: https://github.com/trommel/unswear
|
61
|
-
licenses:
|
60
|
+
licenses:
|
61
|
+
- MIT
|
62
62
|
metadata: {}
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.4.5
|
79
|
+
rubygems_version: 2.4.5.1
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Censor swear words in a string
|
data/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2015 Josh Trommel
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
data/lib/unswear/unswear.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
require_relative 'version'
|
2
|
-
|
3
|
-
# Define Unswear class
|
4
|
-
class Unswear
|
5
|
-
|
6
|
-
# List all swear words
|
7
|
-
def self.list
|
8
|
-
Words::LIST.sort_by(&:downcase).uniq
|
9
|
-
end
|
10
|
-
|
11
|
-
# Return Unswear's version
|
12
|
-
def self.version
|
13
|
-
return Version::VERSION
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|