@polyglot-bundles/vi-word-lists 0.2.10 → 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.
Files changed (240) hide show
  1. package/package.json +21 -1
  2. package/src/index.ts +569 -569
  3. package/src/json/a1/a1-colors.json +80 -0
  4. package/src/json/a1/a1-family.json +66 -0
  5. package/src/json/a1/a1-food.json +80 -0
  6. package/src/json/a1/a1-greetings.json +80 -0
  7. package/src/json/a1/a1-numbers.json +80 -0
  8. package/src/json/a1/a1-vocabulary-01.json +411 -411
  9. package/src/json/a1/a1-vocabulary-02.json +411 -411
  10. package/src/json/a1/a1-vocabulary-03.json +411 -411
  11. package/src/json/a1/a1-vocabulary-04.json +419 -419
  12. package/src/json/a2/a2-body-parts.json +150 -0
  13. package/src/json/a2/a2-clothing.json +115 -0
  14. package/src/json/a2/a2-places.json +115 -0
  15. package/src/json/a2/a2-vocabulary-01.json +411 -411
  16. package/src/json/a2/a2-vocabulary-02.json +411 -411
  17. package/src/json/a2/a2-vocabulary-03.json +411 -411
  18. package/src/json/a2/a2-vocabulary-04.json +411 -411
  19. package/src/json/a2/a2-vocabulary-05.json +411 -411
  20. package/src/json/a2/a2-vocabulary-06.json +411 -411
  21. package/src/json/a2/a2-vocabulary-07.json +411 -411
  22. package/src/json/a2/a2-vocabulary-08.json +411 -411
  23. package/src/json/a2/a2-vocabulary-09.json +411 -411
  24. package/src/json/a2/a2-vocabulary-10.json +411 -411
  25. package/src/json/a2/a2-vocabulary-11.json +411 -411
  26. package/src/json/a2/a2-vocabulary-12.json +411 -411
  27. package/src/json/b1/b1-emotions.json +115 -0
  28. package/src/json/b1/b1-professions.json +115 -0
  29. package/src/json/b1/b1-vocabulary-01.json +411 -411
  30. package/src/json/b1/b1-vocabulary-02.json +411 -411
  31. package/src/json/b1/b1-vocabulary-03.json +411 -411
  32. package/src/json/b1/b1-vocabulary-04.json +411 -411
  33. package/src/json/b1/b1-vocabulary-05.json +411 -411
  34. package/src/json/b1/b1-vocabulary-06.json +411 -411
  35. package/src/json/b1/b1-vocabulary-07.json +411 -411
  36. package/src/json/b1/b1-vocabulary-08.json +411 -411
  37. package/src/json/b1/b1-vocabulary-09.json +411 -411
  38. package/src/json/b1/b1-vocabulary-10.json +411 -411
  39. package/src/json/b1/b1-vocabulary-11.json +411 -411
  40. package/src/json/b1/b1-vocabulary-12.json +411 -411
  41. package/src/json/b1/b1-vocabulary-13.json +411 -411
  42. package/src/json/b1/b1-vocabulary-14.json +411 -411
  43. package/src/json/b1/b1-vocabulary-15.json +411 -411
  44. package/src/json/b1/b1-vocabulary-16.json +411 -411
  45. package/src/json/b1/b1-vocabulary-17.json +411 -411
  46. package/src/json/b1/b1-vocabulary-18.json +411 -411
  47. package/src/json/b1/b1-vocabulary-19.json +411 -411
  48. package/src/json/b1/b1-vocabulary-20.json +411 -411
  49. package/src/json/b1/b1-vocabulary-21.json +411 -411
  50. package/src/json/b1/b1-vocabulary-22.json +411 -411
  51. package/src/json/b1/b1-vocabulary-23.json +411 -411
  52. package/src/json/b1/b1-vocabulary-24.json +403 -403
  53. package/src/json/b1/b1-weather.json +115 -0
  54. package/src/json/b2/abstract-concepts.json +48 -18
  55. package/src/json/pre-a1/survival-phrases.json +57 -21
  56. package/src/levels/a2.ts +16 -0
  57. package/src/levels/b1.ts +16 -0
  58. package/src/levels/b2.ts +16 -0
  59. package/src/levels/pre-a1.ts +16 -0
  60. package/src/vocab.ts +28 -0
  61. package/dist/a1-vocabulary-01-DkApdwc5.js +0 -417
  62. package/dist/a1-vocabulary-01-DkApdwc5.js.map +0 -1
  63. package/dist/a1-vocabulary-02-DWFR43qH.js +0 -417
  64. package/dist/a1-vocabulary-02-DWFR43qH.js.map +0 -1
  65. package/dist/a1-vocabulary-03-DRFWCfmP.js +0 -417
  66. package/dist/a1-vocabulary-03-DRFWCfmP.js.map +0 -1
  67. package/dist/a1-vocabulary-04-BG3wU_GD.js +0 -425
  68. package/dist/a1-vocabulary-04-BG3wU_GD.js.map +0 -1
  69. package/dist/a2-vocabulary-01-BvayhMGP.js +0 -417
  70. package/dist/a2-vocabulary-01-BvayhMGP.js.map +0 -1
  71. package/dist/a2-vocabulary-02-BOnrtBmL.js +0 -417
  72. package/dist/a2-vocabulary-02-BOnrtBmL.js.map +0 -1
  73. package/dist/a2-vocabulary-03-6ay88srv.js +0 -417
  74. package/dist/a2-vocabulary-03-6ay88srv.js.map +0 -1
  75. package/dist/a2-vocabulary-04-ukmGr9rc.js +0 -417
  76. package/dist/a2-vocabulary-04-ukmGr9rc.js.map +0 -1
  77. package/dist/a2-vocabulary-05-oAxmpsUQ.js +0 -417
  78. package/dist/a2-vocabulary-05-oAxmpsUQ.js.map +0 -1
  79. package/dist/a2-vocabulary-06-Bfp7zhPf.js +0 -417
  80. package/dist/a2-vocabulary-06-Bfp7zhPf.js.map +0 -1
  81. package/dist/a2-vocabulary-07-D2V3bY78.js +0 -417
  82. package/dist/a2-vocabulary-07-D2V3bY78.js.map +0 -1
  83. package/dist/a2-vocabulary-08-B081QwtI.js +0 -417
  84. package/dist/a2-vocabulary-08-B081QwtI.js.map +0 -1
  85. package/dist/a2-vocabulary-09-D3oZl1x7.js +0 -417
  86. package/dist/a2-vocabulary-09-D3oZl1x7.js.map +0 -1
  87. package/dist/a2-vocabulary-10-GOfTyNQ0.js +0 -417
  88. package/dist/a2-vocabulary-10-GOfTyNQ0.js.map +0 -1
  89. package/dist/a2-vocabulary-11-BSbghXOM.js +0 -417
  90. package/dist/a2-vocabulary-11-BSbghXOM.js.map +0 -1
  91. package/dist/a2-vocabulary-12-CzNCmckp.js +0 -417
  92. package/dist/a2-vocabulary-12-CzNCmckp.js.map +0 -1
  93. package/dist/abstract-concepts-KNlFYB8f.js +0 -90
  94. package/dist/abstract-concepts-KNlFYB8f.js.map +0 -1
  95. package/dist/b1-vocabulary-01-Bm9ZIMBE.js +0 -417
  96. package/dist/b1-vocabulary-01-Bm9ZIMBE.js.map +0 -1
  97. package/dist/b1-vocabulary-02-ClfT72Yp.js +0 -417
  98. package/dist/b1-vocabulary-02-ClfT72Yp.js.map +0 -1
  99. package/dist/b1-vocabulary-03-BInffiGG.js +0 -417
  100. package/dist/b1-vocabulary-03-BInffiGG.js.map +0 -1
  101. package/dist/b1-vocabulary-04-0wG09twP.js +0 -417
  102. package/dist/b1-vocabulary-04-0wG09twP.js.map +0 -1
  103. package/dist/b1-vocabulary-05-MrDkdCbh.js +0 -417
  104. package/dist/b1-vocabulary-05-MrDkdCbh.js.map +0 -1
  105. package/dist/b1-vocabulary-06-uyXDLJa6.js +0 -417
  106. package/dist/b1-vocabulary-06-uyXDLJa6.js.map +0 -1
  107. package/dist/b1-vocabulary-07-0Q9DCwsk.js +0 -417
  108. package/dist/b1-vocabulary-07-0Q9DCwsk.js.map +0 -1
  109. package/dist/b1-vocabulary-08-Cx9Giw8r.js +0 -417
  110. package/dist/b1-vocabulary-08-Cx9Giw8r.js.map +0 -1
  111. package/dist/b1-vocabulary-09-Bdf0_vRF.js +0 -417
  112. package/dist/b1-vocabulary-09-Bdf0_vRF.js.map +0 -1
  113. package/dist/b1-vocabulary-10-DgkE3aUr.js +0 -417
  114. package/dist/b1-vocabulary-10-DgkE3aUr.js.map +0 -1
  115. package/dist/b1-vocabulary-11-BtbOvYEA.js +0 -417
  116. package/dist/b1-vocabulary-11-BtbOvYEA.js.map +0 -1
  117. package/dist/b1-vocabulary-12-DhsAY-fb.js +0 -417
  118. package/dist/b1-vocabulary-12-DhsAY-fb.js.map +0 -1
  119. package/dist/b1-vocabulary-13-DahuIhzT.js +0 -417
  120. package/dist/b1-vocabulary-13-DahuIhzT.js.map +0 -1
  121. package/dist/b1-vocabulary-14-CNtBzVbj.js +0 -417
  122. package/dist/b1-vocabulary-14-CNtBzVbj.js.map +0 -1
  123. package/dist/b1-vocabulary-15-DTkPzQt9.js +0 -417
  124. package/dist/b1-vocabulary-15-DTkPzQt9.js.map +0 -1
  125. package/dist/b1-vocabulary-16-DjWPRN4R.js +0 -417
  126. package/dist/b1-vocabulary-16-DjWPRN4R.js.map +0 -1
  127. package/dist/b1-vocabulary-17-CtEw6s11.js +0 -417
  128. package/dist/b1-vocabulary-17-CtEw6s11.js.map +0 -1
  129. package/dist/b1-vocabulary-18-oHrVWgvy.js +0 -417
  130. package/dist/b1-vocabulary-18-oHrVWgvy.js.map +0 -1
  131. package/dist/b1-vocabulary-19-CJL9dY39.js +0 -417
  132. package/dist/b1-vocabulary-19-CJL9dY39.js.map +0 -1
  133. package/dist/b1-vocabulary-20-CkCK3v5F.js +0 -417
  134. package/dist/b1-vocabulary-20-CkCK3v5F.js.map +0 -1
  135. package/dist/b1-vocabulary-21-DC7mnzou.js +0 -417
  136. package/dist/b1-vocabulary-21-DC7mnzou.js.map +0 -1
  137. package/dist/b1-vocabulary-22-TA2ZbEGq.js +0 -417
  138. package/dist/b1-vocabulary-22-TA2ZbEGq.js.map +0 -1
  139. package/dist/b1-vocabulary-23-GXvUq-lw.js +0 -417
  140. package/dist/b1-vocabulary-23-GXvUq-lw.js.map +0 -1
  141. package/dist/b1-vocabulary-24-DG99cDKl.js +0 -409
  142. package/dist/b1-vocabulary-24-DG99cDKl.js.map +0 -1
  143. package/dist/basic-greetings-D6zZUiZN.js +0 -65
  144. package/dist/basic-greetings-D6zZUiZN.js.map +0 -1
  145. package/dist/body-parts-Cd5RZQ8b.js +0 -115
  146. package/dist/body-parts-Cd5RZQ8b.js.map +0 -1
  147. package/dist/clothing-CAlp3Oh2.js +0 -90
  148. package/dist/clothing-CAlp3Oh2.js.map +0 -1
  149. package/dist/colors-2SRz-V9K.js +0 -65
  150. package/dist/colors-2SRz-V9K.js.map +0 -1
  151. package/dist/emotions-CzjzZipP.js +0 -90
  152. package/dist/emotions-CzjzZipP.js.map +0 -1
  153. package/dist/family-members-DVusKf9y.js +0 -55
  154. package/dist/family-members-DVusKf9y.js.map +0 -1
  155. package/dist/food-basics-fIJkEI5s.js +0 -65
  156. package/dist/food-basics-fIJkEI5s.js.map +0 -1
  157. package/dist/index.d.ts +0 -5
  158. package/dist/index.d.ts.map +0 -1
  159. package/dist/index.js +0 -541
  160. package/dist/index.js.map +0 -1
  161. package/dist/index.test.d.ts +0 -2
  162. package/dist/index.test.d.ts.map +0 -1
  163. package/dist/json/a1/a1-vocabulary-01.json +0 -412
  164. package/dist/json/a1/a1-vocabulary-02.json +0 -412
  165. package/dist/json/a1/a1-vocabulary-03.json +0 -412
  166. package/dist/json/a1/a1-vocabulary-04.json +0 -420
  167. package/dist/json/a1/basic-greetings.json +0 -60
  168. package/dist/json/a1/colors.json +0 -60
  169. package/dist/json/a1/family-members.json +0 -50
  170. package/dist/json/a1/food-basics.json +0 -60
  171. package/dist/json/a1/numbers-1-10.json +0 -60
  172. package/dist/json/a2/a2-vocabulary-01.json +0 -412
  173. package/dist/json/a2/a2-vocabulary-02.json +0 -412
  174. package/dist/json/a2/a2-vocabulary-03.json +0 -412
  175. package/dist/json/a2/a2-vocabulary-04.json +0 -412
  176. package/dist/json/a2/a2-vocabulary-05.json +0 -412
  177. package/dist/json/a2/a2-vocabulary-06.json +0 -412
  178. package/dist/json/a2/a2-vocabulary-07.json +0 -412
  179. package/dist/json/a2/a2-vocabulary-08.json +0 -412
  180. package/dist/json/a2/a2-vocabulary-09.json +0 -412
  181. package/dist/json/a2/a2-vocabulary-10.json +0 -412
  182. package/dist/json/a2/a2-vocabulary-11.json +0 -412
  183. package/dist/json/a2/a2-vocabulary-12.json +0 -412
  184. package/dist/json/a2/body-parts.json +0 -110
  185. package/dist/json/a2/clothing.json +0 -85
  186. package/dist/json/a2/places.json +0 -85
  187. package/dist/json/b1/b1-vocabulary-01.json +0 -412
  188. package/dist/json/b1/b1-vocabulary-02.json +0 -412
  189. package/dist/json/b1/b1-vocabulary-03.json +0 -412
  190. package/dist/json/b1/b1-vocabulary-04.json +0 -412
  191. package/dist/json/b1/b1-vocabulary-05.json +0 -412
  192. package/dist/json/b1/b1-vocabulary-06.json +0 -412
  193. package/dist/json/b1/b1-vocabulary-07.json +0 -412
  194. package/dist/json/b1/b1-vocabulary-08.json +0 -412
  195. package/dist/json/b1/b1-vocabulary-09.json +0 -412
  196. package/dist/json/b1/b1-vocabulary-10.json +0 -412
  197. package/dist/json/b1/b1-vocabulary-11.json +0 -412
  198. package/dist/json/b1/b1-vocabulary-12.json +0 -412
  199. package/dist/json/b1/b1-vocabulary-13.json +0 -412
  200. package/dist/json/b1/b1-vocabulary-14.json +0 -412
  201. package/dist/json/b1/b1-vocabulary-15.json +0 -412
  202. package/dist/json/b1/b1-vocabulary-16.json +0 -412
  203. package/dist/json/b1/b1-vocabulary-17.json +0 -412
  204. package/dist/json/b1/b1-vocabulary-18.json +0 -412
  205. package/dist/json/b1/b1-vocabulary-19.json +0 -412
  206. package/dist/json/b1/b1-vocabulary-20.json +0 -412
  207. package/dist/json/b1/b1-vocabulary-21.json +0 -412
  208. package/dist/json/b1/b1-vocabulary-22.json +0 -412
  209. package/dist/json/b1/b1-vocabulary-23.json +0 -412
  210. package/dist/json/b1/b1-vocabulary-24.json +0 -404
  211. package/dist/json/b1/emotions.json +0 -85
  212. package/dist/json/b1/professions.json +0 -85
  213. package/dist/json/b1/weather.json +0 -85
  214. package/dist/json/b2/abstract-concepts.json +0 -85
  215. package/dist/json/pre-a1/survival-phrases.json +0 -100
  216. package/dist/levels/a1.d.ts +0 -10
  217. package/dist/levels/a1.d.ts.map +0 -1
  218. package/dist/levels/a1.js +0 -7
  219. package/dist/levels/a1.js.map +0 -1
  220. package/dist/numbers-1-10-3UZLCKyp.js +0 -65
  221. package/dist/numbers-1-10-3UZLCKyp.js.map +0 -1
  222. package/dist/places-CF2IKsXX.js +0 -90
  223. package/dist/places-CF2IKsXX.js.map +0 -1
  224. package/dist/professions-DtpFIeQk.js +0 -90
  225. package/dist/professions-DtpFIeQk.js.map +0 -1
  226. package/dist/survival-phrases-CiRt_AYV.js +0 -105
  227. package/dist/survival-phrases-CiRt_AYV.js.map +0 -1
  228. package/dist/weather-CeIruwIc.js +0 -90
  229. package/dist/weather-CeIruwIc.js.map +0 -1
  230. package/src/json/a1/basic-greetings.json +0 -60
  231. package/src/json/a1/colors.json +0 -60
  232. package/src/json/a1/family-members.json +0 -50
  233. package/src/json/a1/food-basics.json +0 -60
  234. package/src/json/a1/numbers-1-10.json +0 -60
  235. package/src/json/a2/body-parts.json +0 -110
  236. package/src/json/a2/clothing.json +0 -85
  237. package/src/json/a2/places.json +0 -85
  238. package/src/json/b1/emotions.json +0 -85
  239. package/src/json/b1/professions.json +0 -85
  240. package/src/json/b1/weather.json +0 -85
