rss
logo

I provide consulting and custom development for Natural Language Processing, Information Extraction and Search solutions.Self Picture


 learn more   get in touch 

Logo - I Build Search
Dec 28
2006

Limerick Generator – Part I digg

Synopsis

The following code demonstrates an alien limerick generator. Alien because it does not generate meaningful words. In part II, we’ll see how we can add meaningful words.

Code

You can view the code and see it in action here.

Sample Output

orraxa iz hoxori upifoc awhapo ed
ceva ovat ujbazo arli du caded
uc iqek suenvo
zaek ammiip edbeuvo
moix beak kuefyo irogno iluyox xoiqged

9 Responses (rss) (trackback)

#1

The techno-greek

December 28th, 2006 at 8:00 pm

Uoivx CUOIDU dfdsd fd c gdfds cds. SEgfews cgre t cds gesgs oi!

In comments to part II, we will write meaningful comments.

#2

pravin

December 28th, 2006 at 10:43 pm

[The techno-gr ...zzz] jereuj zuayoj uh nued isiwus!

:p seriously lass, you should come up with a shorter name for yourself.

how about just greek? or reek? or EEEEKS! =))

#3

sanguine

December 29th, 2006 at 12:32 pm

this looks interesting ..

LOL @ technogreek’s comment

#4

ashish

December 29th, 2006 at 3:21 pm

hey rather than coming up meaningful words how about giving meanings to the words generated :P

in the end we’ll have our own ‘alien lingo’ :D

#5

pravin

December 29th, 2006 at 7:26 pm

[richa] :P not really, it isnt. unless you’re into such stuff, programming is *boring*

[ashish] nice idea! though, it’ll be hard to propagate this new language.

or it can be like calvin-ball ;)

#6

Techno-greek

January 1st, 2007 at 4:27 pm

Actually, pravin, if you look at the link attached to my comment, you’ll know who I am. A being of many names, none of them all me.

Crap…so much for talking sense in the new year. Heppy noo yurr!

#7

pravin

January 2nd, 2007 at 12:58 pm

[Techno-greek] Give me some credit. I did that already! =P

Suffering from MPD are we?

I meant, you could come up with shorter names than ‘The Techno-Greek’ and ‘The Idea-Smith’

#8

Shrikant Joshi

February 5th, 2007 at 11:07 am

Hey, why not use extract words out of a word list or a dict file, and then apply your code?

Throw in a few random verbs, and maybe like the Shakespeare’s monkeys, you might just hit a few good limericks…

But then again, that’s just a conjecture…

Cheers!
Shri.

#9

pravin

March 4th, 2007 at 10:17 pm

Shrikant Joshi: There are some really neat ways of generating meaningful sentences. I’m learning NLP now and hopefully I will pick this up one day and make Part II.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Latest Articles

Apr
07

Palindromic sub-sequences in python

This bit of python code returns all palindromic subsequences in the input string.

[Read More]
Feb
19

Join a list of integers in Python

How do you run a string join on a list of integers in Python? After googling for about 10 mins, I gave up and did this. I am sure there is a better way of doing it!

[Read More]

Featured Projects

Indic to English Transliterator

Indic to English Transliterator

Transliteration is the process of converting a word from one language to another while retaining its phonetic characteristics. This application lets you convert a word from any major Indian language (currently supports Hindi, Marathi, Sanskrit and Bengali) to English.

[Read More]

Yahoo Messenger Client for *nix

Yahoo Messenger Client for *nix

Yux is an alternative Yahoo Messenger client for *nix systems that attempts to match the look and feel of the original Windows client.

[Read More]

This page and its contents are copyright © 2010, Pravin Paratey.