konglish 0.1.0 → 0.3.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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Konglish - 영어 한국어 발음 변환기
2
2
 
3
3
  영어/외래어 문장을 한국어 발음 표기로 바꿔주는 TypeScript 라이브러리입니다.
4
- 영어는 발음매칭이 어렵기 때문에, 커스텀사전을 사용해서 매칭했습니다.
5
- 사전에 없는 단어라면, cmu-pronouncing-dictionary를 사용해 한국어 발음으로 변환했습니다.
4
+ 영어는 발음매칭이 어렵기 때문에, 커스텀 사전을 사용해서 매칭했습니다.
5
+ 사전에 없는 단어라면 그대로 유지되니 필요한 항목을 사전에 채워 넣어 주세요.
6
6
 
7
7
  ## 설치
8
8
 
@@ -44,18 +44,13 @@ const konglish = new Konglish({
44
44
  },
45
45
  });
46
46
 
47
- const autoKonglish = await Konglish.auto({
48
- dictionary: {
49
- latte: ["라떼"],
50
- meetup: ["밋업"],
51
- },
52
- });
53
-
54
47
  const sync = konglish.latinToHangul("latte meetup"); // "라떼 밋업"
55
- const asyncOut = await autoKonglish.latinToHangul("latte meetup xylophone");
48
+ const asyncOut = await konglish.latinToHangulAsync(
49
+ "latte meetup xylophone",
50
+ ); // "라떼 밋업 xylophone"
56
51
  ```
57
52
 
58
- `Konglish.auto`는 내장 ONNX 추론기를 초기화한 뒤 `KonglishAuto` 인스턴스를 반환합니다. 이 인스턴스의 `latinToHangul` 메서드는 Promise를 반환하므로 `await`로 호출해야 합니다.
53
+ `latinToHangulAsync`는 Promise를 반환하므로 비동기 코드에서 `await`로 호출할 수 있습니다.
59
54
 
60
55
 
61
56
  ## 라이선스