English -> Japanese name translator
Your name “in Japanese”, spelled with the letter table of a 2008 Facebook chain message. Type it here.
In April 2008 a chain message went round Facebook: every English letter has a Japanese syllable (A is ka, B is tu, and so on), so write your name with them and pass it on. It is not Japanese, of course, and it was never meant to be; somebody made the table up. I wrote a small Python script that week to apply it, mostly for fun, and the post printed what it did to my name. Here is the same table, live.
in “Japanese”
Rukaariarikitakimoari Mekashikamemokitekaari
The table, as the chain message gave it. The letters in this name are lit.
Running it
The script is Python 3 and needs nothing else. Give it names as arguments, or one per line on standard input. Case does not matter, each word is capitalised on its own, and anything that is not a letter (a space, a hyphen, an apostrophe) stays where it was:
$ ./en2ja.py Vassilios Basil Vasileios Vassilios - Rukaariarikitakimoari Basil - Tukaarikita Vasileios - Rukaarikitakukimoari $ echo "Vassilios Karakoidas" | ./en2ja.py Vassilios Karakoidas - Rukaariarikitakimoari Mekashikamemokitekaari
python3 -m unittest -v runs the tests, which check, among other things, the three spellings of my name that the 2008 post printed.
The 2008 script
The original was ja2en.py, Python 2, and it had two problems. The name was the wrong way round (it goes from English to “Japanese”, not back), and it stopped with a KeyError on any character outside A to Z, a space included, so it could only take one word at a time. en2ja.py is the same table in Python 3 with both fixed. The repository keeps the 2008 file, byte for byte, as its first commit.
In real Japanese
Japanese does not spell a foreign name letter by letter. It writes it in katakana, the syllabary kept for foreign words, and it goes by how the name sounds, not by how it is spelled. Mine comes out as ヴァシリオス・カラコイダス (Vashiriosu Karakoidasu), with a middle dot between the two names. A Japanese syllable ends in a vowel (or in n), so the closing s becomes su; and since there is no l, li becomes ri. The v is the one place with a choice. ヴァ (va) is the newer spelling, and plenty of people write バ (ba) instead, which gives バシリオス (Bashiriosu).
The chain table could never get there, because it never listens to the name. The ssi in the middle of Vassilios is one syllable, シ (shi); the table takes it one letter at a time and writes ariariki. Real converters work from the pronunciation instead, and even those disagree with each other (English spelling does not tell them how a name is said).
Source
bkarak/english-to-japanese (external link, opens in a new tab), under the MIT licence.