/Kodi

πŸ“— ν•œκ΅­μ–΄ μ΄ˆμ„± 검색 라이브러리 / Korean initial sound search library

Primary LanguageKotlin

kodi

μ΄ˆμ„± 검색을 μ§€μ›ν•˜λŠ” ν•œκ΅­μ–΄ λ¬Έμžμ—΄ 비ꡐ λΌμ΄λΈŒλŸ¬λ¦¬μž…λ‹ˆλ‹€. A Korean string comparison library that supports Korean initial sound search.

λ‹€μš΄λ‘œλ“œ

  1. settings.gradle에 maven { url "https://jitpack.io" } μΆ”κ°€
    dependencyResolutionManagement {  
        repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)  
            repositories {  
              google()  
              mavenCentral()  
              maven { url "https://jitpack.io" } // <- μΆ”κ°€
        }
    }
  2. μ‚¬μš©ν•˜κ³ μž ν•˜λŠ” λͺ¨λ“ˆμ— 'com.github.WonJoongLee:kodi:0.2.1' μ˜μ‘΄μ„± μΆ”κ°€
    dependencies {  
        implementation 'com.github.WonJoongLee:kodi:0.2.1' // <- μΆ”κ°€
    }

μ˜ˆμ‹œ

val stringList = listOf("이철수", "κΉ€μ˜ν¬", "이원쀑", "홍길동", "ν™©κ΄…λ’³")
val userInput = "γ…Žγ„±γ„·"
Kodi.insertList(stringList)
val result = Kodi.getMatchStrings(userInput)
// result = ["홍길동", "ν™©κ΄…λ’³"]

γ…Žγ„±γ„· 뿐만 μ•„λ‹ˆλΌ 홍ㄱㄷ, γ…ŽκΈΈγ„· λ“± μ΄ˆμ„±μ΄ 쀑간에 μ„žμ—¬ μžˆμ–΄λ„ 검색이 κ°€λŠ₯ν•©λ‹ˆλ‹€.

기타

ν˜Ήμ‹œ 문제λ₯Ό λ°œκ²¬ν•˜μ‹œλ©΄ 개인적으둜 연락을 주셔도 되고, 이슈둜 남겨주셔도 λ©λ‹ˆλ‹€.
κ°μ‚¬ν•©λ‹ˆλ‹€.
email : realjoong@gmail.com