shevchenko 3.1.1 → 3.1.2

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 (68) hide show
  1. package/dist/cjs/anthroponym-declension/anthroponym-inflector.js +2 -2
  2. package/dist/cjs/anthroponym-declension/bootstrap.js +2 -2
  3. package/dist/cjs/anthroponym-declension/family-name-classifier/artifacts/model.bundle.json.js +2 -2
  4. package/dist/cjs/anthroponym-declension/family-name-classifier/cache/incorrect-predictions.json.js +2 -2
  5. package/dist/cjs/anthroponym-declension/family-name-classifier/family-name-class-transformer.js +2 -2
  6. package/dist/cjs/anthroponym-declension/family-name-classifier/family-name-classifer.js +2 -2
  7. package/dist/cjs/anthroponym-declension/family-name-classifier/model-bundle-loader.js +2 -2
  8. package/dist/cjs/anthroponym-declension/family-name-classifier/model-config.js +2 -2
  9. package/dist/cjs/anthroponym-declension/family-name-classifier/word-transformer.js +2 -2
  10. package/dist/cjs/anthroponym-declension/family-name-inflector.js +2 -2
  11. package/dist/cjs/anthroponym-declension/given-name-inflector.js +2 -2
  12. package/dist/cjs/anthroponym-declension/name-inflector.js +2 -2
  13. package/dist/cjs/anthroponym-declension/patronymic-name-inflector.js +2 -2
  14. package/dist/cjs/extension.js +2 -2
  15. package/dist/cjs/gender-detection/detect-gender.js +2 -2
  16. package/dist/cjs/gender-detection/given-names-genders.json.js +4 -2
  17. package/dist/cjs/index.js +2 -2
  18. package/dist/cjs/input-validation.js +2 -2
  19. package/dist/cjs/language/alphabet.js +2 -2
  20. package/dist/cjs/language/grammatical-case.js +2 -2
  21. package/dist/cjs/language/grammatical-gender.js +2 -2
  22. package/dist/cjs/language/letter-case.js +2 -2
  23. package/dist/cjs/language/linguistics.js +2 -2
  24. package/dist/cjs/language/word-class.js +2 -2
  25. package/dist/cjs/shevchenko.js +2 -2
  26. package/dist/cjs/word-declension/append-command-runner.js +2 -2
  27. package/dist/cjs/word-declension/bootstrap.js +2 -2
  28. package/dist/cjs/word-declension/command-runner-factory.js +2 -2
  29. package/dist/cjs/word-declension/declension-rule-inflector.js +2 -2
  30. package/dist/cjs/word-declension/declension-types.js +2 -2
  31. package/dist/cjs/word-declension/replace-command-runner.js +2 -2
  32. package/dist/cjs/word-declension/rules/artifacts/declension-rules.json.js +4 -4
  33. package/dist/cjs/word-declension/word-inflector.js +2 -2
  34. package/dist/es/anthroponym-declension/anthroponym-inflector.js +2 -2
  35. package/dist/es/anthroponym-declension/bootstrap.js +2 -2
  36. package/dist/es/anthroponym-declension/family-name-classifier/artifacts/model.bundle.json.js +2 -2
  37. package/dist/es/anthroponym-declension/family-name-classifier/cache/incorrect-predictions.json.js +2 -2
  38. package/dist/es/anthroponym-declension/family-name-classifier/family-name-class-transformer.js +2 -2
  39. package/dist/es/anthroponym-declension/family-name-classifier/family-name-classifer.js +2 -2
  40. package/dist/es/anthroponym-declension/family-name-classifier/model-bundle-loader.js +2 -2
  41. package/dist/es/anthroponym-declension/family-name-classifier/model-config.js +2 -2
  42. package/dist/es/anthroponym-declension/family-name-classifier/word-transformer.js +2 -2
  43. package/dist/es/anthroponym-declension/family-name-inflector.js +2 -2
  44. package/dist/es/anthroponym-declension/given-name-inflector.js +2 -2
  45. package/dist/es/anthroponym-declension/name-inflector.js +2 -2
  46. package/dist/es/anthroponym-declension/patronymic-name-inflector.js +2 -2
  47. package/dist/es/extension.js +2 -2
  48. package/dist/es/gender-detection/detect-gender.js +2 -2
  49. package/dist/es/gender-detection/given-names-genders.json.js +4 -2
  50. package/dist/es/index.js +2 -2
  51. package/dist/es/input-validation.js +2 -2
  52. package/dist/es/language/alphabet.js +2 -2
  53. package/dist/es/language/grammatical-case.js +2 -2
  54. package/dist/es/language/grammatical-gender.js +2 -2
  55. package/dist/es/language/letter-case.js +2 -2
  56. package/dist/es/language/linguistics.js +2 -2
  57. package/dist/es/language/word-class.js +2 -2
  58. package/dist/es/shevchenko.js +2 -2
  59. package/dist/es/word-declension/append-command-runner.js +2 -2
  60. package/dist/es/word-declension/bootstrap.js +2 -2
  61. package/dist/es/word-declension/command-runner-factory.js +2 -2
  62. package/dist/es/word-declension/declension-rule-inflector.js +2 -2
  63. package/dist/es/word-declension/declension-types.js +2 -2
  64. package/dist/es/word-declension/replace-command-runner.js +2 -2
  65. package/dist/es/word-declension/rules/artifacts/declension-rules.json.js +4 -4
  66. package/dist/es/word-declension/word-inflector.js +2 -2
  67. package/dist/umd/shevchenko.min.js +4 -4
  68. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import { NameInflector } from './name-inflector.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  class NameInflector {
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import { NameInflector } from './name-inflector.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import { wordInflector } from './word-declension/bootstrap.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import '../language/alphabet.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  var givenNamesGenders = {
@@ -128,6 +128,7 @@ var givenNamesGenders = {
128
128
  "одарина": "feminine",
129
129
  "одарка": "feminine",
130
130
  "дарія": "feminine",
131
+ "дар'я": "feminine",
131
132
  "дзвенимира": "feminine",
132
133
  "дзвенислава": "feminine",
133
134
  "дзвінка": "feminine",
@@ -912,6 +913,7 @@ var givenNamesGenders = {
912
913
  "нестор": "masculine",
913
914
  "непобор": "masculine",
914
915
  "нігослав": "masculine",
916
+ "назар": "masculine",
915
917
  "назарій": "masculine",
916
918
  "никифор": "masculine",
917
919
  "ничипір": "masculine",
package/dist/es/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  export { detectGender, inAblative, inAccusative, inDative, inGenitive, inLocative, inNominative, inVocative } from './shevchenko.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import { getCustomFieldNames } from './extension.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  const PATTERN_VOWELS = /[аоуеиіяюєї]/gi;
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import { anthroponymInflector } from './anthroponym-declension/bootstrap.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  class AppendCommandRunner {
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import declensionRules from './rules/artifacts/declension-rules.json.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import { AppendCommandRunner } from './append-command-runner.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import '../language/alphabet.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import '../language/alphabet.js';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  class ReplaceCommandRunner {
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  var declensionRules = [
@@ -4571,7 +4571,7 @@ var declensionRules = [
4571
4571
  applicationType: [
4572
4572
  ],
4573
4573
  pattern: {
4574
- find: "(екар|етар|зар|ухар)(?<!гузар)$",
4574
+ find: "(екар|етар|(б|в|г|ґ|д|дз|дж|ж|з|й|к|л|м|н|п|р|с|т|ф|х|ц|ч|ш|щ)зар|ухар)(?<!гузар)$",
4575
4575
  modify: "(.{1})$"
4576
4576
  },
4577
4577
  grammaticalCases: {
@@ -6330,7 +6330,7 @@ var declensionRules = [
6330
6330
  "familyName"
6331
6331
  ],
6332
6332
  pattern: {
6333
- find: "(?<!ус|н)ин$",
6333
+ find: "(?<!ус|в|н)ин$",
6334
6334
  modify: "(.{1})$"
6335
6335
  },
6336
6336
  grammaticalCases: {
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.1
4
+ * @version 3.1.2
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2024 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  import { DeclensionRuleInflector } from './declension-rule-inflector.js';