Avast, scurvy dogs!
As ye no doubt know "talk like a pirate day" will'n soon be upon us on September 19th in the year of our Lord two thousand and nine. The Yarhoo! Pirate Network know we be instrumental in converting those'n scurvy buccaneers to the ways of the sea. Our mistress be a tempest and Davey Jones be commandin' more bodies into her depths so we must be replenishing our numbers from the ranks of the landlubbers.
Using Ye Pirate Table
If'n yar wish to find more salty pirates use yonder YQL table to convert
your web pages to pirate speak using these here commands. Simply add
env=store://kid666.com/piratespeak to thar end of your console or request URL and ye be done. Ye pirate tables will appear as if by magic. Since you're likely a lot of lazy dogs here be a link.
<script src="http://l.yimg.com/d/lib/ydn/js/pirate1252961643.js"></script> to automatically change them to pirate speak after thar page has loaded.
How we made thar Pirate Table
If'n ye be interested in how we be makin' yonder pirate table I shall explain thusly. First we take thar HTML that ye be giving to us or we be taking the <body> element from yonder URL parameter. Once we have that thar HTML we be splitting it into tags and text. We take ye text and split it some more until we be having only words. Then we be replacing the English words with good hearty Pirate words. No more bar only a tavern. O' course each word can have more than one translation, hello be either ahoy or avast. Finally we be stitching all the words and tags back together and we be returning that as the
Now to make this'n talk like a pirate day a success we need your help. We have entered some o' the translations for the
piratespeak.dictionary but we be needing more, much more. If'n ye want to contribute to the dictionary ye can use the YQL statement thus
insert into piratespeak.dictionary (english_term, pirate_term) values ("hello", "ahoy");. Add ye a translation now!
This pirate be made possible by the new
yql.storage table and the set variables. It be giving us the chance to host some data in YQL relating to yonder pirate terms. We also be using it to store the tables and our secrets. If ye haven't tried storing data in YQL yet, mark this be your chance.
Tell us on Twitter if ye be building pirate widgets with yonder YQL pirate table and let us make this pirate day one the land lubbers will never forget.
Be converting any page
Of course if'n ye not be a developer ye can still use our piratize bookmarklet by simply saving thar link and then running on yonder page ye wish to piratize.
Cap'n Tom "Brown Beard" Hughes-Croucher (@sh1mmer)
Master of thar seven seas - Yarhoo! Pirate Network
P.S I be adding a secret to ye
pirate.translate table. First one to find it and comment or tweet @ us might win some booty. Ye scurvy dogs will never find it though, because you fight like a dairy farmer.