07 Jul

Duckofy

The trending topic on twitter is #replaceawordinafamousquotewithduck.

Here’s a quick script which does the same automatically. You can write your own quote and press the “Duck it!” button to …. duckofy it :) Or you can press the get new quote button and it will choose from a collection of 40 random quotes and 100 movie quote.




Here’s how it is done. I am using the Javascript Part of Speech (jspos) Tagger to tag all text and convert random nouns to “duck” or “ducks”, depending on the tag. Have fun!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>