shevchenko 2.1.3 → 3.0.0-rc.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 (468) hide show
  1. package/.github/workflows/npm-publish.yml +36 -0
  2. package/README.md +8 -7
  3. package/dist/cjs/anthroponym-declension/anthroponym-inflector.js +39 -0
  4. package/dist/cjs/anthroponym-declension/anthroponym-inflector.js.map +1 -0
  5. package/dist/cjs/anthroponym-declension/family-name-inflector.js +69 -0
  6. package/dist/cjs/anthroponym-declension/family-name-inflector.js.map +1 -0
  7. package/dist/cjs/anthroponym-declension/given-name-inflector.js +40 -0
  8. package/dist/cjs/anthroponym-declension/given-name-inflector.js.map +1 -0
  9. package/dist/cjs/anthroponym-declension/name-inflector.js +30 -0
  10. package/dist/cjs/anthroponym-declension/name-inflector.js.map +1 -0
  11. package/dist/cjs/anthroponym-declension/patronymic-name-inflector.js +40 -0
  12. package/dist/cjs/anthroponym-declension/patronymic-name-inflector.js.map +1 -0
  13. package/dist/cjs/bootstrap.js +29 -0
  14. package/dist/cjs/bootstrap.js.map +1 -0
  15. package/dist/cjs/gender-detection/detect-gender.js +55 -0
  16. package/dist/cjs/gender-detection/detect-gender.js.map +1 -0
  17. package/dist/cjs/gender-detection/given-names-genders.json.js +1158 -0
  18. package/dist/cjs/gender-detection/given-names-genders.json.js.map +1 -0
  19. package/dist/cjs/index.js +36 -0
  20. package/dist/cjs/index.js.map +1 -0
  21. package/dist/cjs/input-validation.js +83 -0
  22. package/dist/cjs/input-validation.js.map +1 -0
  23. package/dist/cjs/language/alphabet.js +54 -0
  24. package/dist/cjs/language/alphabet.js.map +1 -0
  25. package/dist/cjs/language/grammatical-case.js +27 -0
  26. package/dist/cjs/language/grammatical-case.js.map +1 -0
  27. package/dist/cjs/language/grammatical-gender.js +22 -0
  28. package/dist/cjs/language/grammatical-gender.js.map +1 -0
  29. package/dist/cjs/language/letter-case.js +49 -0
  30. package/dist/cjs/language/letter-case.js.map +1 -0
  31. package/dist/cjs/language/linguistics.js +35 -0
  32. package/dist/cjs/language/linguistics.js.map +1 -0
  33. package/dist/cjs/language/word-class.js +22 -0
  34. package/dist/cjs/language/word-class.js.map +1 -0
  35. package/dist/cjs/shevchenko.js +67 -154555
  36. package/dist/cjs/shevchenko.js.map +1 -1
  37. package/dist/cjs/word-class-recognition/artifacts/model.bundle.json.js +199 -0
  38. package/dist/cjs/word-class-recognition/artifacts/model.bundle.json.js.map +1 -0
  39. package/dist/cjs/word-class-recognition/cache/incorrect-predictions.json.js +1459 -0
  40. package/dist/cjs/word-class-recognition/cache/incorrect-predictions.json.js.map +1 -0
  41. package/dist/cjs/word-class-recognition/model-bundle-loader.js +74 -0
  42. package/dist/cjs/word-class-recognition/model-bundle-loader.js.map +1 -0
  43. package/dist/cjs/word-class-recognition/model-config.js +20 -0
  44. package/dist/cjs/word-class-recognition/model-config.js.map +1 -0
  45. package/dist/cjs/word-class-recognition/word-class-recognizer.js +76 -0
  46. package/dist/cjs/word-class-recognition/word-class-recognizer.js.map +1 -0
  47. package/dist/cjs/word-class-recognition/word-class-transformer.js +52 -0
  48. package/dist/cjs/word-class-recognition/word-class-transformer.js.map +1 -0
  49. package/dist/cjs/word-class-recognition/word-transformer.js +37 -0
  50. package/dist/cjs/word-class-recognition/word-transformer.js.map +1 -0
  51. package/dist/cjs/word-declension/append-command-runner.js +28 -0
  52. package/dist/cjs/word-declension/append-command-runner.js.map +1 -0
  53. package/dist/cjs/word-declension/command-runner-factory.js +38 -0
  54. package/dist/cjs/word-declension/command-runner-factory.js.map +1 -0
  55. package/dist/cjs/word-declension/declension-rule-inflector.js +65 -0
  56. package/dist/cjs/word-declension/declension-rule-inflector.js.map +1 -0
  57. package/dist/cjs/word-declension/declension-rule-matchers.js +43 -0
  58. package/dist/cjs/word-declension/declension-rule-matchers.js.map +1 -0
  59. package/dist/cjs/word-declension/declension-rules.json.js +7405 -0
  60. package/dist/cjs/word-declension/declension-rules.json.js.map +1 -0
  61. package/dist/cjs/word-declension/declension-types.js +24 -0
  62. package/dist/cjs/word-declension/declension-types.js.map +1 -0
  63. package/dist/cjs/word-declension/index.js +28 -0
  64. package/dist/cjs/word-declension/index.js.map +1 -0
  65. package/dist/cjs/word-declension/replace-command-runner.js +28 -0
  66. package/dist/cjs/word-declension/replace-command-runner.js.map +1 -0
  67. package/dist/es/anthroponym-declension/anthroponym-inflector.d.ts +16 -0
  68. package/dist/es/anthroponym-declension/anthroponym-inflector.d.ts.map +1 -0
  69. package/dist/es/anthroponym-declension/anthroponym-inflector.js +35 -0
  70. package/dist/es/anthroponym-declension/anthroponym-inflector.js.map +1 -0
  71. package/dist/es/anthroponym-declension/anthroponym.d.ts +6 -0
  72. package/dist/es/anthroponym-declension/anthroponym.d.ts.map +1 -0
  73. package/dist/es/anthroponym-declension/family-name-inflector.d.ts +14 -0
  74. package/dist/es/anthroponym-declension/family-name-inflector.d.ts.map +1 -0
  75. package/dist/es/anthroponym-declension/family-name-inflector.js +65 -0
  76. package/dist/es/anthroponym-declension/family-name-inflector.js.map +1 -0
  77. package/dist/es/anthroponym-declension/given-name-inflector.d.ts +12 -0
  78. package/dist/es/anthroponym-declension/given-name-inflector.d.ts.map +1 -0
  79. package/dist/es/anthroponym-declension/given-name-inflector.js +36 -0
  80. package/dist/es/anthroponym-declension/given-name-inflector.js.map +1 -0
  81. package/dist/es/anthroponym-declension/index.d.ts +6 -0
  82. package/dist/es/anthroponym-declension/index.d.ts.map +1 -0
  83. package/dist/es/anthroponym-declension/name-inflector.d.ts +12 -0
  84. package/dist/es/anthroponym-declension/name-inflector.d.ts.map +1 -0
  85. package/dist/es/anthroponym-declension/name-inflector.js +26 -0
  86. package/dist/es/anthroponym-declension/name-inflector.js.map +1 -0
  87. package/dist/es/anthroponym-declension/patronymic-name-inflector.d.ts +12 -0
  88. package/dist/es/anthroponym-declension/patronymic-name-inflector.d.ts.map +1 -0
  89. package/dist/es/anthroponym-declension/patronymic-name-inflector.js +36 -0
  90. package/dist/es/anthroponym-declension/patronymic-name-inflector.js.map +1 -0
  91. package/dist/es/bootstrap.d.ts +4 -0
  92. package/dist/{types → es}/bootstrap.d.ts.map +1 -1
  93. package/dist/es/bootstrap.js +25 -0
  94. package/dist/es/bootstrap.js.map +1 -0
  95. package/dist/es/contracts.d.ts +21 -0
  96. package/dist/es/contracts.d.ts.map +1 -0
  97. package/dist/es/gender-detection/detect-gender.d.ts +11 -0
  98. package/dist/es/gender-detection/detect-gender.d.ts.map +1 -0
  99. package/dist/es/gender-detection/detect-gender.js +51 -0
  100. package/dist/es/gender-detection/detect-gender.js.map +1 -0
  101. package/dist/es/gender-detection/detect-gender.test.d.ts +2 -0
  102. package/dist/es/gender-detection/detect-gender.test.d.ts.map +1 -0
  103. package/dist/es/gender-detection/given-names-genders.json.js +1156 -0
  104. package/dist/es/gender-detection/given-names-genders.json.js.map +1 -0
  105. package/dist/es/gender-detection/index.d.ts +2 -0
  106. package/dist/es/gender-detection/index.d.ts.map +1 -0
  107. package/dist/es/index.d.ts +2 -0
  108. package/dist/es/index.d.ts.map +1 -0
  109. package/dist/es/index.js +13 -0
  110. package/dist/es/index.js.map +1 -0
  111. package/dist/es/input-validation.d.ts +14 -0
  112. package/dist/es/input-validation.d.ts.map +1 -0
  113. package/dist/es/input-validation.js +78 -0
  114. package/dist/es/input-validation.js.map +1 -0
  115. package/dist/es/input-validation.test.d.ts +2 -0
  116. package/dist/es/input-validation.test.d.ts.map +1 -0
  117. package/dist/es/language/alphabet.d.ts +48 -0
  118. package/dist/es/language/alphabet.d.ts.map +1 -0
  119. package/dist/es/language/alphabet.js +52 -0
  120. package/dist/es/language/alphabet.js.map +1 -0
  121. package/dist/es/language/grammatical-case.d.ts +13 -0
  122. package/dist/es/language/grammatical-case.d.ts.map +1 -0
  123. package/dist/es/language/grammatical-case.js +25 -0
  124. package/dist/es/language/grammatical-case.js.map +1 -0
  125. package/dist/es/language/grammatical-gender.d.ts +8 -0
  126. package/dist/es/language/grammatical-gender.d.ts.map +1 -0
  127. package/dist/es/language/grammatical-gender.js +20 -0
  128. package/dist/es/language/grammatical-gender.js.map +1 -0
  129. package/dist/es/language/index.d.ts +7 -0
  130. package/dist/es/language/index.d.ts.map +1 -0
  131. package/dist/es/language/letter-case.d.ts +6 -0
  132. package/dist/es/language/letter-case.d.ts.map +1 -0
  133. package/dist/es/language/letter-case.js +45 -0
  134. package/dist/es/language/letter-case.js.map +1 -0
  135. package/dist/es/language/letter-case.test.d.ts +2 -0
  136. package/dist/es/language/letter-case.test.d.ts.map +1 -0
  137. package/dist/es/language/linguistics.d.ts +7 -0
  138. package/dist/es/language/linguistics.d.ts.map +1 -0
  139. package/dist/es/language/linguistics.js +30 -0
  140. package/dist/es/language/linguistics.js.map +1 -0
  141. package/dist/es/language/linguistics.test.d.ts +2 -0
  142. package/dist/es/language/linguistics.test.d.ts.map +1 -0
  143. package/dist/es/language/word-class.d.ts +8 -0
  144. package/dist/es/language/word-class.d.ts.map +1 -0
  145. package/dist/es/language/word-class.js +20 -0
  146. package/dist/es/language/word-class.js.map +1 -0
  147. package/dist/es/shevchenko.d.ts +54 -0
  148. package/dist/es/shevchenko.d.ts.map +1 -0
  149. package/dist/es/shevchenko.js +60 -154480
  150. package/dist/es/shevchenko.js.map +1 -1
  151. package/dist/es/word-class-recognition/artifacts/model.bundle.json.js +190 -0
  152. package/dist/es/word-class-recognition/artifacts/model.bundle.json.js.map +1 -0
  153. package/dist/es/word-class-recognition/cache/incorrect-predictions.json.js +1457 -0
  154. package/dist/es/word-class-recognition/cache/incorrect-predictions.json.js.map +1 -0
  155. package/dist/es/word-class-recognition/data.utils.d.ts +16 -0
  156. package/dist/es/word-class-recognition/data.utils.d.ts.map +1 -0
  157. package/dist/es/word-class-recognition/index.d.ts +3 -0
  158. package/dist/es/word-class-recognition/index.d.ts.map +1 -0
  159. package/dist/es/word-class-recognition/model-bundle-loader.d.ts +15 -0
  160. package/dist/es/word-class-recognition/model-bundle-loader.d.ts.map +1 -0
  161. package/dist/es/word-class-recognition/model-bundle-loader.js +69 -0
  162. package/dist/es/word-class-recognition/model-bundle-loader.js.map +1 -0
  163. package/dist/es/word-class-recognition/model-bundle-saver.d.ts +12 -0
  164. package/dist/es/word-class-recognition/model-bundle-saver.d.ts.map +1 -0
  165. package/dist/es/word-class-recognition/model-config.d.ts +5 -0
  166. package/dist/es/word-class-recognition/model-config.d.ts.map +1 -0
  167. package/dist/es/word-class-recognition/model-config.js +16 -0
  168. package/dist/es/word-class-recognition/model-config.js.map +1 -0
  169. package/dist/es/word-class-recognition/scripts/cache-incorrect-predictions.d.ts +2 -0
  170. package/dist/es/word-class-recognition/scripts/cache-incorrect-predictions.d.ts.map +1 -0
  171. package/dist/es/word-class-recognition/scripts/train-model.d.ts +7 -0
  172. package/dist/es/word-class-recognition/scripts/train-model.d.ts.map +1 -0
  173. package/dist/es/word-class-recognition/word-class-recognizer.d.ts +18 -0
  174. package/dist/es/word-class-recognition/word-class-recognizer.d.ts.map +1 -0
  175. package/dist/es/word-class-recognition/word-class-recognizer.js +52 -0
  176. package/dist/es/word-class-recognition/word-class-recognizer.js.map +1 -0
  177. package/dist/es/word-class-recognition/word-class-transformer.d.ts +6 -0
  178. package/dist/es/word-class-recognition/word-class-transformer.d.ts.map +1 -0
  179. package/dist/es/word-class-recognition/word-class-transformer.js +48 -0
  180. package/dist/es/word-class-recognition/word-class-transformer.js.map +1 -0
  181. package/dist/es/word-class-recognition/word-class-transformer.test.d.ts +2 -0
  182. package/dist/es/word-class-recognition/word-class-transformer.test.d.ts.map +1 -0
  183. package/dist/es/word-class-recognition/word-transformer.d.ts +7 -0
  184. package/dist/es/word-class-recognition/word-transformer.d.ts.map +1 -0
  185. package/dist/es/word-class-recognition/word-transformer.js +33 -0
  186. package/dist/es/word-class-recognition/word-transformer.js.map +1 -0
  187. package/dist/es/word-class-recognition/word-transformer.test.d.ts +2 -0
  188. package/dist/es/word-class-recognition/word-transformer.test.d.ts.map +1 -0
  189. package/dist/es/word-declension/append-command-runner.d.ts +12 -0
  190. package/dist/es/word-declension/append-command-runner.d.ts.map +1 -0
  191. package/dist/es/word-declension/append-command-runner.js +24 -0
  192. package/dist/es/word-declension/append-command-runner.js.map +1 -0
  193. package/dist/es/word-declension/command-runner-factory.d.ts +9 -0
  194. package/dist/es/word-declension/command-runner-factory.d.ts.map +1 -0
  195. package/dist/es/word-declension/command-runner-factory.js +34 -0
  196. package/dist/es/word-declension/command-runner-factory.js.map +1 -0
  197. package/dist/es/word-declension/declension-rule-inflector.d.ts +16 -0
  198. package/dist/es/word-declension/declension-rule-inflector.d.ts.map +1 -0
  199. package/dist/es/word-declension/declension-rule-inflector.js +60 -0
  200. package/dist/es/word-declension/declension-rule-inflector.js.map +1 -0
  201. package/dist/es/word-declension/declension-rule-matchers.d.ts +19 -0
  202. package/dist/es/word-declension/declension-rule-matchers.d.ts.map +1 -0
  203. package/dist/es/word-declension/declension-rule-matchers.js +36 -0
  204. package/dist/es/word-declension/declension-rule-matchers.js.map +1 -0
  205. package/dist/es/word-declension/declension-rules.json.js +7403 -0
  206. package/dist/es/word-declension/declension-rules.json.js.map +1 -0
  207. package/dist/es/word-declension/declension-types.d.ts +36 -0
  208. package/dist/es/word-declension/declension-types.d.ts.map +1 -0
  209. package/dist/es/word-declension/declension-types.js +22 -0
  210. package/dist/es/word-declension/declension-types.js.map +1 -0
  211. package/dist/es/word-declension/index.d.ts +7 -0
  212. package/dist/es/word-declension/index.d.ts.map +1 -0
  213. package/dist/es/word-declension/index.js +20 -0
  214. package/dist/es/word-declension/index.js.map +1 -0
  215. package/dist/es/word-declension/inflection-command-runner.d.ts +4 -0
  216. package/dist/es/word-declension/inflection-command-runner.d.ts.map +1 -0
  217. package/dist/es/word-declension/replace-command-runner.d.ts +12 -0
  218. package/dist/es/word-declension/replace-command-runner.d.ts.map +1 -0
  219. package/dist/es/word-declension/replace-command-runner.js +24 -0
  220. package/dist/es/word-declension/replace-command-runner.js.map +1 -0
  221. package/dist/es/word-declension/scripts/load-declension-rules.d.ts +2 -0
  222. package/dist/es/word-declension/scripts/load-declension-rules.d.ts.map +1 -0
  223. package/dist/umd/shevchenko.min.js +4680 -68
  224. package/dist/umd/shevchenko.min.js.map +1 -1
  225. package/package.json +38 -37
  226. package/src/anthroponym-declension/README.md +3 -0
  227. package/src/anthroponym-declension/anthroponym-inflector.ts +58 -0
  228. package/src/anthroponym-declension/anthroponym.ts +5 -0
  229. package/src/anthroponym-declension/family-name-inflector.ts +75 -0
  230. package/src/anthroponym-declension/given-name-inflector.ts +38 -0
  231. package/src/anthroponym-declension/index.ts +5 -0
  232. package/src/anthroponym-declension/name-inflector.ts +38 -0
  233. package/src/anthroponym-declension/patronymic-name-inflector.ts +38 -0
  234. package/src/bootstrap.ts +20 -47
  235. package/src/contracts.ts +22 -0
  236. package/src/gender-detection/README.md +5 -0
  237. package/src/gender-detection/detect-gender.ts +43 -0
  238. package/src/gender-detection/given-names-genders.json +1144 -0
  239. package/src/gender-detection/index.ts +1 -0
  240. package/src/index.ts +1 -0
  241. package/src/input-validation.ts +80 -0
  242. package/src/language/README.md +3 -0
  243. package/src/language/alphabet.ts +49 -0
  244. package/src/language/grammatical-case.ts +12 -0
  245. package/src/language/grammatical-gender.ts +7 -0
  246. package/src/language/index.ts +6 -0
  247. package/src/language/letter-case.ts +35 -0
  248. package/src/language/linguistics.ts +20 -0
  249. package/src/language/word-class.ts +7 -0
  250. package/src/shevchenko.ts +65 -33
  251. package/src/word-class-recognition/README.md +5 -0
  252. package/src/word-class-recognition/artifacts/model.bundle.json +7 -0
  253. package/src/word-class-recognition/artifacts/model.json +1 -0
  254. package/src/word-class-recognition/artifacts/weights.bin +0 -0
  255. package/src/word-class-recognition/cache/incorrect-predictions.json +1445 -0
  256. package/src/word-class-recognition/data.utils.ts +57 -0
  257. package/src/word-class-recognition/index.ts +2 -0
  258. package/src/word-class-recognition/model-bundle-loader.ts +73 -0
  259. package/src/word-class-recognition/model-bundle-saver.ts +105 -0
  260. package/src/word-class-recognition/model-config.ts +4 -0
  261. package/src/word-class-recognition/scripts/cache-incorrect-predictions.ts +46 -0
  262. package/src/word-class-recognition/scripts/train-model.ts +95 -0
  263. package/src/word-class-recognition/word-class-recognizer.ts +54 -0
  264. package/src/word-class-recognition/word-class-transformer.ts +38 -0
  265. package/src/word-class-recognition/word-transformer.ts +23 -0
  266. package/src/word-declension/README.md +3 -0
  267. package/src/word-declension/append-command-runner.ts +18 -0
  268. package/src/word-declension/command-runner-factory.ts +23 -0
  269. package/src/{anthroponym-inflection/rule-inflector.ts → word-declension/declension-rule-inflector.ts} +17 -7
  270. package/src/word-declension/declension-rule-matchers.ts +30 -0
  271. package/src/{resources/inflector/rules.json → word-declension/declension-rules.json} +1119 -1119
  272. package/src/word-declension/declension-types.ts +41 -0
  273. package/src/word-declension/index.ts +9 -0
  274. package/src/word-declension/inflection-command-runner.ts +3 -0
  275. package/src/word-declension/replace-command-runner.ts +18 -0
  276. package/src/word-declension/scripts/load-declension-rules.ts +14 -0
  277. package/dist/types/anthroponym-inflection/anthroponym-inflector.d.ts +0 -15
  278. package/dist/types/anthroponym-inflection/anthroponym-inflector.d.ts.map +0 -1
  279. package/dist/types/anthroponym-inflection/append-command-runner.d.ts +0 -12
  280. package/dist/types/anthroponym-inflection/append-command-runner.d.ts.map +0 -1
  281. package/dist/types/anthroponym-inflection/command-runner-factory.d.ts +0 -9
  282. package/dist/types/anthroponym-inflection/command-runner-factory.d.ts.map +0 -1
  283. package/dist/types/anthroponym-inflection/first-name-inflector.d.ts +0 -12
  284. package/dist/types/anthroponym-inflection/first-name-inflector.d.ts.map +0 -1
  285. package/dist/types/anthroponym-inflection/index.d.ts +0 -6
  286. package/dist/types/anthroponym-inflection/index.d.ts.map +0 -1
  287. package/dist/types/anthroponym-inflection/inflector-command-runner.d.ts +0 -4
  288. package/dist/types/anthroponym-inflection/inflector-command-runner.d.ts.map +0 -1
  289. package/dist/types/anthroponym-inflection/inflector.types.d.ts +0 -37
  290. package/dist/types/anthroponym-inflection/inflector.types.d.ts.map +0 -1
  291. package/dist/types/anthroponym-inflection/last-name-inflector.d.ts +0 -14
  292. package/dist/types/anthroponym-inflection/last-name-inflector.d.ts.map +0 -1
  293. package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts +0 -12
  294. package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts.map +0 -1
  295. package/dist/types/anthroponym-inflection/name-inflector.d.ts +0 -12
  296. package/dist/types/anthroponym-inflection/name-inflector.d.ts.map +0 -1
  297. package/dist/types/anthroponym-inflection/replace-command-runner.d.ts +0 -12
  298. package/dist/types/anthroponym-inflection/replace-command-runner.d.ts.map +0 -1
  299. package/dist/types/anthroponym-inflection/rule-inflector.d.ts +0 -12
  300. package/dist/types/anthroponym-inflection/rule-inflector.d.ts.map +0 -1
  301. package/dist/types/bootstrap.d.ts +0 -4
  302. package/dist/types/core/anthroponym.interface.d.ts +0 -8
  303. package/dist/types/core/anthroponym.interface.d.ts.map +0 -1
  304. package/dist/types/core/gender.enum.d.ts +0 -5
  305. package/dist/types/core/gender.enum.d.ts.map +0 -1
  306. package/dist/types/core/grammatical-case.enum.d.ts +0 -10
  307. package/dist/types/core/grammatical-case.enum.d.ts.map +0 -1
  308. package/dist/types/core/index.d.ts +0 -5
  309. package/dist/types/core/index.d.ts.map +0 -1
  310. package/dist/types/core/validator.d.ts +0 -8
  311. package/dist/types/core/validator.d.ts.map +0 -1
  312. package/dist/types/internal.d.ts +0 -2
  313. package/dist/types/internal.d.ts.map +0 -1
  314. package/dist/types/part-of-speech-recognition/index.d.ts +0 -6
  315. package/dist/types/part-of-speech-recognition/index.d.ts.map +0 -1
  316. package/dist/types/part-of-speech-recognition/neural-network-config.d.ts +0 -6
  317. package/dist/types/part-of-speech-recognition/neural-network-config.d.ts.map +0 -1
  318. package/dist/types/part-of-speech-recognition/neural-network-training-data.d.ts +0 -5
  319. package/dist/types/part-of-speech-recognition/neural-network-training-data.d.ts.map +0 -1
  320. package/dist/types/part-of-speech-recognition/neural-network.d.ts +0 -28
  321. package/dist/types/part-of-speech-recognition/neural-network.d.ts.map +0 -1
  322. package/dist/types/part-of-speech-recognition/part-of-speech-decoder.d.ts +0 -9
  323. package/dist/types/part-of-speech-recognition/part-of-speech-decoder.d.ts.map +0 -1
  324. package/dist/types/part-of-speech-recognition/part-of-speech-encoder.d.ts +0 -10
  325. package/dist/types/part-of-speech-recognition/part-of-speech-encoder.d.ts.map +0 -1
  326. package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts +0 -19
  327. package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts.map +0 -1
  328. package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts +0 -14
  329. package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts.map +0 -1
  330. package/dist/types/part-of-speech-recognition/part-of-speech.enum.d.ts +0 -5
  331. package/dist/types/part-of-speech-recognition/part-of-speech.enum.d.ts.map +0 -1
  332. package/dist/types/part-of-speech-recognition/word-encoder.d.ts +0 -9
  333. package/dist/types/part-of-speech-recognition/word-encoder.d.ts.map +0 -1
  334. package/dist/types/part-of-speech-recognition/word-transformer.d.ts +0 -7
  335. package/dist/types/part-of-speech-recognition/word-transformer.d.ts.map +0 -1
  336. package/dist/types/shevchenko.d.ts +0 -32
  337. package/dist/types/shevchenko.d.ts.map +0 -1
  338. package/dist/types/utils/lang.utils.d.ts +0 -7
  339. package/dist/types/utils/lang.utils.d.ts.map +0 -1
  340. package/dist/types/utils/regexp.utils.d.ts +0 -5
  341. package/dist/types/utils/regexp.utils.d.ts.map +0 -1
  342. package/dist/types/utils/string.utils.d.ts +0 -14
  343. package/dist/types/utils/string.utils.d.ts.map +0 -1
  344. package/nuxt/.eslintrc.json +0 -27
  345. package/nuxt/.prettierrc.json +0 -6
  346. package/nuxt/README.md +0 -27
  347. package/nuxt/app.config.ts +0 -3
  348. package/nuxt/app.vue +0 -5
  349. package/nuxt/assets/img/shevchenko_pixelized_304x304.jpg +0 -0
  350. package/nuxt/assets/img/shevchenko_pixelized_304x304.png +0 -0
  351. package/nuxt/assets/img/shevchenko_pixelized_608x608.jpg +0 -0
  352. package/nuxt/assets/style/main.scss +0 -3
  353. package/nuxt/components/about-modal.vue +0 -58
  354. package/nuxt/components/api-spec.vue +0 -25
  355. package/nuxt/components/contact-me-button.vue +0 -11
  356. package/nuxt/components/contact-me-modal.vue +0 -63
  357. package/nuxt/components/copy-button.vue +0 -38
  358. package/nuxt/components/declension-demo.vue +0 -38
  359. package/nuxt/components/declension-form.vue +0 -158
  360. package/nuxt/components/declension-preview.vue +0 -170
  361. package/nuxt/components/declension-results.vue +0 -135
  362. package/nuxt/components/error-404.vue +0 -15
  363. package/nuxt/components/github-issue-count.vue +0 -18
  364. package/nuxt/components/how-it-works.vue +0 -51
  365. package/nuxt/components/installation-instructions.vue +0 -33
  366. package/nuxt/components/library-docs.vue +0 -27
  367. package/nuxt/components/page-copyright.vue +0 -15
  368. package/nuxt/components/page-footer.vue +0 -32
  369. package/nuxt/components/page-header.vue +0 -4
  370. package/nuxt/components/preview-banner.vue +0 -32
  371. package/nuxt/components/share-links.vue +0 -108
  372. package/nuxt/components/top-nav-bar.vue +0 -165
  373. package/nuxt/components/ukrainian-flag.vue +0 -37
  374. package/nuxt/components/usage-example.vue +0 -32
  375. package/nuxt/composables/declension.ts +0 -124
  376. package/nuxt/composables/page-i18n.ts +0 -11
  377. package/nuxt/composables/page-meta.ts +0 -5
  378. package/nuxt/composables/route-utils.ts +0 -17
  379. package/nuxt/config.ts +0 -20
  380. package/nuxt/data/female-first-names.json +0 -556
  381. package/nuxt/data/male-first-names.json +0 -603
  382. package/nuxt/error.vue +0 -25
  383. package/nuxt/layouts/default.vue +0 -5
  384. package/nuxt/locales/en-US.json +0 -63
  385. package/nuxt/locales/uk-UA.json +0 -65
  386. package/nuxt/nuxt.config.ts +0 -99
  387. package/nuxt/package-lock.json +0 -19524
  388. package/nuxt/package.json +0 -37
  389. package/nuxt/pages/en-US/index.vue +0 -41
  390. package/nuxt/pages/index.vue +0 -68
  391. package/nuxt/plugins/i18n.ts +0 -26
  392. package/nuxt/public/.nojekyll +0 -0
  393. package/nuxt/public/CNAME +0 -1
  394. package/nuxt/public/android-icon-144x144.png +0 -0
  395. package/nuxt/public/android-icon-192x192.png +0 -0
  396. package/nuxt/public/android-icon-36x36.png +0 -0
  397. package/nuxt/public/android-icon-48x48.png +0 -0
  398. package/nuxt/public/android-icon-72x72.png +0 -0
  399. package/nuxt/public/android-icon-96x96.png +0 -0
  400. package/nuxt/public/apple-icon-114x114.png +0 -0
  401. package/nuxt/public/apple-icon-120x120.png +0 -0
  402. package/nuxt/public/apple-icon-144x144.png +0 -0
  403. package/nuxt/public/apple-icon-152x152.png +0 -0
  404. package/nuxt/public/apple-icon-180x180.png +0 -0
  405. package/nuxt/public/apple-icon-57x57.png +0 -0
  406. package/nuxt/public/apple-icon-60x60.png +0 -0
  407. package/nuxt/public/apple-icon-72x72.png +0 -0
  408. package/nuxt/public/apple-icon-76x76.png +0 -0
  409. package/nuxt/public/apple-icon-precomposed.png +0 -0
  410. package/nuxt/public/apple-icon.png +0 -0
  411. package/nuxt/public/browserconfig.xml +0 -2
  412. package/nuxt/public/favicon-16x16.png +0 -0
  413. package/nuxt/public/favicon-32x32.png +0 -0
  414. package/nuxt/public/favicon-96x96.png +0 -0
  415. package/nuxt/public/favicon.ico +0 -0
  416. package/nuxt/public/manifest.json +0 -41
  417. package/nuxt/public/ms-icon-144x144.png +0 -0
  418. package/nuxt/public/ms-icon-150x150.png +0 -0
  419. package/nuxt/public/ms-icon-310x310.png +0 -0
  420. package/nuxt/public/ms-icon-70x70.png +0 -0
  421. package/nuxt/public/preview-608x608.jpg +0 -0
  422. package/nuxt/scripts/postgenerate.js +0 -7
  423. package/nuxt/scripts/publish.js +0 -7
  424. package/nuxt/server/plugins/google-tag-manager.js +0 -37
  425. package/nuxt/tsconfig.json +0 -11
  426. package/src/anthroponym-inflection/anthroponym-inflector.ts +0 -38
  427. package/src/anthroponym-inflection/append-command-runner.ts +0 -18
  428. package/src/anthroponym-inflection/command-runner-factory.ts +0 -23
  429. package/src/anthroponym-inflection/first-name-inflector.ts +0 -41
  430. package/src/anthroponym-inflection/index.ts +0 -5
  431. package/src/anthroponym-inflection/inflector-command-runner.ts +0 -3
  432. package/src/anthroponym-inflection/inflector.types.ts +0 -42
  433. package/src/anthroponym-inflection/last-name-inflector.ts +0 -54
  434. package/src/anthroponym-inflection/middle-name-inflector.ts +0 -29
  435. package/src/anthroponym-inflection/name-inflector.ts +0 -19
  436. package/src/anthroponym-inflection/replace-command-runner.ts +0 -18
  437. package/src/core/anthroponym.interface.ts +0 -8
  438. package/src/core/gender.enum.ts +0 -4
  439. package/src/core/grammatical-case.enum.ts +0 -9
  440. package/src/core/index.ts +0 -4
  441. package/src/core/validator.ts +0 -39
  442. package/src/internal.ts +0 -1
  443. package/src/part-of-speech-recognition/index.ts +0 -5
  444. package/src/part-of-speech-recognition/neural-network-config.ts +0 -5
  445. package/src/part-of-speech-recognition/neural-network-training-data.ts +0 -5
  446. package/src/part-of-speech-recognition/neural-network.ts +0 -66
  447. package/src/part-of-speech-recognition/part-of-speech-decoder.ts +0 -26
  448. package/src/part-of-speech-recognition/part-of-speech-encoder.ts +0 -20
  449. package/src/part-of-speech-recognition/part-of-speech-recognition-rule.ts +0 -33
  450. package/src/part-of-speech-recognition/part-of-speech-recognizer.ts +0 -26
  451. package/src/part-of-speech-recognition/part-of-speech.enum.ts +0 -4
  452. package/src/part-of-speech-recognition/word-encoder.ts +0 -23
  453. package/src/part-of-speech-recognition/word-transformer.ts +0 -8
  454. package/src/resources/neural-networks/kosmii/README.md +0 -5
  455. package/src/resources/neural-networks/kosmii/cache.json +0 -8
  456. package/src/resources/neural-networks/kosmii/samples.json +0 -9435
  457. package/src/resources/neural-networks/kosmii/structure.json +0 -47898
  458. package/src/resources/neural-networks/pelykh/README.md +0 -5
  459. package/src/resources/neural-networks/pelykh/cache.json +0 -1
  460. package/src/resources/neural-networks/pelykh/samples.json +0 -221
  461. package/src/resources/neural-networks/pelykh/structure.json +0 -47898
  462. package/src/resources/neural-networks/pohorielova/README.md +0 -5
  463. package/src/resources/neural-networks/pohorielova/cache.json +0 -542
  464. package/src/resources/neural-networks/pohorielova/samples.json +0 -32147
  465. package/src/resources/neural-networks/pohorielova/structure.json +0 -47898
  466. package/src/utils/lang.utils.ts +0 -13
  467. package/src/utils/regexp.utils.ts +0 -11
  468. package/src/utils/string.utils.ts +0 -49
