Skip to content

Commit

Permalink
add compatibleJamo option to C, Java, wasm API
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Sep 8, 2024
1 parent 186bb57 commit 1d4a2a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/java/kr/pe/bab2min/Kiwi.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static class Match {
joinAdvSuffix = 1 << 21,
splitComplex = 1 << 22,
zCoda = 1 << 23,
compatibleJamo = 1 << 24,
joinVSuffix = joinVerbSuffix | joinAdjSuffix,
joinAffix = joinNounPrefix | joinNounSuffix | joinVerbSuffix | joinAdjSuffix | joinAdvSuffix,
all = url | email | hashtag | mention | serial | zCoda,
Expand Down
1 change: 1 addition & 0 deletions bindings/wasm/package/src/kiwi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export enum Match {
joinAdvSuffix = 1 << 21,
splitComplex = 1 << 22,
zCoda = 1 << 23,
compatibleJamo = 1 << 24,
joinVSuffix = joinVerbSuffix | joinAdjSuffix,
joinAffix = joinNounPrefix |
joinNounSuffix |
Expand Down
1 change: 1 addition & 0 deletions include/kiwi/capi.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ enum
KIWI_MATCH_JOIN_AFFIX = KIWI_MATCH_JOIN_NOUN_PREFIX | KIWI_MATCH_JOIN_NOUN_SUFFIX | KIWI_MATCH_JOIN_V_SUFFIX | KIWI_MATCH_JOIN_ADV_SUFFIX,
KIWI_MATCH_SPLIT_COMPLEX = 1 << 22,
KIWI_MATCH_Z_CODA = 1 << 23,
KIWI_MATCH_COMPATIBLE_JAMO = 1 << 24,

KIWI_MATCH_ALL = KIWI_MATCH_URL | KIWI_MATCH_EMAIL | KIWI_MATCH_HASHTAG | KIWI_MATCH_MENTION | KIWI_MATCH_Z_CODA,
KIWI_MATCH_ALL_WITH_NORMALIZING = KIWI_MATCH_ALL | KIWI_MATCH_NORMALIZE_CODA,
Expand Down

0 comments on commit 1d4a2a3

Please sign in to comment.