I wrote a Ruby port of a PHP class I found which will 'translate' English strings to Swedish Chef. I posted the Cheferizer code to GitHub a few days ago, so go crazy. Many thanks to Erik Bakker, the author of the encheferizer.php class I used as a model. He, in turn, gives credit to John Hagerman as the original author of the Chef-ing algorithm he implemented. All the URLs cited in that source code were dead, so I don't link to them here, but I am grateful for the inspiration. Maybe the whole world has moved beyond being entertained by silly stuff like this, but I sure hope not.
include 'cheferize'
class String
include Cheferize
end
>> "This is a test!".to_chef
=> "Tees is e test, bork bork bork!"
Here's a slightly longer example of the time you can waste paying tribute to a personal hero... First the original English.
Cheferize is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Cheferize is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Cheferize; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
And now, enter the Chef.
Cheffereeze-a is free-a sufftvere; yuoo cun redeestriboote-a it und/ur mudeeffy
it under zee terms ooff zee GNU Generel Poobleec Leecense-a es poobleeshed by
zee Free-a Sufftvere-a Fuoondeshun; ieezeer ferseeun 2 ooff zee Leecense, oor
(et yuoor oopshun) uny leter ferseeun.
Cheffereeze-a is deestribooted in zee hupe-a tet it veell be-a useffool,
boot VITOUT UnY VERRUnTY; veetuoot ifee zee impleeed verrunty ooff
MERCHUnTEBILITY oor FITNESS FOR E PERTICULER PURPOSE. See-a zee
GNU Generel Poobleec Leecense-a fur mure-a deteeels.
Yuoo shuoold hefe-a receeefed e cupy ooff zee GNU Generel Poobleec Leecense-a
elung veet Cheffereeze; iff nut, vreete-a tu zee Free-a Sufftvere-a
Fuoondeshun, Inc., 51 Frunkleen St, Feefft Fluur, Bustun, MA 02110-1301 USA
Post new comment