Recently I came across a collection of comments online that were are evidently part of a comment generation script. Fascinated by this, I wrote some code to select the random words / phrases and piece them together into their intended stupid sentences.

As an example of how this works, have a look at the following line:

Woah! I’m really (loving\enjoying\digging) the theme of this (site\website\blog).

By running a script that randomly selects a word from each set of brackets and then replaces each set of brackets and their content with their respectively selected word, nine different (though similar) sentences can be produced from the single line. The combinations are shown below:

Woah! I’m really loving the theme of this site.
Woah! I’m really loving the theme of this website.
Woah! I’m really loving the theme of this blog.

Woah! I’m really enjoying the theme of this site.
Woah! I’m really enjoying the theme of this website.
Woah! I’m really enjoying the theme of this blog.

Woah! I’m really digging the theme of this site.
Woah! I’m really digging the theme of this website.
Woah! I’m really digging the theme of this blog.

Obviously, the more word options and brace sets per line, the more combinations that can be produced. The posts below are randomly generated from lines in this way:

1.
"Hi there! I just wish to give you a huge thumbs up for your great information you have here on this post. I am coming back to your site for more soon."
2.
"It's perfect time to make some plans for the future and it's time to be happy. I have read this post and if I could I desire to suggest you some interesting things or suggestions. Perhaps you could write next articles referring to this article. I wish to read more things about it!"
3.
"I'll right away snatch your rss feed as I can not in finding your email subscription link or e-newsletter service. Do you've any? Kindly allow me recognise in order that I may just subscribe. Thanks."
4.
"Hi there, I found your web site by means of Google at the same time as looking for a related subject, your website came up, it looks good. I have bookmarked it in my google bookmarks."
5.
"Hi! I simply want to offer you a huge thumbs up for the great information you've got here on this post. I am coming back to your site for more soon."

This is not intended as a how-to guide on how to be a spammer, but rather to inform on the sneaky way the comments are generated.

Note that all the comments are positive and complimentary / congratulatory with the hope of the recipient believing they are hand-typed, feeling flattered and allowing the comments to appear on their blog. Usually they are posted with a back-link to the spammer’s website which is the whole purpose.