Created
October 31, 2013 03:02
-
-
Save gelendir/7243798 to your computer and use it in GitHub Desktop.
Convert to samurai name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
letters = { | |
'a': 'ka', | |
'b': 'zu', | |
'c': 'mi', | |
'd': 'te', | |
'e': 'ku', | |
'f': 'lu', | |
'g': 'ji', | |
'h': 'ri', | |
'i': 'ki', | |
'j': 'zu', | |
'k': 'me', | |
'l': 'ta', | |
'm': 'rin', | |
'n': 'to', | |
'o': 'mo', | |
'p': 'no', | |
'q': 'ke', | |
'r': 'shi', | |
's': 'ari', | |
't': 'chi', | |
'u': 'do', | |
'v': 'ru', | |
'w': 'mei', | |
'x': 'na', | |
'y': 'fu', | |
'z': 'zi', | |
} | |
name = "gregory eric sanderson turcot temlett macdonnell glengary forbes linden" | |
print("".join(letters[x] if x in letters else x for x in name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment