Giter Site home page Giter Site logo

yalekorean's Introduction

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

yalekorean's People

Contributors

sehaan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.