Yes, It's basically You're a Romanizer, Baby, but harder. like, way harder.
Learning Korean is HARD. at least for a person outside Asia. But they at least have the chance to learn, right?
What you must do
You will be given a Korean Statement. For example, 안녕하세요
. You must convert the input to its Roman pronunciation. For the given example, the output can be annyeonghaseyo
.
Now it gets technical
A Korean character has three parts, Starting consonant, Vowel, and Ending consonant. The Ending consonant may not exist in the character.
For example, 아
is ㅇ
(Starting consonant) and ㅏ
(Vowel), and 손
is ㅅ
(Starting consonant), ㅗ
(Vowel), and ㄴ
(Ending consonant).
Evert consonant and vowel has its pronunciation. The pronunciation for each consonant is as following.
Korean ㄱ ㄲ ㄴ ㄷ ㄸ ㄹ ㅁ ㅂ ㅃ ㅅ ㅆ ㅇ ㅈ ㅉ ㅊ ㅋ ㅌ ㅍ ㅎ
Romanization Starting g kk n d tt r m b pp s ss – j jj ch k t p h
Ending k k n t – l m p – t t ng t – t k t p h
( - means no pronunciation or not used. you do not have to handle them.)
and Pronunciation for each vowels is as following.
Hangul ㅏ ㅐ ㅑ ㅒ ㅓ ㅔ ㅕ ㅖ ㅗ ㅘ ㅙ ㅚ ㅛ ㅜ ㅝ ㅞ ㅟ ㅠ ㅡ ㅢ ㅣ
Romanization a ae ya yae eo e yeo ye o wa wae oe yo u wo we wi yu eu ui i
Now its the real hard part
The consonant's pronunciation changes by the Ending consonant in before. The pronunciation for every Starting/Ending consonant is as the following image. (You do not have to do the hyphen between pronunciations. Its unnecessary. If a cell has two or more pronunciations, choose one. If there's no ending consonant, use the original pronunciation.)
Examples
Korean => English
안녕하세요 => annyeonghaseyo
나랏말싸미 듕귁에달아 => naranmalssami dyunggwigedara //See how the ㅅ in 랏 changes from 't' to 'n'
Example suggestion welcomed. You can get answers for your own inputs here. (The one in "General text", Revised is what I'm asking for)
ㅎ
followed byㄱ, ㄷ, ㅈ
are also special cases (they become aspirated toㅋ, ㅌ, ㅈ
(k, t, j) ) should highlight those too. \$\endgroup\$