@toss/hangul
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -6,2 +6,19 @@ # Change Log | ||
# [1.5.0](https://github.com/toss/slash/compare/@toss/hangul@1.4.0...@toss/hangul@1.5.0) (2023-07-03) | ||
### Bug Fixes | ||
* Delete not josa option '이에' ([#260](https://github.com/toss/slash/issues/260)) ([a835b72](https://github.com/toss/slash/commit/a835b72b69ae95ab28fae267e70b7472b127a120)) | ||
### Features | ||
* **@toss/hangul:** add josa option with `으로써/로써` and `으로부터/로부터` ([#265](https://github.com/toss/slash/issues/265)) ([b03a497](https://github.com/toss/slash/commit/b03a497ccd1c26a134c27ec7ffbfb4ee4513fa10)) | ||
* add josa option with (으로서/로서) ([#261](https://github.com/toss/slash/issues/261)) ([6bb1eb5](https://github.com/toss/slash/commit/6bb1eb5856c4ba231a9d418d2f477721be4aae63)) | ||
# [1.4.0](https://github.com/toss/slash/compare/@toss/hangul@1.3.0...@toss/hangul@1.4.0) (2023-06-13) | ||
@@ -8,0 +25,0 @@ |
@@ -362,2 +362,3 @@ 'use strict'; | ||
/** @tossdocs-ignore */ | ||
var 로_조사 = ['으로/로', '으로서/로서', '으로써/로써', '으로부터/로부터']; | ||
function josa(word, josa) { | ||
@@ -378,4 +379,5 @@ if (word.length === 0) { | ||
var is종성ㄹ = ((_disassembleCompleteH = disassembleCompleteHangulCharacter(word[word.length - 1])) === null || _disassembleCompleteH === void 0 ? void 0 : _disassembleCompleteH.last) === 'ㄹ'; | ||
var isCaseOf로 = has받침 && is종성ㄹ && 로_조사.includes(josa); | ||
if (josa === '와/과' || has받침 && is종성ㄹ && josa === '으로/로') { | ||
if (josa === '와/과' || isCaseOf로) { | ||
index = index === 0 ? 1 : 0; | ||
@@ -382,0 +384,0 @@ } |
@@ -1,2 +0,2 @@ | ||
declare type JosaOption = '이/가' | '을/를' | '은/는' | '으로/로' | '와/과' | '이나/나' | '이에/에' | '이란/란' | '아/야' | '이랑/랑' | '이에요/예요'; | ||
declare type JosaOption = '이/가' | '을/를' | '은/는' | '으로/로' | '와/과' | '이나/나' | '이란/란' | '아/야' | '이랑/랑' | '이에요/예요' | '으로서/로서' | '으로써/로써' | '으로부터/로부터'; | ||
export declare function josa(word: string, josa: JosaOption): string; | ||
@@ -3,0 +3,0 @@ export declare namespace josa { |
{ | ||
"name": "@toss/hangul", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"sideEffects": false, | ||
@@ -55,4 +55,4 @@ "exports": { | ||
}, | ||
"gitHead": "09b67ba4fffa7bd407924693e1443ae86bcdf9d5", | ||
"gitHead": "d0b70f1890fd3c19fb3d1266ac2cb5fa773b9782", | ||
"module": "./esm/index.mjs" | ||
} |
Sorry, the diff of this file is not supported yet
35611
770