How difficult would it be to create a text translator?
My HTML/CSS knowledge can best be described as "good enough to get by". I've also (barely) dipped my toe in PHP (mainly to assemble modular pages and use variables).
When I was a kid, there was a website that offered to "translate" any block of text into various slangs. For example, Pirate Talk, which would replace all instances of friend or pal with "matey", add lots of "Arrrr"s, etc. Pretty basic stuff, really.
I'd like to do something like that : a web page with a large input box which, once submitted, would spit out the same text with a modified slang. I assume this would simply require a bunch of if/then statements : like FRIEND or PAL = MATEY.
I would imagine this is easy enough to do in PHP via string search/replace calls, but my PHP knowledge doesn't extend far enough for me to produce the code from scratch. I'd be able to customize it, however. I'm picturing a simple form with an input box, a submit button, and a div with the displayed results -- using a demo search/replace string I can clone to build up a more exhaustive word bank -- would do the trick (if there's a good samaritan out there reading this).
