konglish 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +54 -0
- package/dist/index.cjs +10265 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +10261 -0
- package/dist/index.js.map +1 -0
- package/package.json +57 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type LatinToHangulOptions = {
|
|
2
|
+
dictionary?: Record<string, string[]>;
|
|
3
|
+
beamWidth?: number;
|
|
4
|
+
enableFallbackPhones?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare function latinToHangul(input: string, options?: LatinToHangulOptions): string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Konglish - 라틴 문자 → 한국어 발음 변환기
|
|
10
|
+
*
|
|
11
|
+
* 기본 옵션을 주입한 뒤 인스턴스 단위로 재사용할 수 있습니다.
|
|
12
|
+
*/
|
|
13
|
+
declare class Konglish {
|
|
14
|
+
private readonly defaultOptions;
|
|
15
|
+
constructor(defaultOptions?: LatinToHangulOptions);
|
|
16
|
+
latinToHangul(input: string, options?: LatinToHangulOptions): string;
|
|
17
|
+
private mergeBaseOptions;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const customDictionary: Record<string, string[]>;
|
|
21
|
+
|
|
22
|
+
export { Konglish, type LatinToHangulOptions, customDictionary, latinToHangul };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type LatinToHangulOptions = {
|
|
2
|
+
dictionary?: Record<string, string[]>;
|
|
3
|
+
beamWidth?: number;
|
|
4
|
+
enableFallbackPhones?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare function latinToHangul(input: string, options?: LatinToHangulOptions): string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Konglish - 라틴 문자 → 한국어 발음 변환기
|
|
10
|
+
*
|
|
11
|
+
* 기본 옵션을 주입한 뒤 인스턴스 단위로 재사용할 수 있습니다.
|
|
12
|
+
*/
|
|
13
|
+
declare class Konglish {
|
|
14
|
+
private readonly defaultOptions;
|
|
15
|
+
constructor(defaultOptions?: LatinToHangulOptions);
|
|
16
|
+
latinToHangul(input: string, options?: LatinToHangulOptions): string;
|
|
17
|
+
private mergeBaseOptions;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const customDictionary: Record<string, string[]>;
|
|
21
|
+
|
|
22
|
+
export { Konglish, type LatinToHangulOptions, customDictionary, latinToHangul };
|