@@ -0,0 +1,115 @@
1
+ {
2
+ "id": "b1-weather",
3
+ "name": "Weather",
4
+ "description": "Weather and climate terms",
5
+ "examGrade": "B1",
6
+ "difficulty": "intermediate",
7
+ "category": "nature",
8
+ "words": [
9
+ {
10
+ "id": "vi:vocab:b1:weather:1",
11
+ "word": "thời tiết",
12
+ "translation": "weather",
13
+ "partOfSpeech": "noun",
14
+ "examGrade": "B1"
15
+ },
16
+ {
17
+ "id": "vi:vocab:b1:weather:2",
18
+ "word": "nắng",
19
+ "translation": "sunny",
20
+ "partOfSpeech": "adjective",
21
+ "examGrade": "B1"
22
+ },
23
+ {
24
+ "id": "vi:vocab:b1:weather:3",
25
+ "word": "mưa",
26
+ "translation": "rain / rainy",
27
+ "partOfSpeech": "noun / verb",
28
+ "examGrade": "B1"
29
+ },
30
+ {
31
+ "id": "vi:vocab:b1:weather:4",
32
+ "word": "gió",
33
+ "translation": "wind / windy",
34
+ "partOfSpeech": "noun",
35
+ "examGrade": "B1"
36
+ },
37
+ {
38
+ "id": "vi:vocab:b1:weather:5",
39
+ "word": "lạnh",
40
+ "translation": "cold",
41
+ "partOfSpeech": "adjective",
42
+ "examGrade": "B1"
43
+ },
44
+ {
45
+ "id": "vi:vocab:b1:weather:6",
46
+ "word": "nóng",
47
+ "translation": "hot",
48
+ "partOfSpeech": "adjective",
49
+ "examGrade": "B1"
50
+ },
51
+ {
52
+ "id": "vi:vocab:b1:weather:7",
53
+ "word": "ấm",
54
+ "translation": "warm",
55
+ "partOfSpeech": "adjective",
56
+ "examGrade": "B1"
57
+ },
58
+ {
59
+ "id": "vi:vocab:b1:weather:8",
60
+ "word": "mát",
61
+ "translation": "cool",
62
+ "partOfSpeech": "adjective",
63
+ "examGrade": "B1"
64
+ },
65
+ {
66
+ "id": "vi:vocab:b1:weather:9",
67
+ "word": "bão",
68
+ "translation": "storm / typhoon",
69
+ "partOfSpeech": "noun",
70
+ "examGrade": "B1"
71
+ },
72
+ {
73
+ "id": "vi:vocab:b1:weather:10",
74
+ "word": "tuyết",
75
+ "translation": "snow",
76
+ "partOfSpeech": "noun",
77
+ "examGrade": "B1"
78
+ },
79
+ {
80
+ "id": "vi:vocab:b1:weather:11",
81
+ "word": "sương mù",
82
+ "translation": "fog / foggy",
83
+ "partOfSpeech": "noun",
84
+ "examGrade": "B1"
85
+ },
86
+ {
87
+ "id": "vi:vocab:b1:weather:12",
88
+ "word": "mây",
89
+ "translation": "cloud / cloudy",
90
+ "partOfSpeech": "noun",
91
+ "examGrade": "B1"
92
+ },
93
+ {
94
+ "id": "vi:vocab:b1:weather:13",
95
+ "word": "sấm",
96
+ "translation": "thunder",
97
+ "partOfSpeech": "noun",
98
+ "examGrade": "B1"
99
+ },
100
+ {
101
+ "id": "vi:vocab:b1:weather:14",
102
+ "word": "sét",
103
+ "translation": "lightning",
104
+ "partOfSpeech": "noun",
105
+ "examGrade": "B1"
106
+ },
107
+ {
108
+ "id": "vi:vocab:b1:weather:15",
109
+ "word": "lũ lụt",
110
+ "translation": "flood",
111
+ "partOfSpeech": "noun",
112
+ "examGrade": "B1"
113
+ }
114
+ ]
115
+ }
@@ -1,85 +1,115 @@
1
1
  {
2
2
  "id": "b2-abstract-concepts",
3
3
  "name": "Abstract Concepts",
4
- "desc": "Abstract philosophical and social concepts",
5
- "cat": "abstract",
6
- "level": "B2",
4
+ "description": "Abstract philosophical and social concepts",
5
+ "examGrade": "B2",
7
6
  "difficulty": "advanced",
7
+ "category": "abstract",
8
8
  "words": [
9
9
  {
10
+ "id": "vi:vocab:b2:abstract-concepts:1",
10
11
  "word": "tự do",
11
12
  "translation": "freedom / liberty",
12
- "partOfSpeech": "noun"
13
+ "partOfSpeech": "noun",
14
+ "examGrade": "B2"
13
15
  },
14
16
  {
17
+ "id": "vi:vocab:b2:abstract-concepts:2",
15
18
  "word": "hòa bình",
16
19
  "translation": "peace",
17
- "partOfSpeech": "noun"
20
+ "partOfSpeech": "noun",
21
+ "examGrade": "B2"
18
22
  },
19
23
  {
24
+ "id": "vi:vocab:b2:abstract-concepts:3",
20
25
  "word": "công bằng",
21
26
  "translation": "justice / fairness",
22
- "partOfSpeech": "noun / adjective"
27
+ "partOfSpeech": "noun / adjective",
28
+ "examGrade": "B2"
23
29
  },
24
30
  {
31
+ "id": "vi:vocab:b2:abstract-concepts:4",
25
32
  "word": "sự thật",
26
33
  "translation": "truth",
27
- "partOfSpeech": "noun"
34
+ "partOfSpeech": "noun",
35
+ "examGrade": "B2"
28
36
  },
29
37
  {
38
+ "id": "vi:vocab:b2:abstract-concepts:5",
30
39
  "word": "niềm tin",
31
40
  "translation": "belief / faith",
32
- "partOfSpeech": "noun"
41
+ "partOfSpeech": "noun",
42
+ "examGrade": "B2"
33
43
  },
34
44
  {
45
+ "id": "vi:vocab:b2:abstract-concepts:6",
35
46
  "word": "hy vọng",
36
47
  "translation": "hope",
37
- "partOfSpeech": "noun"
48
+ "partOfSpeech": "noun",
49
+ "examGrade": "B2"
38
50
  },
39
51
  {
52
+ "id": "vi:vocab:b2:abstract-concepts:7",
40
53
  "word": "ước mơ",
41
54
  "translation": "dream / aspiration",
42
- "partOfSpeech": "noun"
55
+ "partOfSpeech": "noun",
56
+ "examGrade": "B2"
43
57
  },
44
58
  {
59
+ "id": "vi:vocab:b2:abstract-concepts:8",
45
60
  "word": "trách nhiệm",
46
61
  "translation": "responsibility",
47
- "partOfSpeech": "noun"
62
+ "partOfSpeech": "noun",
63
+ "examGrade": "B2"
48
64
  },
49
65
  {
66
+ "id": "vi:vocab:b2:abstract-concepts:9",
50
67
  "word": "nghĩa vụ",
51
68
  "translation": "duty / obligation",
52
- "partOfSpeech": "noun"
69
+ "partOfSpeech": "noun",
70
+ "examGrade": "B2"
53
71
  },
54
72
  {
73
+ "id": "vi:vocab:b2:abstract-concepts:10",
55
74
  "word": "quyền lợi",
56
75
  "translation": "right / benefit",
57
- "partOfSpeech": "noun"
76
+ "partOfSpeech": "noun",
77
+ "examGrade": "B2"
58
78
  },
59
79
  {
80
+ "id": "vi:vocab:b2:abstract-concepts:11",
60
81
  "word": "dân chủ",
61
82
  "translation": "democracy",
62
- "partOfSpeech": "noun"
83
+ "partOfSpeech": "noun",
84
+ "examGrade": "B2"
63
85
  },
64
86
  {
87
+ "id": "vi:vocab:b2:abstract-concepts:12",
65
88
  "word": "độc lập",
66
89
  "translation": "independence",
67
- "partOfSpeech": "noun / adjective"
90
+ "partOfSpeech": "noun / adjective",
91
+ "examGrade": "B2"
68
92
  },
69
93
  {
94
+ "id": "vi:vocab:b2:abstract-concepts:13",
70
95
  "word": "phát triển",
71
96
  "translation": "development",
72
- "partOfSpeech": "noun / verb"
97
+ "partOfSpeech": "noun / verb",
98
+ "examGrade": "B2"
73
99
  },
74
100
  {
101
+ "id": "vi:vocab:b2:abstract-concepts:14",
75
102
  "word": "tiến bộ",
76
103
  "translation": "progress",
77
- "partOfSpeech": "noun / adjective"
104
+ "partOfSpeech": "noun / adjective",
105
+ "examGrade": "B2"
78
106
  },
79
107
  {
108
+ "id": "vi:vocab:b2:abstract-concepts:15",
80
109
  "word": "thành công",
81
110
  "translation": "success",
82
- "partOfSpeech": "noun / adjective"
111
+ "partOfSpeech": "noun / adjective",
112
+ "examGrade": "B2"
83
113
  }
84
114
  ]
85
115
  }
