Created
July 22, 2010 13:40
-
-
Save nobeans/485978 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Japanese only | |
// http://imihu.blog30.fc2.com/blog-entry-3151.html | |
def dict = [ | |
A:"あん!", | |
B:"んあっ…!", | |
C:"んあんあ!", | |
D:"んああ!", | |
E:"あ!", | |
F:"ああんあ!", | |
G:"んっあ!", | |
H:"あっ……!", | |
I:"あっ!", | |
J:"あんっ…!", | |
K:"んあん!", | |
L:"あんあっ!", | |
M:"んっ!", | |
N:"んあ!", | |
O:"んっ…!", | |
P:"あんっあ!", | |
Q:"んっあん!", | |
R:"あんあ!", | |
S:"あっ…!", | |
T:"ん", | |
U:"ああん!", | |
V:"あっ… ん!", | |
W:"あんっ!", | |
X:"んあっん!", | |
Y:"んあんっ!", | |
Z:"んっああ!", | |
1:"あんっ……!", | |
2:"ああんっ…!", | |
3:"あっ…んっ!", | |
4:"あっ……ん!", | |
5:"あっ………!", | |
6:"んあっ……!", | |
7:"んっあっ…!", | |
8:"んっ…あっ!", | |
9:"んっ……あ!", | |
0:"んっ………!", | |
'.':"あんあんあん!", | |
',':"んっあっんっ!", | |
] | |
println args.collect { arg -> | |
arg.toUpperCase().collect { ch -> | |
(dict.containsKey(ch)) ? dict[ch] : ch | |
} | |
}.flatten().join() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment