shevchenko 2.1.3 → 2.2.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 (67) hide show
  1. package/.eslintrc.json +53 -0
  2. package/.prettierrc.json +5 -0
  3. package/dist/cjs/shevchenko.js +1280 -96
  4. package/dist/cjs/shevchenko.js.map +1 -1
  5. package/dist/es/shevchenko.js +1283 -102
  6. package/dist/es/shevchenko.js.map +1 -1
  7. package/dist/types/anthroponym-inflection/anthroponym-inflector.d.ts.map +1 -1
  8. package/dist/types/anthroponym-inflection/command-runner-factory.d.ts +1 -1
  9. package/dist/types/anthroponym-inflection/command-runner-factory.d.ts.map +1 -1
  10. package/dist/types/anthroponym-inflection/first-name-inflector.d.ts +1 -1
  11. package/dist/types/anthroponym-inflection/first-name-inflector.d.ts.map +1 -1
  12. package/dist/types/anthroponym-inflection/last-name-inflector.d.ts +1 -1
  13. package/dist/types/anthroponym-inflection/last-name-inflector.d.ts.map +1 -1
  14. package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts +1 -1
  15. package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts.map +1 -1
  16. package/dist/types/anthroponym-inflection/name-inflector.d.ts.map +1 -1
  17. package/dist/types/anthroponym-inflection/replace-command-runner.d.ts +1 -1
  18. package/dist/types/anthroponym-inflection/replace-command-runner.d.ts.map +1 -1
  19. package/dist/types/anthroponym-inflection/rule-inflector.d.ts.map +1 -1
  20. package/dist/types/bootstrap.d.ts.map +1 -1
  21. package/dist/types/core/validator.d.ts.map +1 -1
  22. package/dist/types/gender-detection/detect-gender.d.ts +11 -0
  23. package/dist/types/gender-detection/detect-gender.d.ts.map +1 -0
  24. package/dist/types/gender-detection/index.d.ts +2 -0
  25. package/dist/types/gender-detection/index.d.ts.map +1 -0
  26. package/dist/types/part-of-speech-recognition/neural-network.d.ts +1 -1
  27. package/dist/types/part-of-speech-recognition/neural-network.d.ts.map +1 -1
  28. package/dist/types/part-of-speech-recognition/part-of-speech-decoder.d.ts.map +1 -1
  29. package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts +1 -1
  30. package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts.map +1 -1
  31. package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts +1 -1
  32. package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts.map +1 -1
  33. package/dist/types/shevchenko.d.ts +3 -2
  34. package/dist/types/shevchenko.d.ts.map +1 -1
  35. package/dist/types/utils/string.utils.d.ts.map +1 -1
  36. package/dist/umd/shevchenko.min.js +4 -4
  37. package/dist/umd/shevchenko.min.js.map +1 -1
  38. package/nuxt/package-lock.json +7 -7
  39. package/nuxt/package.json +1 -1
  40. package/package.json +13 -10
  41. package/src/anthroponym-inflection/anthroponym-inflector.ts +20 -5
  42. package/src/anthroponym-inflection/command-runner-factory.ts +2 -2
  43. package/src/anthroponym-inflection/first-name-inflector.ts +5 -5
  44. package/src/anthroponym-inflection/inflector.types.ts +19 -19
  45. package/src/anthroponym-inflection/last-name-inflector.ts +10 -6
  46. package/src/anthroponym-inflection/middle-name-inflector.ts +5 -5
  47. package/src/anthroponym-inflection/name-inflector.ts +9 -3
  48. package/src/anthroponym-inflection/replace-command-runner.ts +1 -1
  49. package/src/anthroponym-inflection/rule-inflector.ts +2 -2
  50. package/src/bootstrap.ts +10 -10
  51. package/src/core/validator.ts +12 -5
  52. package/src/gender-detection/detect-gender.ts +43 -0
  53. package/src/gender-detection/given-names-genders.json +1144 -0
  54. package/src/gender-detection/index.ts +1 -0
  55. package/src/part-of-speech-recognition/neural-network.ts +10 -5
  56. package/src/part-of-speech-recognition/part-of-speech-decoder.ts +1 -1
  57. package/src/part-of-speech-recognition/part-of-speech-recognition-rule.ts +6 -2
  58. package/src/part-of-speech-recognition/part-of-speech-recognizer.ts +2 -2
  59. package/src/part-of-speech-recognition/word-encoder.ts +2 -2
  60. package/src/shevchenko.ts +4 -3
  61. package/src/utils/string.utils.ts +3 -3
  62. package/test/anthroponym-inflection.js +58 -0
  63. package/test/gender-detection.js +29 -0
  64. package/test/input-validation.js +353 -0
  65. package/test/main.test.js +18 -0
  66. package/test/samples.json +7282 -0
  67. package/tsconfig.types.json +9 -0
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.module.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "emitDeclarationOnly": true,
7
+ "outDir": "./dist/types"
8
+ }
9
+ }