@@ -0,0 +1 @@
1
+ {"version":3,"file":"given-names-genders.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './detect-gender';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/gender-detection/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './shevchenko';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @file JavaScript library for declension of Ukrainian anthroponyms
3
+ * @module shevchenko
4
+ * @version 3.0.0-rc.0
5
+ * @author Oleksandr Tolochko <tooleks@gmail.com>
6
+ * @license MIT
7
+ * @copyright 2017-2023 Oleksandr Tolochko <tooleks@gmail.com>
8
+ * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
+ */
10
+ export { detectGender, inAblative, inAccusative, inDative, inGenitive, inLocative, inNominative, inVocative } from './shevchenko.js';
11
+ export { GrammaticalGender } from './language/grammatical-gender.js';
12
+ export { GrammaticalCase } from './language/grammatical-case.js';
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,14 @@
1
+ import { DeclensionInput, GenderDetectionInput } from './contracts';
2
+ /**
3
+ * Validates if a given value is a valid input for declension.
4
+ *
5
+ * @throws {TypeError}
6
+ */
7
+ export declare function validateDeclensionInput(input: DeclensionInput): void;
8
+ /**
9
+ * Validates if a given value is a valid input for gender detection.
10
+ *
11
+ * @throws {TypeError}
12
+ */
13
+ export declare function validateGenderDetectionInput(input: GenderDetectionInput): void;
14
+ //# sourceMappingURL=input-validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-validation.d.ts","sourceRoot":"","sources":["../../src/input-validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGpE;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAIpE;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAG9E"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @file JavaScript library for declension of Ukrainian anthroponyms
3
+ * @module shevchenko
4
+ * @version 3.0.0-rc.0
5
+ * @author Oleksandr Tolochko <tooleks@gmail.com>
6
+ * @license MIT
7
+ * @copyright 2017-2023 Oleksandr Tolochko <tooleks@gmail.com>
8
+ * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
+ */
10
+ import './language/alphabet.js';
11
+ import './language/word-class.js';
12
+ import './language/grammatical-case.js';
13
+ import { GrammaticalGender } from './language/grammatical-gender.js';
14
+
15
+ /**
16
+ * Validates if a given value is a valid input for declension.
17
+ *
18
+ * @throws {TypeError}
19
+ */
20
+ function validateDeclensionInput(input) {
21
+ validateObject(input);
22
+ validateGender(input.gender);
23
+ validateAnthroponym(input);
24
+ }
25
+ /**
26
+ * Validates if a given value is a valid input for gender detection.
27
+ *
28
+ * @throws {TypeError}
29
+ */
30
+ function validateGenderDetectionInput(input) {
31
+ validateObject(input);
32
+ validateAnthroponym(input);
33
+ }
34
+ /**
35
+ * Validates if a given value is an object.
36
+ *
37
+ * @throws {TypeError}
38
+ */
39
+ function validateObject(object) {
40
+ if (typeof object !== 'object' || object == null) {
41
+ throw new TypeError('The input type must be an object.');
42
+ }
43
+ }
44
+ /**
45
+ * Validates if a given value is a valid grammatical gender.
46
+ *
47
+ * @throws {TypeError}
48
+ */
49
+ function validateGender(gender) {
50
+ if (![GrammaticalGender.MASCULINE, GrammaticalGender.FEMININE].includes(gender)) {
51
+ throw new TypeError(`The "gender" parameter must be one of the following: "${GrammaticalGender.MASCULINE}", "${GrammaticalGender.FEMININE}".`);
52
+ }
53
+ }
54
+ /**
55
+ * Validates if a given value is a valid anthroponym.
56
+ *
57
+ * @throws {TypeError}
58
+ */
59
+ function validateAnthroponym(anthroponym) {
60
+ if (typeof anthroponym.givenName === 'undefined' &&
61
+ typeof anthroponym.patronymicName === 'undefined' &&
62
+ typeof anthroponym.familyName === 'undefined') {
63
+ throw new TypeError('At least one of the following parameters must present: "givenName", "patronymicName", "familyName".');
64
+ }
65
+ if (typeof anthroponym.givenName !== 'undefined' && typeof anthroponym.givenName !== 'string') {
66
+ throw new TypeError('The "givenName" parameter must be a string.');
67
+ }
68
+ if (typeof anthroponym.patronymicName !== 'undefined' &&
69
+ typeof anthroponym.patronymicName !== 'string') {
70
+ throw new TypeError('The "patronymicName" parameter must be a string.');
71
+ }
72
+ if (typeof anthroponym.familyName !== 'undefined' && typeof anthroponym.familyName !== 'string') {
73
+ throw new TypeError('The "familyName" parameter must be a string.');
74
+ }
75
+ }
76
+
77
+ export { validateDeclensionInput, validateGenderDetectionInput };
78
+ //# sourceMappingURL=input-validation.js.map
@@ -0,0 +1 @@
1
+ {"version":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AA;AAED,IAAA,IAAI,OAAO,WAAW,CAAC,SAAS,KAAK,WAAW,IAAI,OAAO,WAAW,CAAC,SAAS,KAAK,QAAQ,EAAE;AAC7F,QAAA,MAAM,IAAI,SAAS,CAAC,6CAA6C,CAAC,CAAC;AACpE,KAAA;AAED,IAAA,IACE,OAAO,WAAW,CAAC,cAAc,KAAK,WAAW;AACjD,QAAA,OAAO,WAAW,CAAC,cAAc,KAAK,QAAQ,EAC9C;AACA,QAAA,MAAM,IAAI,SAAS,CAAC,kDAAkD,CAAC,CAAC;AACzE,KAAA;AAED,IAAA,IAAI,OAAO,WAAW,CAAC,UAAU,KAAK,WAAW,IAAI,OAAO,WAAW,CAAC,UAAU,KAAK,QAAQ,EAAE;AAC/F,QAAA,MAAM,IAAI,SAAS,CAAC,8CAA8C,CAAC,CAAC;AACrE,KAAA;AACH;;;;"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=input-validation.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-validation.test.d.ts","sourceRoot":"","sources":["../../src/input-validation.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Ukrainian alphabet encoding where the key is the letter of the alphabet
3
+ * and the value is the order number of the corresponding letter starting from 1.
4
+ */
5
+ export declare enum AlphabetEncoding {
6
+ 'а' = 1,
7
+ 'б' = 2,
8
+ 'в' = 3,
9
+ 'г' = 4,
10
+ 'ґ' = 5,
11
+ 'д' = 6,
12
+ 'е' = 7,
13
+ 'є' = 8,
14
+ 'ж' = 9,
15
+ 'з' = 10,
16
+ 'и' = 11,
17
+ 'і' = 12,
18
+ 'ї' = 13,
19
+ 'й' = 14,
20
+ 'к' = 15,
21
+ 'л' = 16,
22
+ 'м' = 17,
23
+ 'н' = 18,
24
+ 'о' = 19,
25
+ 'п' = 20,
26
+ 'р' = 21,
27
+ 'с' = 22,
28
+ 'т' = 23,
29
+ 'у' = 24,
30
+ 'ф' = 25,
31
+ 'х' = 26,
32
+ 'ц' = 27,
33
+ 'ч' = 28,
34
+ 'ш' = 29,
35
+ 'щ' = 30,
36
+ 'ь' = 31,
37
+ 'ю' = 32,
38
+ 'я' = 33
39
+ }
40
+ /**
41
+ * Size of Ukrainian alphabet.
42
+ */
43
+ export declare const ALPHABET_SIZE = 33;
44
+ /**
45
+ * Letter of Ukrainian alphabet.
46
+ */
47
+ export type Letter = keyof typeof AlphabetEncoding;
48
+ //# sourceMappingURL=alphabet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alphabet.d.ts","sourceRoot":"","sources":["../../../src/language/alphabet.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,GAAG,IAAI;IACP,GAAG,IAAA;IACH,GAAG,IAAA;IACH,GAAG,IAAA;IACH,GAAG,IAAA;IACH,GAAG,IAAA;IACH,GAAG,IAAA;IACH,GAAG,IAAA;IACH,GAAG,IAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;IACH,GAAG,KAAA;CACJ;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,KAAK,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,gBAAgB,CAAC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * @file JavaScript library for declension of Ukrainian anthroponyms
3
+ * @module shevchenko
4
+ * @version 3.0.0-rc.0
5
+ * @author Oleksandr Tolochko <tooleks@gmail.com>
6
+ * @license MIT
7
+ * @copyright 2017-2023 Oleksandr Tolochko <tooleks@gmail.com>
8
+ * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
+ */
10
+ /**
11
+ * Ukrainian alphabet encoding where the key is the letter of the alphabet
12
+ * and the value is the order number of the corresponding letter starting from 1.
13
+ */
14
+ var AlphabetEncoding;
15
+ (function (AlphabetEncoding) {
16
+ AlphabetEncoding[AlphabetEncoding["\u0430"] = 1] = "\u0430";
17
+ AlphabetEncoding[AlphabetEncoding["\u0431"] = 2] = "\u0431";
18
+ AlphabetEncoding[AlphabetEncoding["\u0432"] = 3] = "\u0432";
19
+ AlphabetEncoding[AlphabetEncoding["\u0433"] = 4] = "\u0433";
20
+ AlphabetEncoding[AlphabetEncoding["\u0491"] = 5] = "\u0491";
21
+ AlphabetEncoding[AlphabetEncoding["\u0434"] = 6] = "\u0434";
22
+ AlphabetEncoding[AlphabetEncoding["\u0435"] = 7] = "\u0435";
23
+ AlphabetEncoding[AlphabetEncoding["\u0454"] = 8] = "\u0454";
24
+ AlphabetEncoding[AlphabetEncoding["\u0436"] = 9] = "\u0436";
25
+ AlphabetEncoding[AlphabetEncoding["\u0437"] = 10] = "\u0437";
26
+ AlphabetEncoding[AlphabetEncoding["\u0438"] = 11] = "\u0438";
27
+ AlphabetEncoding[AlphabetEncoding["\u0456"] = 12] = "\u0456";
28
+ AlphabetEncoding[AlphabetEncoding["\u0457"] = 13] = "\u0457";
29
+ AlphabetEncoding[AlphabetEncoding["\u0439"] = 14] = "\u0439";
30
+ AlphabetEncoding[AlphabetEncoding["\u043A"] = 15] = "\u043A";
31
+ AlphabetEncoding[AlphabetEncoding["\u043B"] = 16] = "\u043B";
32
+ AlphabetEncoding[AlphabetEncoding["\u043C"] = 17] = "\u043C";
33
+ AlphabetEncoding[AlphabetEncoding["\u043D"] = 18] = "\u043D";
34
+ AlphabetEncoding[AlphabetEncoding["\u043E"] = 19] = "\u043E";
35
+ AlphabetEncoding[AlphabetEncoding["\u043F"] = 20] = "\u043F";
36
+ AlphabetEncoding[AlphabetEncoding["\u0440"] = 21] = "\u0440";
37
+ AlphabetEncoding[AlphabetEncoding["\u0441"] = 22] = "\u0441";
38
+ AlphabetEncoding[AlphabetEncoding["\u0442"] = 23] = "\u0442";
39
+ AlphabetEncoding[AlphabetEncoding["\u0443"] = 24] = "\u0443";
40
+ AlphabetEncoding[AlphabetEncoding["\u0444"] = 25] = "\u0444";
41
+ AlphabetEncoding[AlphabetEncoding["\u0445"] = 26] = "\u0445";
42
+ AlphabetEncoding[AlphabetEncoding["\u0446"] = 27] = "\u0446";
43
+ AlphabetEncoding[AlphabetEncoding["\u0447"] = 28] = "\u0447";
44
+ AlphabetEncoding[AlphabetEncoding["\u0448"] = 29] = "\u0448";
45
+ AlphabetEncoding[AlphabetEncoding["\u0449"] = 30] = "\u0449";
46
+ AlphabetEncoding[AlphabetEncoding["\u044C"] = 31] = "\u044C";
47
+ AlphabetEncoding[AlphabetEncoding["\u044E"] = 32] = "\u044E";
48
+ AlphabetEncoding[AlphabetEncoding["\u044F"] = 33] = "\u044F";
49
+ })(AlphabetEncoding || (AlphabetEncoding = {}));
50
+
51
+ export { AlphabetEncoding };
52
+ //# sourceMappingURL=alphabet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alphabet.js","sources":["../../../src/language/alphabet.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;AAGG;IACS,iBAkCX;AAlCD,CAAA,UAAY,gBAAgB,EAAA;AAC1B,IAAA,gBAAA,CAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAO,CAAA;AACP,IAAA,gBAAA,CAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAG,CAAA;AACH,IAAA,gBAAA,CAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAG,CAAA;AACH,IAAA,gBAAA,CA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AA,gBAAA,CAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,EAAA,CAAA,GAAA,QAAG,CAAA;AACL,CAAC,EAlCW,gBAAgB,KAAhB,gBAAgB,GAkC3B,EAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Enum representing the possible grammatical cases.
3
+ */
4
+ export declare enum GrammaticalCase {
5
+ NOMINATIVE = "nominative",
6
+ GENITIVE = "genitive",
7
+ DATIVE = "dative",
8
+ ACCUSATIVE = "accusative",
9
+ ABLATIVE = "ablative",
10
+ LOCATIVE = "locative",
11
+ VOCATIVE = "vocative"
12
+ }
13
+ //# sourceMappingURL=grammatical-case.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grammatical-case.d.ts","sourceRoot":"","sources":["../../../src/language/grammatical-case.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,eAAe;IACzB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @file JavaScript library for declension of Ukrainian anthroponyms
3
+ * @module shevchenko
4
+ * @version 3.0.0-rc.0
5
+ * @author Oleksandr Tolochko <tooleks@gmail.com>
6
+ * @license MIT
7
+ * @copyright 2017-2023 Oleksandr Tolochko <tooleks@gmail.com>
8
+ * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
+ */
10
+ /**
11
+ * Enum representing the possible grammatical cases.
12
+ */
13
+ var GrammaticalCase;
14
+ (function (GrammaticalCase) {
15
+ GrammaticalCase["NOMINATIVE"] = "nominative";
16
+ GrammaticalCase["GENITIVE"] = "genitive";
17
+ GrammaticalCase["DATIVE"] = "dative";
18
+ GrammaticalCase["ACCUSATIVE"] = "accusative";
19
+ GrammaticalCase["ABLATIVE"] = "ablative";
20
+ GrammaticalCase["LOCATIVE"] = "locative";
21
+ GrammaticalCase["VOCATIVE"] = "vocative";
22
+ })(GrammaticalCase || (GrammaticalCase = {}));
23
+
24
+ export { GrammaticalCase };
25
+ //# sourceMappingURL=grammatical-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grammatical-case.js","sources":["../../../src/language/grammatical-case.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;AAEG;IACS,gBAQX;AARD,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,YAAA,CAAA,GAAA,YAAyB,CAAA;AACzB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,eAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,eAAA,CAAA,YAAA,CAAA,GAAA,YAAyB,CAAA;AACzB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACvB,CAAC,EARW,eAAe,KAAf,eAAe,GAQ1B,EAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Enum representing the possible grammatical genders.
3
+ */
4
+ export declare enum GrammaticalGender {
5
+ MASCULINE = "masculine",
6
+ FEMININE = "feminine"
7
+ }
8
+ //# sourceMappingURL=grammatical-gender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grammatical-gender.d.ts","sourceRoot":"","sources":["../../../src/language/grammatical-gender.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @file JavaScript library for declension of Ukrainian anthroponyms
3
+ * @module shevchenko
4
+ * @version 3.0.0-rc.0
5
+ * @author Oleksandr Tolochko <tooleks@gmail.com>
6
+ * @license MIT
7
+ * @copyright 2017-2023 Oleksandr Tolochko <tooleks@gmail.com>
8
+ * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
+ */
10
+ /**
11
+ * Enum representing the possible grammatical genders.
12
+ */
13
+ var GrammaticalGender;
14
+ (function (GrammaticalGender) {
15
+ GrammaticalGender["MASCULINE"] = "masculine";
16
+ GrammaticalGender["FEMININE"] = "feminine";
17
+ })(GrammaticalGender || (GrammaticalGender = {}));
18
+
19
+ export { GrammaticalGender };
20
+ //# sourceMappingURL=grammatical-gender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grammatical-gender.js","sources":["../../../src/language/grammatical-gender.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;AAEG;IACS,kBAGX;AAHD,CAAA,UAAY,iBAAiB,EAAA;AAC3B,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACvB,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACvB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,GAG5B,EAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,7 @@
1
+ export * from './alphabet';
2
+ export * from './word-class';
3
+ export * from './linguistics';
4
+ export * from './grammatical-case';
5
+ export * from './grammatical-gender';
6
+ export * from './letter-case';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/language/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copies a letter case pattern from a template word to a target word.
3
+ * Returns a modified target word in the letter case of the template word.
4
+ */
5
+ export declare function copyLetterCase(templateWord: string, targetWord: string): string;
6
+ //# sourceMappingURL=letter-case.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"letter-case.d.ts","sourceRoot":"","sources":["../../../src/language/letter-case.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAgB/E"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @file JavaScript library for declension of Ukrainian anthroponyms
3
+ * @module shevchenko
4
+ * @version 3.0.0-rc.0
5
+ * @author Oleksandr Tolochko <tooleks@gmail.com>
6
+ * @license MIT
7
+ * @copyright 2017-2023 Oleksandr Tolochko <tooleks@gmail.com>
8
+ * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
+ */
10
+ /**
11
+ * Copies a letter case pattern from a template word to a target word.
12
+ * Returns a modified target word in the letter case of the template word.
13
+ */
14
+ function copyLetterCase(templateWord, targetWord) {
15
+ let resultWord = '';
16
+ for (let index = 0; index < targetWord.length; index += 1) {
17
+ const templateLetter = templateWord[index] || templateWord[templateWord.length - 1];
18
+ const targetLetter = targetWord[index];
19
+ if (inLowerCase(templateLetter)) {
20
+ resultWord += targetLetter.toLowerCase();
21
+ }
22
+ else if (inUpperCase(templateLetter)) {
23
+ resultWord += targetLetter.toUpperCase();
24
+ }
25
+ else {
26
+ resultWord += targetLetter;
27
+ }
28
+ }
29
+ return resultWord;
30
+ }
31
+ /**
32
+ * Detects if a letter is in the upper case at the specified index.
33
+ */
34
+ function inUpperCase(word, index = 0) {
35
+ return word.charAt(index) === word.charAt(index).toUpperCase();
36
+ }
37
+ /**
38
+ * Detects if a letter is in the lower case at the specified index.
39
+ */
40
+ function inLowerCase(word, index = 0) {
41
+ return word.charAt(index) === word.charAt(index).toLowerCase();
42
+ }
43
+
44
+ export { copyLetterCase };
45
+ //# sourceMappingURL=letter-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"letter-case.js","sources":["../../../src/language/letter-case.ts"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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"letter-case.test.d.ts","sourceRoot":"","sources":["../../../src/language/letter-case.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare const PATTERN_VOWELS: RegExp;
2
+ /**
3
+ * Returns true if a given word is a monosyllable.
4
+ * Returns false otherwise.
5
+ */
6
+ export declare function isMonosyllable(word: string): boolean;
7
+ //# sourceMappingURL=linguistics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linguistics.d.ts","sourceRoot":"","sources":["../../../src/language/linguistics.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,QAAmB,CAAC;AAa/C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @file JavaScript library for declension of Ukrainian anthroponyms
3
+ * @module shevchenko
4
+ * @version 3.0.0-rc.0
5
+ * @author Oleksandr Tolochko <tooleks@gmail.com>
6
+ * @license MIT
7
+ * @copyright 2017-2023 Oleksandr Tolochko <tooleks@gmail.com>
8
+ * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
+ */
10
+ const PATTERN_VOWELS = /[аоуеиіяюєї]/gi;
11
+ /**
12
+ * Returns a number of syllables in a given word.
13
+ */
14
+ function countSyllables(word) {
15
+ const matches = word.match(PATTERN_VOWELS);
16
+ if (matches == null) {
17
+ return 0;
18
+ }
19
+ return matches.length;
20
+ }
21
+ /**
22
+ * Returns true if a given word is a monosyllable.
23
+ * Returns false otherwise.
24
+ */
25
+ function isMonosyllable(word) {
26
+ return countSyllables(word) === 1;
27
+ }
28
+
29
+ export { PATTERN_VOWELS, isMonosyllable };
30
+ //# sourceMappingURL=linguistics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linguistics.js","sources":["../../../src/language/linguistics.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAO,MAAM,cAAc,GAAG,iBAAiB;AAE/C;;AAEG;AACH,SAAS,cAAc,CAAC,IAAY,EAAA;IAClC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,OAAO,IAAI,IAAI,EAAE;AACnB,QAAA,OAAO,CAAC,CAAC;AACV,KAAA;IACD,OAAO,OAAO,CAAC,MAAM,CAAC;AACxB,CAAC;AAED;;;AAGG;AACG,SAAU,cAAc,CAAC,IAAY,EAAA;AACzC,IAAA,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACpC;;;;"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=linguistics.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linguistics.test.d.ts","sourceRoot":"","sources":["../../../src/language/linguistics.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Enum representing the possible grammatical word classes (also known as part of speech).
3
+ */
4
+ export declare enum WordClass {
5
+ NOUN = "noun",
6
+ ADJECTIVE = "adjective"
7
+ }
8
+ //# sourceMappingURL=word-class.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"word-class.d.ts","sourceRoot":"","sources":["../../../src/language/word-class.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,SAAS,cAAc;CACxB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @file JavaScript library for declension of Ukrainian anthroponyms
3
+ * @module shevchenko
4
+ * @version 3.0.0-rc.0
5
+ * @author Oleksandr Tolochko <tooleks@gmail.com>
6
+ * @license MIT
7
+ * @copyright 2017-2023 Oleksandr Tolochko <tooleks@gmail.com>
8
+ * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
+ */
10
+ /**
11
+ * Enum representing the possible grammatical word classes (also known as part of speech).
12
+ */
13
+ var WordClass;
14
+ (function (WordClass) {
15
+ WordClass["NOUN"] = "noun";
16
+ WordClass["ADJECTIVE"] = "adjective";
17
+ })(WordClass || (WordClass = {}));
18
+
19
+ export { WordClass };
20
+ //# sourceMappingURL=word-class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"word-class.js","sources":["../../../src/language/word-class.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;AAEG;IACS,UAGX;AAHD,CAAA,UAAY,SAAS,EAAA;AACnB,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,SAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACzB,CAAC,EAHW,SAAS,KAAT,SAAS,GAGpB,EAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,54 @@
1
+ import { DeclensionInput, DeclensionOutput, GenderDetectionInput, GenderDetectionOutput } from './contracts';
2
+ export * from './contracts';
3
+ export { GrammaticalGender, GrammaticalCase } from './language';
4
+ export { Anthroponym } from './anthroponym-declension';
5
+ /**
6
+ * Inflects an anthroponym in nominative grammatical case.
7
+ *
8
+ * @throws {TypeError} Input validation error.
9
+ */
10
+ export declare function inNominative(input: DeclensionInput): Promise<DeclensionOutput>;
11
+ /**
12
+ * Inflects an anthroponym in genitive grammatical case.
13
+ *
14
+ * @throws {TypeError} Input validation error.
15
+ */
16
+ export declare function inGenitive(input: DeclensionInput): Promise<DeclensionOutput>;
17
+ /**
18
+ * Inflects an anthroponym in dative grammatical case.
19
+ *
20
+ * @throws {TypeError} Input validation error.
21
+ */
22
+ export declare function inDative(input: DeclensionInput): Promise<DeclensionOutput>;
23
+ /**
24
+ * Inflects an anthroponym in accusative grammatical case.
25
+ *
26
+ * @throws {TypeError} Input validation error.
27
+ */
28
+ export declare function inAccusative(input: DeclensionInput): Promise<DeclensionOutput>;
29
+ /**
30
+ * Inflects an anthroponym in ablative grammatical case.
31
+ *
32
+ * @throws {TypeError} Input validation error.
33
+ */
34
+ export declare function inAblative(input: DeclensionInput): Promise<DeclensionOutput>;
35
+ /**
36
+ * Inflects an anthroponym in locative grammatical case.
37
+ *
38
+ * @throws {TypeError} Input validation error.
39
+ */
40
+ export declare function inLocative(input: DeclensionInput): Promise<DeclensionOutput>;
41
+ /**
42
+ * Inflects an anthroponym in vocative grammatical case.
43
+ *
44
+ * @throws {TypeError} Input validation error.
45
+ */
46
+ export declare function inVocative(input: DeclensionInput): Promise<DeclensionOutput>;
47
+ /**
48
+ * Returns the grammatical gender of an anthroponym.
49
+ * Returns null if the grammatical gender cannot be detected.
50
+ *
51
+ * @throws {TypeError} Input validation error.
52
+ */
53
+ export declare function detectGender(input: GenderDetectionInput): Promise<GenderDetectionOutput>;
54
+ //# sourceMappingURL=shevchenko.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shevchenko.d.ts","sourceRoot":"","sources":["../../src/shevchenko.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAKrB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAGpF;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAGlF;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAGhF;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAGpF;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAGlF;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAGlF;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAGlF;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAG9F"}