@@ -1,100 +1,136 @@
1
1
  {
2
2
  "id": "pre-a1-survival-phrases",
3
3
  "name": "Survival Phrases",
4
- "desc": "Essential yes/no, greetings, and basic commands",
5
- "cat": "survival",
6
- "level": "Pre-A1",
4
+ "description": "Essential yes/no, greetings, and basic commands",
5
+ "examGrade": "Pre-A1",
7
6
  "difficulty": "beginner",
7
+ "category": "survival",
8
8
  "words": [
9
9
  {
10
+ "id": "vi:vocab:pre-a1:survival-phrases:1",
10
11
  "word": "vâng",
11
12
  "translation": "Yes",
12
- "partOfSpeech": "interjection"
13
+ "partOfSpeech": "interjection",
14
+ "examGrade": "Pre-A1"
13
15
  },
14
16
  {
17
+ "id": "vi:vocab:pre-a1:survival-phrases:2",
15
18
  "word": "không",
16
19
  "translation": "No",
17
- "partOfSpeech": "interjection"
20
+ "partOfSpeech": "interjection",
21
+ "examGrade": "Pre-A1"
18
22
  },
19
23
  {
24
+ "id": "vi:vocab:pre-a1:survival-phrases:3",
20
25
  "word": "được",
21
26
  "translation": "Okay / Agreed",
22
- "partOfSpeech": "interjection"
27
+ "partOfSpeech": "interjection",
28
+ "examGrade": "Pre-A1"
23
29
  },
24
30
  {
31
+ "id": "vi:vocab:pre-a1:survival-phrases:4",
25
32
  "word": "cảm ơn",
26
33
  "translation": "Thank you",
27
- "partOfSpeech": "phrase"
34
+ "partOfSpeech": "phrase",
35
+ "examGrade": "Pre-A1"
28
36
  },
29
37
  {
38
+ "id": "vi:vocab:pre-a1:survival-phrases:5",
30
39
  "word": "xin lỗi",
31
40
  "translation": "Sorry / Excuse me",
32
- "partOfSpeech": "phrase"
41
+ "partOfSpeech": "phrase",
42
+ "examGrade": "Pre-A1"
33
43
  },
34
44
  {
45
+ "id": "vi:vocab:pre-a1:survival-phrases:6",
35
46
  "word": "xin chào",
36
47
  "translation": "Hello",
37
- "partOfSpeech": "phrase"
48
+ "partOfSpeech": "phrase",
49
+ "examGrade": "Pre-A1"
38
50
  },
39
51
  {
52
+ "id": "vi:vocab:pre-a1:survival-phrases:7",
40
53
  "word": "tạm biệt",
41
54
  "translation": "Goodbye",
42
- "partOfSpeech": "phrase"
55
+ "partOfSpeech": "phrase",
56
+ "examGrade": "Pre-A1"
43
57
  },
44
58
  {
59
+ "id": "vi:vocab:pre-a1:survival-phrases:8",
45
60
  "word": "đi",
46
61
  "translation": "Go",
47
- "partOfSpeech": "verb"
62
+ "partOfSpeech": "verb",
63
+ "examGrade": "Pre-A1"
48
64
  },
49
65
  {
66
+ "id": "vi:vocab:pre-a1:survival-phrases:9",
50
67
  "word": "đến",
51
68
  "translation": "Come",
52
- "partOfSpeech": "verb"
69
+ "partOfSpeech": "verb",
70
+ "examGrade": "Pre-A1"
53
71
  },
54
72
  {
73
+ "id": "vi:vocab:pre-a1:survival-phrases:10",
55
74
  "word": "ăn",
56
75
  "translation": "Eat",
57
- "partOfSpeech": "verb"
76
+ "partOfSpeech": "verb",
77
+ "examGrade": "Pre-A1"
58
78
  },
59
79
  {
80
+ "id": "vi:vocab:pre-a1:survival-phrases:11",
60
81
  "word": "uống",
61
82
  "translation": "Drink",
62
- "partOfSpeech": "verb"
83
+ "partOfSpeech": "verb",
84
+ "examGrade": "Pre-A1"
63
85
  },
64
86
  {
87
+ "id": "vi:vocab:pre-a1:survival-phrases:12",
65
88
  "word": "ngủ",
66
89
  "translation": "Sleep",
67
- "partOfSpeech": "verb"
90
+ "partOfSpeech": "verb",
91
+ "examGrade": "Pre-A1"
68
92
  },
69
93
  {
94
+ "id": "vi:vocab:pre-a1:survival-phrases:13",
70
95
  "word": "gì?",
71
96
  "translation": "What?",
72
- "partOfSpeech": "phrase"
97
+ "partOfSpeech": "phrase",
98
+ "examGrade": "Pre-A1"
73
99
  },
74
100
  {
101
+ "id": "vi:vocab:pre-a1:survival-phrases:14",
75
102
  "word": "ai?",
76
103
  "translation": "Who?",
77
- "partOfSpeech": "phrase"
104
+ "partOfSpeech": "phrase",
105
+ "examGrade": "Pre-A1"
78
106
  },
79
107
  {
108
+ "id": "vi:vocab:pre-a1:survival-phrases:15",
80
109
  "word": "đâu?",
81
110
  "translation": "Where?",
82
- "partOfSpeech": "phrase"
111
+ "partOfSpeech": "phrase",
112
+ "examGrade": "Pre-A1"
83
113
  },
84
114
  {
115
+ "id": "vi:vocab:pre-a1:survival-phrases:16",
85
116
  "word": "khi nào?",
86
117
  "translation": "When?",
87
- "partOfSpeech": "phrase"
118
+ "partOfSpeech": "phrase",
119
+ "examGrade": "Pre-A1"
88
120
  },
89
121
  {
122
+ "id": "vi:vocab:pre-a1:survival-phrases:17",
90
123
  "word": "tại sao?",
91
124
  "translation": "Why?",
92
- "partOfSpeech": "phrase"
125
+ "partOfSpeech": "phrase",
126
+ "examGrade": "Pre-A1"
93
127
  },
94
128
  {
129
+ "id": "vi:vocab:pre-a1:survival-phrases:18",
95
130
  "word": "như thế nào",
96
131
  "translation": "How?",
97
- "partOfSpeech": "phrase"
132
+ "partOfSpeech": "phrase",
133
+ "examGrade": "Pre-A1"
98
134
  }
99
135
  ]
100
136
  }
