Translating english into amglish

From: Date: Tue, 19 Jul 2005 20:12:52 +0000
Subject: Translating english into amglish
Groups: php.general 
Request: Send a blank email to php-general+get-218993@lists.php.net to get a copy of this message
Hi All, I'm based in Australia but my blog is predominantly read by Americans. I'm wondering if anyone knows of a class that will translate Australian / UK / Canadian / Whathaveyou English spellings into their American English equivalents? In other words, a class that will take a string with spellings such as "The colour of my neighbour's car, I recently realised, isn't grey after all" and will return "The color of my neighbor's car, I recently realized, isn't gray after all", and so on. Given time I'm sure I could work out many of the transformation rules myself, and implement them via regular expressions, but why reinvent the wheel if someone has already done so? Much warmth, Murray --- http://www.planetthoughtful.org "Building a thoughtful planet, one quirky comment at a time."

« previous php.general (#218993) next »