shevchenko 2.0.6 → 2.1.1

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 (69) hide show
  1. package/README.md +6 -6
  2. package/dist/cjs/shevchenko.js +32 -33
  3. package/dist/cjs/shevchenko.js.map +1 -1
  4. package/dist/es/shevchenko.js +27 -27
  5. package/dist/es/shevchenko.js.map +1 -1
  6. package/dist/types/anthroponym-inflection/anthroponym-inflector.d.ts +1 -1
  7. package/dist/types/anthroponym-inflection/append-command-runner.d.ts +1 -1
  8. package/dist/types/anthroponym-inflection/command-runner-factory.d.ts +1 -1
  9. package/dist/types/anthroponym-inflection/name-inflector.d.ts +2 -2
  10. package/dist/types/anthroponym-inflection/replace-command-runner.d.ts +1 -1
  11. package/dist/types/anthroponym-inflection/rule-inflector.d.ts +1 -1
  12. package/dist/types/part-of-speech-recognition/neural-network.d.ts +3 -3
  13. package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts +2 -2
  14. package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts +2 -2
  15. package/dist/types/part-of-speech-recognition/word-transformer.d.ts +1 -1
  16. package/dist/types/shevchenko.d.ts +9 -8
  17. package/dist/types/shevchenko.d.ts.map +1 -1
  18. package/dist/types/utils/lang.utils.d.ts +1 -1
  19. package/dist/types/utils/regexp.utils.d.ts +1 -1
  20. package/dist/umd/shevchenko.min.js +5 -5
  21. package/dist/umd/shevchenko.min.js.map +1 -1
  22. package/package.json +16 -12
  23. package/src/anthroponym-inflection/anthroponym-inflector.ts +38 -0
  24. package/src/anthroponym-inflection/append-command-runner.ts +18 -0
  25. package/src/anthroponym-inflection/command-runner-factory.ts +23 -0
  26. package/src/anthroponym-inflection/first-name-inflector.ts +41 -0
  27. package/src/anthroponym-inflection/index.ts +5 -0
  28. package/src/anthroponym-inflection/inflector-command-runner.ts +3 -0
  29. package/src/anthroponym-inflection/inflector.types.ts +42 -0
  30. package/src/anthroponym-inflection/last-name-inflector.ts +54 -0
  31. package/src/anthroponym-inflection/middle-name-inflector.ts +29 -0
  32. package/src/anthroponym-inflection/name-inflector.ts +19 -0
  33. package/src/anthroponym-inflection/replace-command-runner.ts +18 -0
  34. package/src/anthroponym-inflection/rule-inflector.ts +40 -0
  35. package/src/bootstrap.ts +53 -0
  36. package/src/core/anthroponym.interface.ts +8 -0
  37. package/src/core/gender.enum.ts +4 -0
  38. package/src/core/grammatical-case.enum.ts +9 -0
  39. package/src/core/index.ts +4 -0
  40. package/src/core/validator.ts +39 -0
  41. package/src/internal.ts +1 -0
  42. package/src/part-of-speech-recognition/index.ts +5 -0
  43. package/src/part-of-speech-recognition/neural-network-config.ts +5 -0
  44. package/src/part-of-speech-recognition/neural-network-training-data.ts +5 -0
  45. package/src/part-of-speech-recognition/neural-network.ts +66 -0
  46. package/src/part-of-speech-recognition/part-of-speech-decoder.ts +26 -0
  47. package/src/part-of-speech-recognition/part-of-speech-encoder.ts +20 -0
  48. package/src/part-of-speech-recognition/part-of-speech-recognition-rule.ts +33 -0
  49. package/src/part-of-speech-recognition/part-of-speech-recognizer.ts +26 -0
  50. package/src/part-of-speech-recognition/part-of-speech.enum.ts +4 -0
  51. package/src/part-of-speech-recognition/word-encoder.ts +23 -0
  52. package/src/part-of-speech-recognition/word-transformer.ts +8 -0
  53. package/src/resources/inflector/rules.json +7114 -0
  54. package/src/resources/neural-networks/kosmii/README.md +5 -0
  55. package/src/resources/neural-networks/kosmii/cache.json +8 -0
  56. package/src/resources/neural-networks/kosmii/samples.json +9435 -0
  57. package/src/resources/neural-networks/kosmii/structure.json +47898 -0
  58. package/src/resources/neural-networks/pelykh/README.md +5 -0
  59. package/src/resources/neural-networks/pelykh/cache.json +1 -0
  60. package/src/resources/neural-networks/pelykh/samples.json +221 -0
  61. package/src/resources/neural-networks/pelykh/structure.json +47898 -0
  62. package/src/resources/neural-networks/pohorielova/README.md +5 -0
  63. package/src/resources/neural-networks/pohorielova/cache.json +542 -0
  64. package/src/resources/neural-networks/pohorielova/samples.json +32147 -0
  65. package/src/resources/neural-networks/pohorielova/structure.json +47898 -0
  66. package/src/shevchenko.ts +63 -0
  67. package/src/utils/lang.utils.ts +13 -0
  68. package/src/utils/regexp.utils.ts +11 -0
  69. package/src/utils/string.utils.ts +49 -0
@@ -0,0 +1,5 @@
1
+ # Part Of Speech Recognition Neural Network
2
+
3
+ Codename: `kosmii`.
4
+
5
+ Trained to recognize a part of speech of male last names ending with: `-ой`, `-ий`, `-ій`.
@@ -0,0 +1,8 @@
1
+ {
2
+ "стрий": "noun",
3
+ "кирий": "noun",
4
+ "бокий": "noun",
5
+ "коломий": "noun",
6
+ "сирий": "adjective",
7
+ "позній": "noun"
8
+ }