Open Source Library, Converting Misspelled English characters into Korean letters (& vice versa)
Kotlin implementation of Inko.js, also works in Java!
repositories {
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.kimcore", "inko.kt", "1.2")
}
inko.kt๋ ์ธ์คํด์ค๋ฅผ ์์ฑํ๊ฑฐ๋, ์ฝํ๋ฆฐ์ extension property๋ฅผ ์ฌ์ฉํ์ฌ ๋ณํํ ์ ์์ต๋๋ค.
import com.github.kimcore.inko.Inko
import com.github.kimcore.inko.Inko.Companion.asKorean
import com.github.kimcore.inko.Inko.Companion.asEnglish
val inko = Inko()
// ์์ด (en) -> ํ๊ธ (ko)
println(inko.en2ko("dkssudgktpdy!")) // ์๋
ํ์ธ์!
println("dkssudgktpdy!".asKorean) // ์๋
ํ์ธ์!
// ํ๊ธ (ko) -> ์์ด (en)
println(inko.ko2en("ใ
๋ใ
ฃใ
, ์ฌ๊น
!")) // hello, world!
println("ใ
๋ใ
ฃใ
, ์ฌ๊น
!".asEnglish) // hello, world!
์ด๋ฆ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ค๋ช |
---|---|---|---|
allowDoubleConsonant | Boolean | false | ๋ณต์์ ์ค์ ์ฌ๋ถ |
์์:
import com.github.kimcore.Inko
import com.github.kimcore.Inko.Companion.asKoreanWithDoubleConsonant
// Inko ์ธ์คํด์ค๋ฅผ ์์ฑํ ๋ ์ค์ ๋ถ์ฌํ๊ธฐ
val inko = Inko(allowDoubleConsonant = true)
// allowDoubleConsonant ๋ณ์๋ฅผ ๋ณ๊ฒฝํ์ฌ ์ค์ ๋ถ์ฌํ๊ธฐ
inko.allowDoubleConsonant = true
// en2ko ํจ์์ ์ธ์๋ก ์ค์ ๋ถ์ฌํ๊ธฐ
inko.en2ko("dhk toswm!", allowDoubleConsonant = true)
// Extension property ์ฌ์ฉ์, String.asKoreanWithDoubleConsonant ์ฌ์ฉ
"dhk toswm!".asKoreanWithDoubleConsonant
- 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)
- inko.py - Python implementation of inko.js
์ด ์คํ์์ค ํ๋ก์ ํธ์ ๋๊ตฌ๋ ๊ธฐ์ฌํ ์ ์์ต๋๋ค. ๊ธฐ์ฌํ๊ณ ์ถ์ ๋ถ๋ค์ ์ด ๋ ํฌ์งํ ๋ฆฌ๋ฅผ ํฌํฌํ ํ ํ๋ฆฌํ์คํธ ์์ฒญํด์ฃผ์ธ์!
Inko.kt ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ MIT ๋ผ์ด์ ์ค๋ฅผ ๋ฐ๋ฅด๊ณ ์์ต๋๋ค. ์์ธํ ๋ด์ฉ์ LICENSE ํ์ผ์ ์ฐธ๊ณ ํด์ฃผ์ธ์.