4LW is a simple 'protocol' for generating a 4 word phrase from an IP address and back again. Check out this and this for more info on 4LW. Also check out http://4lw.org/ which provides a DNS service for 4LW.
Here is a Javscript library for 4LW and a .csv of the Mad Libs style dictionaries.