inko-py

Python pip module of Inko.js


License
MIT
Install
pip install inko-py==0.0.2

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