开发者

Canadian to US English

Does there exist something like Canadian to US Engl开发者_运维知识库ish e-dictionary which I can use in my application?


Here's a handy Ruby function which will work 90% of the time for Canadian English.

def toCanadian(american)
  american.gsub(/or$/, 'our').gsub(/er$/, 're') + " eh?"
end


I don't know if any such dictionaries exist as a usable module. However I did find on the Ubuntu wiki a very complete looking list between en-US and en-GB (British): https://wiki.ubuntu.com/EnglishTranslation/WordSubstitution

And if you go here it has some links to different resources: https://wiki.ubuntu.com/EnglishTranslation

One of which is here: http://www3.telus.net/linguisticsissues/britishcanadianamericanvocaba.html

I think it's the type of thing you might have to do manually, although that's just from browsing Google briefly. Perhaps someone has already done something like this and has or knows of something that will work.


Wait, I thought Canadians spoke English and French... :)

What programming language?

There's the Google Ajax Language API for web apps...


There are some hints in the Wikipedia article Canadian English, such as *lor = *lour. Combine that with some of the American English encyclopedias here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