YaleKorean

Korean Yale Romanizer


Keywords
Yale, Korean, Romanizer, linguistics, pypi, python, python3, romanization, romanization-systems, yale-romanizer
License
MIT
Install
pip install YaleKorean==1.0.1

Documentation

Korean Yale Romanizer (ν•œκ΅­μ–΄ μ˜ˆμΌμ‹ 둜마자 전사 λ³€ν™˜κΈ°)

Romanizer for Korean following Yale Romanization. See Chapter 3 for details.

0. History

date ver history
20230814 1.0.1 version 1.0.1
20230814 0.0.1 test version
20230812 - Initial commit

1. Installation

pip install YaleKorean

2. Main Functions & Usage

From YaleKorean, you can use these three functions.

import YaleKorean

2.2. YaleKorean.PUAtoUni(line: str) -> str

test = 'μ•ˆλ…•ν•˜μ„Έμš”'
print(YaleKorean.PUAtoUni(test))
# ᄋᅑᆫ녕ᄒᅑ세요

2.2. YaleKorean.YaleCont(line: str) -> str

test_cont = 'λ‹€λžŒμ₯ ν—Œ 쳇바퀴 νƒ€κ³ νŒŒ'
print(YaleKorean.YaleCont(test_cont))
# talamcwi hen cheyspakhwi thakopha

2.3. YaleKorean.YaleMid(line: str) -> str

test_mid = 'λ‚˜λžλ§α„Šα†žλ―Έ 듀ᇰ귁에 달아 λ¬Έα„α†žμ™€λ‘œ μ„œλ‘œ α„‰α†žα„†α†žα†Ίλ”” μ•„λ‹ˆα„’α†žα†―α„Šα†‘'
print(YaleKorean.YaleMid(test_mid))
# nalasmalssomi tywungkwikey tala mwunccowalwo selwo somosti aniholssoy

3. About Korean Yale Romanization

3.1. Basic Rule

1) Consonants

Hangul Romanized
γ„± k
γ„² kk
γ„΄ n
γ„· t
γ„Έ tt
γ„Ή l
ㅁ m
γ…‚ p
γ…ƒ pp
γ…… s
γ…† ss
γ…‡ ng*
γ…ˆ c
γ…‰ cc
γ…Š ch
γ…‹ kh
γ…Œ th
ㅍ ph
γ…Ž h

*only for 'γ…‡' in coda position. 'γ…‡' in onset position does not have any sound.

2) Vowels

Hangul Romanized
ㅏ a
γ…“ e
γ…— o
γ…œ wu*
γ…‘ u
γ…£ i
ㅐ ay
γ…” ey
γ…š oy
γ…Ÿ wi
γ…‘ ya
γ…• ye
γ…› yo
γ…  yu
γ…’ yay
γ…– yey
γ…˜ wa
γ…™ way
ㅝ we
γ…ž wey
γ…’ uy

*If 'γ…œ' is posited after bilabial sounds /γ…‚, γ…ƒ, ㅍ/, 'γ…œ' is romanized as 'u.', It is because that 'γ…œ' and 'γ…‘' is neutralized after bilabial sounds.

3.2. Notation for Middle Korean

1) Consonants

Hangul Romanized
γ…Έ W
γ…Ή WW*
α„› L*
γ…± M*
ㆄ F*
γ…Ώ z
γ…‡ G**
ㆁ ng
ㆆ q
α„Ό S*
α„½ SS*
α„Ύ Sr*
α„Ώ SSr*
α…Ž C*
ᅏ CC*
ᅐ Cr*
α…‘ CCr*
α…” Ch*
α…• Chr*

*These notations are not in the standard Yale Romanization.
**This notation of 'γ…‡' is only for 'γ…‡'[Ι¦].

2) Vowels

  • ㆍ(μ•„λž˜μ•„ alay.a) is notated as 'o'.
    • YaleCont(str): 'O' (capital 'o')
    • YaleMid(str): 'o'
  • 'γ…œ' does not undergo after bilabial sounds.
    • YaleCont(str): 'wu', 'u'(after bilabials)
    • YaleMid(str): 'wu' for all contexts