-- simple examples of difference in UK vs US spelling. -- currently only maps from UK to US, not reverse. -- from http://www.oxforddictionaries.com/words/british-and-american-spelling -- -- the idea is use something like: -- to-US:read:text -- to "translate" UK text to US spellings of an entire text. -- -- Also, can auto-generate a list of words in this file using: -- |answer> => [|x> for |x> in |word: _list> if == 1] -- |context> => |context: UK to US spelling> to-US |word: centre> => |word: center> to-US |word: fibre> => |word: fiber> to-US |word: litre> => |word: liter> to-US |word: theatre> => |word: theater> + |word: theatre> to-US |word: colour> => |word: color> to-US |word: flavour> => |word: flavor> to-US |word: humour> => |word: humor> to-US |word: labour> => |word: labor> to-US |word: neighbour> => |word: neighbor> to-US |word: apologise> => |word: apologize> to-US |word: organise> => |word: organize> to-US |word: recognise> => |word: recognize> to-US |word: analyse> => |word: analyze> to-US |word: breathalyse> => |word: breathalyze> to-US |word: paralyse> => |word: paralyze> to-US |word: leukaemia> => |word: leukemia> to-US |word: manoeuvre> => |word: maneuver> to-US |word: oestrogen> => |word: estrogen> to-US |word: paediatric> => |word: pediatric> to-US |word: defence> => |word: defense> to-US |word: licence> => |word: license> to-US |word: offence> => |word: offense> to-US |word: pretence> => |word: pretense> -- and so on. -- should be easy enough to write a program to generate the reverse. ie US to UK. -- eg: to-UK |word: color> => |word: colour> -- something similar but much larger for translation between languages. -- eg: to-German |word: x> => |word: y> -- and if the translation is not 1 to 1, then something like this: -- (with the probabilities of that being the right translation as the coefficients) -- (though in general, different context's will give different coefficients) -- to-French |word: x> => 0.7|word: a> + 0.2|word: b> + 0.1|word: c> -- where to get more information: more-info |context: UK to US spelling> => |url: http://www.oxforddictionaries.com/words/british-and-american-spelling> + |url: http://www.oxforddictionaries.com/words/british-and-american-terms>