Skip to content

πŸ‡°πŸ‡· ν•œκ΅­μ–΄ νŠΉμ„±μ„ λ°˜μ˜ν•œ μžλ™ μ™„μ„±, 일치 검색, 퍼지 검색. auto complete, korean consonant matching, and fuzzy search.

Notifications You must be signed in to change notification settings

DarrenKwonDev/ko-fuzzy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ko-fuzzy

how to install

npm i ko-fuzzy

example

import { getKoreanRegex, getKoreanUnicode, escapeRegex, extractKoPhonemes } from "ko-fuzzy";


console.log(getKoreanRegex("μ„œμš°", { consonantMatch: false }).test("μ„œμšΈνŠΉλ³„μ‹œ")); // true.
console.log(getKoreanRegex("γ……γ…‡", { consonantMatch: true }).test("μ„œμšΈνŠΉλ³„μ‹œ")); // μ΄ˆμ„± 검색 μ˜΅μ…˜ ν™œμ„±ν™”. true.
console.log(/"μ„œμš°"/.test("μ„œμšΈνŠΉλ³„μ‹œ")); // false.
// κ·Έ μ™Έμ˜ util ν•¨μˆ˜λ“€
getKoreanUnicode("κ°€"); // U+ac00
extractKoPhonemes("μ•ˆ"); // {initial: 'γ…‡', medial: 'ㅏ', finale: 'γ„΄', initialOffset: 11, medialOffset: 0, finaleOffset: 4 }

μœ λ‹ˆμ½”λ“œ 및 κ΄€λ ¨ μž‘μ—… μ„€λͺ…κΈ€

μœ λ‹ˆμ½”λ“œμ™€ ν•œκΈ€μ˜ μ˜μ—­
μ΄ˆμ€‘μ’…μ„± λΆ„λ¦¬μž‘μ—…

ν•œκΈ€ κ΄€λ ¨ μš©μ–΄ 정리

μŒμ†Œ(Phonemes)

μ΄ˆμ„±(初聲, onset)
쀑성(中聲, nucleus)
μ’…μ„±(硂聲, coda)

Inspired by

bluewings

About

πŸ‡°πŸ‡· ν•œκ΅­μ–΄ νŠΉμ„±μ„ λ°˜μ˜ν•œ μžλ™ μ™„μ„±, 일치 검색, 퍼지 검색. auto complete, korean consonant matching, and fuzzy search.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published