inko-py

Python pip module of Inko.js


License
MIT
Install
pip install inko-py==1.0.0

Documentation


Inko.py

Open Source Library, Converting Misspelled English characters into Korean letters (& vice versa)
Python implementation of Inko.js


Getting Started

Requirements

  • Python >= 3.6

Installation

python -m pip install inko-py

Usage

import inko
myInko = inko.Inko()

or

from inko import Inko
myInko = Inko()

μ˜μ–΄(en) -> ν•œκΈ€(ko)

print(myInko.ko2en('ㅗ디ㅣㅐ μž¬κΉ…!'))
# output: hello world!

ν•œκΈ€(ko) -> μ˜μ–΄(en)

print(myInko.en2ko('dkssudgktpdy tptkd!'))
# output: μ•ˆλ…•ν•˜μ„Έμš” 세상!

Optional parameter

Key Type Value Description
allowDoubleConsonant Boolean True or False 볡자음 μ„€μ •μ—¬λΆ€

섀정을 λΆ€μ—¬ν•˜λŠ” 방법은 μ•„λž˜μ˜ μ„Έ 가지 λ°©λ²•μœΌλ‘œ μ§€μ›ν•©λ‹ˆλ‹€.

  1. μΈμŠ€ν„΄μŠ€ 생성할 λ•Œ μƒμ„±μžμ˜ 인자둜 μ„€μ • λΆ€μ—¬
from inko import Inko
myInko = Inko(allowDoubleConsonant=True)
  1. config ν•¨μˆ˜λ‘œ μ„€μ • λΆ€μ—¬
myInko.config(allowDoubleConsonant=True)
  1. en2ko ν•¨μˆ˜μ˜ 인자둜 μ„€μ • λΆ€μ—¬
myInko.en2ko('rtrt', allowDoubleConsonant=True);
# output: γ„³γ„³
myInko.en2ko('rtrt', {allowDoubleConsonant=False);
# output: γ„±γ……γ„±γ……

Related

Contributing

이 μ˜€ν”ˆμ†ŒμŠ€ ν”„λ‘œμ νŠΈμ— λˆ„κ΅¬λ‚˜ κΈ°μ—¬ν•  수 μžˆμŠ΅λ‹ˆλ‹€. κΈ°μ—¬ν•˜κ³  싢은 뢄듀은 이 λ ˆν¬μ§€ν† λ¦¬λ₯Ό ν¬ν¬ν•œ ν›„ ν’€λ¦¬ν€˜μŠ€νŠΈ μš”μ²­ν•΄μ£Όμ„Έμš”!

License

Inko.py is released under the MIT License. See LICENSE file for details.

Credits

Thanks to Jon Jee(738), the original author of Inko.js