{"id":2300,"date":"2014-11-16T22:01:24","date_gmt":"2014-11-16T22:01:24","guid":{"rendered":"http:\/\/www.payneful.co.uk\/blogsplosion\/?p=2300"},"modified":"2016-03-16T14:01:21","modified_gmt":"2016-03-16T14:01:21","slug":"so-i-built-a-fake-french-accent-translator","status":"publish","type":"post","link":"https:\/\/www.payneful.co.uk\/blogsplosion\/2014\/11\/16\/so-i-built-a-fake-french-accent-translator\/","title":{"rendered":"So I Built a Fake French Accent Translator"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-2301 size-full\" title=\"*Chief* Inspector Clouseau.\" src=\"http:\/\/www.payneful.co.uk\/blogsplosion\/wp-content\/uploads\/clouseau.jpg\" alt=\"Chief Inspector Clouseau\" width=\"225\" height=\"300\" data-wp-pid=\"2301\" \/>Some weekends I get a little bit distracted with silly little projects. I&#8217;ve spent a good chunk of the last weekend on such an endeavour: <a title=\"The Authentic Silly French Accent Translator\" href=\"http:\/\/www.payneful.co.uk\/french-accent-translator\">the Authentic Silly French Accent Translator<\/a>.<\/p>\n<p>Right about now you&#8217;re probably wondering why I would go to such ludicrous lengths to build an interface that takes perfectly good English and then transforms it into gibberish that when read aloud sounds a little bit like a French accent. Good question! There&#8217;s method to my madness.<\/p>\n<p>You see, I write stories as a hobby &#8211; in particular, <a title=\"Sean's free web comics\" href=\"http:\/\/www.payneful.co.uk\/comics\/\">web comics<\/a> (you might have noticed the link at the top of the page there). There is a character in a story I am currently working on who specifically speaks in a French accent that sounds like a British person doing a bad impression of a French person. It is supposed to invoke the good old British tradition of having a laugh at funny foreign accents &#8211; in particular, the funny foreign accent of one of my all-time favourite comedy characters, <a title=\"Well, I think it's still funny.\" href=\"https:\/\/www.youtube.com\/watch?v=64yianfGvzc\" target=\"_blank\">Inspector Clouseau<\/a> (the Peter Sellers version, not the Steve Martin one<sup class='footnote'><a href='https:\/\/www.payneful.co.uk\/blogsplosion\/2014\/11\/16\/so-i-built-a-fake-french-accent-translator\/#fn-2300-1' id='fnref-2300-1' onclick='return fdfootnote_show(2300)'>1<\/a><\/sup>). Another example of this fine tradition would be the WW2-era sitcom <a title=\"I always preferred Dad's Army myself.\" href=\"https:\/\/www.youtube.com\/watch?v=NO3_rXCYxLU\" target=\"_blank\"><em>&#8216;Allo &#8216;Allo<\/em><\/a>.<\/p>\n<p>The thing is, it&#8217;s very difficult to phonetically write in a French accent. Normally if I need to write in &#8220;authentic&#8221; (i.e. over-the-top) Scottish or Irish or the like, I find a random dialect converter like <a title=\"Hours of fun!\" href=\"http:\/\/www.rinkworks.com\/dialect\/\" target=\"_blank\">the Dialectizer<\/a>. However, as sod&#8217;s law has it nobody has ever thought to make one for French accents. So in order to save myself copious amounts of time in the future, I thought I&#8217;d sit down and code a silly accent translator. You&#8217;re probably thinking it was a long way to go to solve a problem that&#8217;s not really a problem. You&#8217;re probably right, but I built the bloody thing anyway alright?<\/p>\n<p><a title=\"In case you missed the first link at the top of this article.\" href=\"http:\/\/www.payneful.co.uk\/french-accent-translator\" target=\"_blank\">Version 1 of the translator is up<\/a> and ready for people to play with. It&#8217;s not a particularly sophisticated bit of kit &#8211; it&#8217;s looking for general patterns and doing a &#8220;find and replace&#8221; on them. A linguist could have probably grouped together common patterns more easily but I don&#8217;t have access to one. I&#8217;ve intentionally made the replacements as outlandish and silly as possible, and the translator even dots random &#8216;\u00e9&#8217; characters throughout just to make it look a little more authentic. I will probably make amendments now and then as I write dialogue for the character I&#8217;m writing for, but feel free to copy and paste swathes of text into it for the sheer giddy thrill of reading it in fake French<sup class='footnote'><a href='https:\/\/www.payneful.co.uk\/blogsplosion\/2014\/11\/16\/so-i-built-a-fake-french-accent-translator\/#fn-2300-2' id='fnref-2300-2' onclick='return fdfootnote_show(2300)'>2<\/a><\/sup>.<\/p>\n<p>Something I might try and do in the future is adapt the translator to read web pages and convert them to fake French. I just need to figure out the means of doing so and the legal implications! I may also need to produce a silly German dialect translator at some point for a couple of other characters I have.<\/p>\n<p>Any bugs or advice on improvements, leave a comment below! You can login with Twitter, Facebook or Google+.<\/p>\n<p><strong>Disclaimer:<\/strong> as stated in the footer of the translator itself, I actually have nothing against the country of France and its people, this is just a bit of fun and if anything this is actually a poor reflection on the British for getting their kicks out of mocking the French accent.<\/p>\n<p><strong>P.S.<\/strong> If ever you wondered what the code behind a silly French accent translator looks like, check out the image below that I shared on Facebook!<\/p>\n<div id=\"attachment_2445\" class=\"wp-caption aligncenter\" style=\"width: 955px\"><a href=\"http:\/\/www.payneful.co.uk\/blogsplosion\/wp-content\/uploads\/Silly_Translator_Code.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2445 size-full\" src=\"http:\/\/www.payneful.co.uk\/blogsplosion\/wp-content\/uploads\/Silly_Translator_Code.png\" alt=\"Code\" width=\"945\" height=\"768\" data-wp-pid=\"2445\" srcset=\"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-content\/uploads\/Silly_Translator_Code.png 945w, https:\/\/www.payneful.co.uk\/blogsplosion\/wp-content\/uploads\/Silly_Translator_Code-300x244.png 300w, https:\/\/www.payneful.co.uk\/blogsplosion\/wp-content\/uploads\/Silly_Translator_Code-800x650.png 800w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/a><div class=\"wp-caption-text\">I don&#8217;t write all my code with derogatory comments, honest&#8230;all right, I might do it 80% of the time.<\/div><\/div>\n<h2>Postscript (05\/11\/2015)<\/h2>\n<p>Someone in the comments suggested I should upload the code behind this to GitHub. I thought I had already, but I hadn&#8217;t. <a title=\"Fake French Translator on GitHub\" href=\"https:\/\/github.com\/SPPayne\/fake_french_accent_translator\" target=\"_blank\">So I did. Fork away!<\/a> If you do anything with it, please let me know! It&#8217;ll be nice to see what other folks can do with it.<\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Some weekends I get a little bit distracted with silly little projects. I&#8217;ve spent a good chunk of the last weekend on such an endeavour: the Authentic Silly French Accent Translator. Right about now you&#8217;re probably wondering why I would go to such ludicrous lengths to build an interface that&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[308,37],"tags":[251,246,247,248,250,252,249,287,253],"class_list":["post-2300","post","type-post","status-publish","format-standard","hentry","category-projects","category-technology","tag-allo-allo","tag-french","tag-i-have-way-too-much-time-on-my-hands","tag-inspector-clouseau","tag-peter-sellers","tag-silly-accents","tag-the-pink-panther","tag-translator","tag-writing"],"_links":{"self":[{"href":"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-json\/wp\/v2\/posts\/2300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-json\/wp\/v2\/comments?post=2300"}],"version-history":[{"count":0,"href":"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-json\/wp\/v2\/posts\/2300\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-json\/wp\/v2\/media?parent=2300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-json\/wp\/v2\/categories?post=2300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.payneful.co.uk\/blogsplosion\/wp-json\/wp\/v2\/tags?post=2300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}