LeetSpeak: Converting to Text Template

master
Rob Emery 2016-05-16 13:20:45 +01:00
parent f4119f7fbf
commit 6a201a5ece
1 changed files with 9 additions and 6 deletions

View File

@ -44,12 +44,15 @@ handle remainder => sub {
my $translation = join '', map { $alphabet{$_} // $_ } split //, lc $text;
return "Leet Speak: $translation",
structured_answer => {
input => [$text],
operation => 'Leet speak',
result => $translation,
};
return "Leet Speak: $translation", structured_answer => {
data => {
title => $translation,
subtitle => "Leet speak: $text"
},
templates => {
group => 'text'
}
};
};
1;