<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Trypticon: Tag spelling</title>
    <link>http://trypticon.org/articles/tag/spelling?tag=spelling</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>If it ain't broke, break it.</description>
    <item>
      <title>Just Another Monday Morning</title>
      <description>&lt;p&gt;Monday morning came with a request to change the company web site to American &amp;#8220;English&amp;#8221;.&lt;/p&gt;

&lt;p&gt;My first thought was that we&amp;#8217;re not a US company, so we shouldn&amp;#8217;t need to conform to US spelling.  The reasoning I got back was that US companies got scared off by British spelling.&lt;/p&gt;

&lt;p&gt;This reasoning sounds pretty ludicrous to me, and besides, if we switch to American spelling, won&amp;#8217;t that &amp;#8220;scare off&amp;#8221; the entire rest of the English speaking world?&lt;/p&gt;

&lt;p&gt;So I thought, OK&amp;#8230; maybe we can do this and yet not do this.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#!/usr/bin/ruby
#
# Breaks proper English spelling for the benefit of yanks.
# Word list is incomplete, but covers enough to be useful for now.

ARGF.each_line do |line|
    line.sub!(/\b(amort|apolog|author|capital|critic|emphas|general|harmon|initial|maxim|minim|optim|real|recogn|visual)is(e|ed|es|er|or|ation)\b/, '\1iz\2')
    line.sub!(/\b(anal|catal|paral)ys(e|ed|es|er|or)\b/, '\1yz\2')
    line.sub!(/\b(arm|behavi|col|flav|harb|hon|hum|neighb|sav|savi)our(s?)\b/, '\1or\2')
    line.sub!(/\b(defen|licen|offen|preten)ce(s?)\b/, '\1se\2')
    line.sub!(/\b(calib|cent|fib|kilomet|lit|meag|met|theat)re(s?)\b/, '\1er\2')
    line.sub!(/\bpractis(e|ed|ing)\b/, 'practic\1')
    puts line;
end
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;My only concern is that it might match an ID somewhere in the HTML which will mess the CSS up, but otherwise, it&amp;#8217;s looking like a damn good idea.&lt;/p&gt;</description>
      <pubDate>Mon, 14 May 2007 10:13:00 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:5e8de16b-be1b-459d-a5f0-3fb4c9ac6e85</guid>
      <author>Trejkaz</author>
      <link>http://trypticon.org/articles/2007/05/14/just-another-monday-morning</link>
      <category>programming</category>
      <category>monday</category>
      <category>spelling</category>
      <category>english</category>
      <category>ruby</category>
    </item>
  </channel>
</rss>
