Skip to main content

Python pip module of Inko.js

Project description


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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for inko-py, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size inko_py-1.0.0-py3-none-any.whl (5.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size inko-py-1.0.0.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page