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 | 볡μμ μ€μ μ¬λΆ |
μ€μ μ λΆμ¬νλ λ°©λ²μ μλμ μΈ κ°μ§ λ°©λ²μΌλ‘ μ§μν©λλ€.
- μΈμ€ν΄μ€ μμ±ν λ μμ±μμ μΈμλ‘ μ€μ λΆμ¬
from inko import Inko
myInko = Inko(allowDoubleConsonant=True)
-
config
ν¨μλ‘ μ€μ λΆμ¬
myInko.config(allowDoubleConsonant=True)
-
en2ko
ν¨μμ μΈμλ‘ μ€μ λΆμ¬
myInko.en2ko('rtrt', allowDoubleConsonant=True);
# output: γ³γ³
myInko.en2ko('rtrt', {allowDoubleConsonant=False);
# output: γ±γ
γ±γ
Related
- inko-js - Inko javascript library
- inko-cli - Use inko on the command line
- inko-web - Inko official website
- inko-chrome-extension - Inko chrome extension
- alfred-inko - Alfred 3 workflow to convert misspelled English characters into Korean letters (& vice versa)
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