Skip to content

Commit

Permalink
Merge pull request #67 from hmlendea/korean
Browse files Browse the repository at this point in the history
Improved transliteration for `Korean`
  • Loading branch information
hmlendea authored Nov 28, 2023
2 parents 2ec642e + 659f5b0 commit ec8fa00
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions TransliterationAPI/Service/Transliterators/KoreanTransliterator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ public KoreanTransliterator()
{
transliterationTable = new Dictionary<string, string>()
{
// Hangul
{ "가", "ga" },
{ "강", "gang" },
{ "거", "geo" },
{ "게", "ge" },
{ "경", "gyeong" },
{ "고", "go" },
{ "광", "gwang" },
Expand All @@ -27,33 +29,60 @@ public KoreanTransliterator()
{ "김", "gim" },
{ "나", "na" },
{ "남", "nam" },
{ "냐", "nya" },
{ "네", "ne" },
{ "니", "ni" },
{ "닝", "ning" },
{ "담", "dam" },
{ "대", "dae" },
{ "동", "dong" },
{ "드", "deu" },
{ "라", "ra" },
{ "랏", "lat" },
{ "레", "re" },
{ "령", "ryeong" },
{ "로", "lo" }, // or ro
{ "롱", "long" },
{ "루", "ru" },
{ "르", "re" },
{ "리", "ri" },
{ "린", "rin" },
{ "명", "myeong" },
{ "모", "mo" },
{ "목", "mok" },
{ "미", "mi" },
{ "바", "ba" },
{ "벨", "bel" },
{ "보", "bo" },
{ "볼", "bol" },
{ "부", "bu" },
{ "비", "bi" },
{ "사", "sa" },
{ "산", "san" },
{ "샤", "sha" },
{ "서", "seo" },
{ "성", "seong" },
{ "소", "so" },
{ "속", "sok" },
{ "수", "su" },
{ "순", "sun" },
{ "스", "seu" },
{ "시", "si" },
{ "신", "sin" },
{ "아", "a" },
{ "안", "an" },
{ "얀", "yan" },
{ "양", "yang" },
{ "에", "e" },
{ "여", "yeo" },
{ "영", "yeong" },
{ "예", "ye" },
{ "오", "o" },
{ "용", "yong" },
{ "우", "u" },
{ "운", "un" },
{ "울", "ul" },
{ "웅", "ung" },
{ "원", "won" },
{ "의", "ui" },
{ "이", "i" },
Expand All @@ -63,25 +92,46 @@ public KoreanTransliterator()
{ "정", "jeong" },
{ "제", "je" },
{ "주", "ju" },
{ "즈", "jeu" },
{ "지", "ji" },
{ "진", "jin" },
{ "차", "cha" },
{ "창", "chang" },
{ "천", "cheon" },
{ "청", "cheong" },
{ "초", "cho" },
{ "춘", "chun" },
{ "충", "chung" },
{ "츠", "cheu" },
{ "카", "ka" },
{ "케", "ke" },
{ "콘", "kon" },
{ "쿠", "ku" },
{ "크", "keu" },
{ "클", "keul" },
{ "키", "ki" },
{ "타", "ta" },
{ "탄", "tan" },
{ "택", "taek" },
{ "토", "to" },
{ "톨", "tol" },
{ "펜", "pen" },
{ "평", "pyeong" },
{ "포", "po" },
{ "폴", "pol" },
{ "푸", "pu" },
{ "플", "p" },
{ "하", "ha" },
{ "항", "hang" },
{ "해", "hae" },
{ "헤", "he" },
{ "현", "hyeon" },
{ "홍", "hong" },
{ "화", "hwa" },
{ "흥", "heung" },

// Hanja
{ "룽", "lung" },
};
}

Expand Down

0 comments on commit ec8fa00

Please sign in to comment.