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.
- package/.eslintrc.json +53 -0
- package/.prettierrc.json +5 -0
- package/dist/cjs/shevchenko.js +1280 -96
- package/dist/cjs/shevchenko.js.map +1 -1
- package/dist/es/shevchenko.js +1283 -102
- package/dist/es/shevchenko.js.map +1 -1
- package/dist/types/anthroponym-inflection/anthroponym-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/command-runner-factory.d.ts +1 -1
- package/dist/types/anthroponym-inflection/command-runner-factory.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/first-name-inflector.d.ts +1 -1
- package/dist/types/anthroponym-inflection/first-name-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/last-name-inflector.d.ts +1 -1
- package/dist/types/anthroponym-inflection/last-name-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts +1 -1
- package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/name-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/replace-command-runner.d.ts +1 -1
- package/dist/types/anthroponym-inflection/replace-command-runner.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/rule-inflector.d.ts.map +1 -1
- package/dist/types/bootstrap.d.ts.map +1 -1
- package/dist/types/core/validator.d.ts.map +1 -1
- package/dist/types/gender-detection/detect-gender.d.ts +11 -0
- package/dist/types/gender-detection/detect-gender.d.ts.map +1 -0
- package/dist/types/gender-detection/index.d.ts +2 -0
- package/dist/types/gender-detection/index.d.ts.map +1 -0
- package/dist/types/part-of-speech-recognition/neural-network.d.ts +1 -1
- package/dist/types/part-of-speech-recognition/neural-network.d.ts.map +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-decoder.d.ts.map +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts.map +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts.map +1 -1
- package/dist/types/shevchenko.d.ts +3 -2
- package/dist/types/shevchenko.d.ts.map +1 -1
- package/dist/types/utils/string.utils.d.ts.map +1 -1
- package/dist/umd/shevchenko.min.js +4 -4
- package/dist/umd/shevchenko.min.js.map +1 -1
- package/nuxt/package-lock.json +7 -7
- package/nuxt/package.json +1 -1
- package/package.json +13 -10
- package/src/anthroponym-inflection/anthroponym-inflector.ts +20 -5
- package/src/anthroponym-inflection/command-runner-factory.ts +2 -2
- package/src/anthroponym-inflection/first-name-inflector.ts +5 -5
- package/src/anthroponym-inflection/inflector.types.ts +19 -19
- package/src/anthroponym-inflection/last-name-inflector.ts +10 -6
- package/src/anthroponym-inflection/middle-name-inflector.ts +5 -5
- package/src/anthroponym-inflection/name-inflector.ts +9 -3
- package/src/anthroponym-inflection/replace-command-runner.ts +1 -1
- package/src/anthroponym-inflection/rule-inflector.ts +2 -2
- package/src/bootstrap.ts +10 -10
- package/src/core/validator.ts +12 -5
- package/src/gender-detection/detect-gender.ts +43 -0
- package/src/gender-detection/given-names-genders.json +1144 -0
- package/src/gender-detection/index.ts +1 -0
- package/src/part-of-speech-recognition/neural-network.ts +10 -5
- package/src/part-of-speech-recognition/part-of-speech-decoder.ts +1 -1
- package/src/part-of-speech-recognition/part-of-speech-recognition-rule.ts +6 -2
- package/src/part-of-speech-recognition/part-of-speech-recognizer.ts +2 -2
- package/src/part-of-speech-recognition/word-encoder.ts +2 -2
- package/src/shevchenko.ts +4 -3
- package/src/utils/string.utils.ts +3 -3
- package/test/anthroponym-inflection.js +58 -0
- package/test/gender-detection.js +29 -0
- package/test/input-validation.js +353 -0
- package/test/main.test.js +18 -0
- package/test/samples.json +7282 -0
- package/tsconfig.types.json +9 -0