@@ -0,0 +1,16 @@
1
+ import { vietnameseWordListCatalog } from "../index.js";
2
+
3
+ export const a2Descriptors = vietnameseWordListCatalog.getDescriptorsByExamGrade("A2");
4
+
5
+ export {
6
+ getDescriptorById,
7
+ getDescriptorsByCategory,
8
+ getDescriptorsByDifficulty,
9
+ } from "../index.js";
10
+
11
+ export type {
12
+ ExamGrade,
13
+ WordListDifficulty,
14
+ WordListItem,
15
+ WordListSet,
16
+ } from "../index.js";
@@ -0,0 +1,16 @@
1
+ import { vietnameseWordListCatalog } from "../index.js";
2
+
3
+ export const b1Descriptors = vietnameseWordListCatalog.getDescriptorsByExamGrade("B1");
4
+
5
+ export {
6
+ getDescriptorById,
7
+ getDescriptorsByCategory,
8
+ getDescriptorsByDifficulty,
9
+ } from "../index.js";
10
+
11
+ export type {
12
+ ExamGrade,
13
+ WordListDifficulty,
14
+ WordListItem,
15
+ WordListSet,
16
+ } from "../index.js";
@@ -0,0 +1,16 @@
1
+ import { vietnameseWordListCatalog } from "../index.js";
2
+
3
+ export const b2Descriptors = vietnameseWordListCatalog.getDescriptorsByExamGrade("B2");
4
+
5
+ export {
6
+ getDescriptorById,
7
+ getDescriptorsByCategory,
8
+ getDescriptorsByDifficulty,
9
+ } from "../index.js";
10
+
11
+ export type {
12
+ ExamGrade,
13
+ WordListDifficulty,
14
+ WordListItem,
15
+ WordListSet,
16
+ } from "../index.js";
@@ -0,0 +1,16 @@
1
+ import { vietnameseWordListCatalog } from "../index.js";
2
+
3
+ export const preA1Descriptors = vietnameseWordListCatalog.getDescriptorsByExamGrade("Pre-A1");
4
+
5
+ export {
6
+ getDescriptorById,
7
+ getDescriptorsByCategory,
8
+ getDescriptorsByDifficulty,
9
+ } from "../index.js";
10
+
11
+ export type {
12
+ ExamGrade,
13
+ WordListDifficulty,
14
+ WordListItem,
15
+ WordListSet,
16
+ } from "../index.js";
package/src/vocab.ts ADDED
@@ -0,0 +1,28 @@
1
+ import { vietnameseWordListCatalog } from "./index.js";
2
+ import type { WordListItem } from "@syllst/word-lists";
3
+
4
+ export type VocabEntry = WordListItem & { id: string };
5
+
6
+ export async function getVocabById(id: string): Promise<VocabEntry | undefined> {
7
+ for (const descriptor of vietnameseWordListCatalog.descriptors) {
8
+ const set = await descriptor.load();
9
+ const word = set.words.find((w) => w.id === id);
10
+ if (word?.id) return word as VocabEntry;
11
+ }
12
+ return undefined;
13
+ }
14
+
15
+ export async function getAllVocabEntries(): Promise<VocabEntry[]> {
16
+ const seen = new Set<string>();
17
+ const entries: VocabEntry[] = [];
18
+ for (const descriptor of vietnameseWordListCatalog.descriptors) {
19
+ const set = await descriptor.load();
20
+ for (const word of set.words) {
21
+ if (word.id && !seen.has(word.id)) {
22
+ seen.add(word.id);
23
+ entries.push(word as VocabEntry);
24
+ }
25
+ }
26
+ }
27
+ return entries;
28
+ }