5 kyu

A simple English to Japanese transliterator

Description:

Transliteration is the phonetic translation of one language to another. This is useful when learning a language such as Hebrew, Chinese, or Japanese.

In this kata, you will make a simple English-to-Japanese transliterator in the Hiragana (ひらがな) alphabet.

Here are two examples, transliterated using the complete solution:

English Japanese
kurayami くらやみ
sayonara さよなら

The pronunciation of each character can be found on this website, but I've made an array of pattern-to-pattern transliterations in the preloaded code. Stick to those patterns alone. Do not make more patterns.

In the case of an untransliterable match (Such as capital letters! Don't match capitals!), one should simply leave in the english characters, drop one character, and try to match again:

English Japanese
unmatchable うんまtcはblえ

The matches should be done with the first valid match in the list given.

Note that this is not a complete or ideal transliteration.

Strings
Algorithms

Stats:

CreatedJan 24, 2015
PublishedJan 25, 2015
Warriors Trained308
Total Skips66
Total Code Submissions357
Total Times Completed75
Haskell Completions75
Total Stars14
% of votes with a positive feedback rating97% of 32
Total "Very Satisfied" Votes31
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes1
Total Rank Assessments16
Average Assessed Rank
5 kyu
Highest Assessed Rank
4 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • user578387 Avatar
  • kazk Avatar
  • solitude Avatar
Ad