Skip to content

๐Ÿ“— ํ•œ๊ตญ์–ด ์ดˆ์„ฑ ๊ฒ€์ƒ‰ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ / Korean initial sound search library

Notifications You must be signed in to change notification settings

WonJoongLee/Kodi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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 : [email protected]

About

๐Ÿ“— ํ•œ๊ตญ์–ด ์ดˆ์„ฑ ๊ฒ€์ƒ‰ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ / Korean initial sound search library

Resources

Stars

Watchers

Forks

Languages