Remove some bad words

146 views
Skip to first unread message

loopion

unread,
Feb 19, 2009, 4:14:31 AM2/19/09
to Ruby Faker
Hi,

Using intensely Faker, I encounter a really tricky suspected error :
In the Faker::Lorem there is the word "cum" that I qualified as a bad
word. Could somebody remove it from the gem?

taelor

unread,
Feb 19, 2009, 8:33:22 AM2/19/09
to Ruby Faker
I think that is Latin like Cum Laude

I don't know the actual method call to generate text, but you could
just gsub it out.

Faker::Lorem.generate.gsub("cum", "")

You could just write a method that does that and call it clean so you
could say

Faker::Lorem.clean

loopion

unread,
Feb 23, 2009, 5:51:09 AM2/23/09
to Ruby Faker
That's what I did, thanks
Reply all
Reply to author
Forward
0 new messages