shevchenko 3.1.5 → 3.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 (73) 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/artifacts/given-name-rules.json.js +2 -2
  16. package/dist/cjs/gender-detection/artifacts/patronymic-name-rules.json.js +2 -2
  17. package/dist/cjs/gender-detection/detect-gender.js +2 -2
  18. package/dist/cjs/gender-detection/grammatical-gender-detector.js +2 -2
  19. package/dist/cjs/index.js +2 -2
  20. package/dist/cjs/input-validation.js +2 -2
  21. package/dist/cjs/language/alphabet.js +2 -2
  22. package/dist/cjs/language/grammatical-case.js +2 -2
  23. package/dist/cjs/language/grammatical-gender.js +2 -2
  24. package/dist/cjs/language/letter-case.js +2 -2
  25. package/dist/cjs/language/linguistics.js +2 -2
  26. package/dist/cjs/language/word-class.js +2 -2
  27. package/dist/cjs/shevchenko.js +2 -2
  28. package/dist/cjs/word-declension/append-command-runner.js +2 -2
  29. package/dist/cjs/word-declension/bootstrap.js +2 -2
  30. package/dist/cjs/word-declension/command-runner-factory.js +2 -2
  31. package/dist/cjs/word-declension/declension-rule-inflector.js +2 -2
  32. package/dist/cjs/word-declension/declension-types.js +2 -2
  33. package/dist/cjs/word-declension/replace-command-runner.js +2 -2
  34. package/dist/cjs/word-declension/rules/artifacts/declension-rules.json.js +7 -108
  35. package/dist/cjs/word-declension/word-inflector.js +10 -5
  36. package/dist/es/anthroponym-declension/anthroponym-inflector.js +2 -2
  37. package/dist/es/anthroponym-declension/bootstrap.js +2 -2
  38. package/dist/es/anthroponym-declension/family-name-classifier/artifacts/model.bundle.json.js +2 -2
  39. package/dist/es/anthroponym-declension/family-name-classifier/cache/incorrect-predictions.json.js +2 -2
  40. package/dist/es/anthroponym-declension/family-name-classifier/family-name-class-transformer.js +2 -2
  41. package/dist/es/anthroponym-declension/family-name-classifier/family-name-classifer.js +2 -2
  42. package/dist/es/anthroponym-declension/family-name-classifier/model-bundle-loader.js +2 -2
  43. package/dist/es/anthroponym-declension/family-name-classifier/model-config.js +2 -2
  44. package/dist/es/anthroponym-declension/family-name-classifier/word-transformer.js +2 -2
  45. package/dist/es/anthroponym-declension/family-name-inflector.js +2 -2
  46. package/dist/es/anthroponym-declension/given-name-inflector.js +2 -2
  47. package/dist/es/anthroponym-declension/name-inflector.js +2 -2
  48. package/dist/es/anthroponym-declension/patronymic-name-inflector.js +2 -2
  49. package/dist/es/extension.js +2 -2
  50. package/dist/es/gender-detection/artifacts/given-name-rules.json.js +2 -2
  51. package/dist/es/gender-detection/artifacts/patronymic-name-rules.json.js +2 -2
  52. package/dist/es/gender-detection/detect-gender.js +2 -2
  53. package/dist/es/gender-detection/grammatical-gender-detector.js +2 -2
  54. package/dist/es/index.js +2 -2
  55. package/dist/es/input-validation.js +2 -2
  56. package/dist/es/language/alphabet.js +2 -2
  57. package/dist/es/language/grammatical-case.js +2 -2
  58. package/dist/es/language/grammatical-gender.js +2 -2
  59. package/dist/es/language/letter-case.js +2 -2
  60. package/dist/es/language/linguistics.js +2 -2
  61. package/dist/es/language/word-class.js +2 -2
  62. package/dist/es/shevchenko.js +2 -2
  63. package/dist/es/word-declension/append-command-runner.js +2 -2
  64. package/dist/es/word-declension/bootstrap.js +2 -2
  65. package/dist/es/word-declension/command-runner-factory.js +2 -2
  66. package/dist/es/word-declension/declension-rule-inflector.js +2 -2
  67. package/dist/es/word-declension/declension-types.js +2 -2
  68. package/dist/es/word-declension/replace-command-runner.js +2 -2
  69. package/dist/es/word-declension/rules/artifacts/declension-rules.json.js +7 -108
  70. package/dist/es/word-declension/word-inflector.js +10 -5
  71. package/dist/es/word-declension/word-inflector.test.d.ts +1 -0
  72. package/dist/umd/shevchenko.min.js +56 -56
  73. 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.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
package/dist/cjs/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.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @file JavaScript library for declension of Ukrainian anthroponyms
3
3
  * @module shevchenko
4
- * @version 3.1.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -1897,109 +1897,6 @@ var declensionRules = [
1897
1897
  ]
1898
1898
  }
1899
1899
  },
1900
- {
1901
- description: "друга відміна / чоловічий рід / тверда група / на -орел",
1902
- examples: [
1903
- "орел"
1904
- ],
1905
- wordClass: "noun",
1906
- gender: [
1907
- "masculine"
1908
- ],
1909
- priority: 5,
1910
- applicationType: [
1911
- ],
1912
- pattern: {
1913
- find: "орел$",
1914
- modify: "(.{1})(.{1})$"
1915
- },
1916
- grammaticalCases: {
1917
- nominative: [
1918
- ],
1919
- genitive: [
1920
- {
1921
- "0": {
1922
- action: "replace",
1923
- value: "л"
1924
- },
1925
- "1": {
1926
- action: "replace",
1927
- value: "а"
1928
- }
1929
- }
1930
- ],
1931
- dative: [
1932
- {
1933
- "0": {
1934
- action: "replace",
1935
- value: "л"
1936
- },
1937
- "1": {
1938
- action: "replace",
1939
- value: "ові"
1940
- }
1941
- },
1942
- {
1943
- "0": {
1944
- action: "replace",
1945
- value: "л"
1946
- },
1947
- "1": {
1948
- action: "replace",
1949
- value: "у"
1950
- }
1951
- }
1952
- ],
1953
- accusative: [
1954
- {
1955
- "0": {
1956
- action: "replace",
1957
- value: "л"
1958
- },
1959
- "1": {
1960
- action: "replace",
1961
- value: "а"
1962
- }
1963
- }
1964
- ],
1965
- ablative: [
1966
- {
1967
- "0": {
1968
- action: "replace",
1969
- value: "л"
1970
- },
1971
- "1": {
1972
- action: "replace",
1973
- value: "ом"
1974
- }
1975
- }
1976
- ],
1977
- locative: [
1978
- {
1979
- "0": {
1980
- action: "replace",
1981
- value: "л"
1982
- },
1983
- "1": {
1984
- action: "replace",
1985
- value: "ові"
1986
- }
1987
- }
1988
- ],
1989
- vocative: [
1990
- {
1991
- "0": {
1992
- action: "replace",
1993
- value: "л"
1994
- },
1995
- "1": {
1996
- action: "replace",
1997
- value: "е"
1998
- }
1999
- }
2000
- ]
2001
- }
2002
- },
2003
1900
  {
2004
1901
  description: "друга відміна / чоловічий рід / тверда група / на -якір",
2005
1902
  examples: [
@@ -4949,9 +4846,11 @@ var declensionRules = [
4949
4846
  }
4950
4847
  },
4951
4848
  {
4952
- description: "друга відміна / чоловічий рід / тверда група / бусел",
4849
+ description: "друга відміна / чоловічий рід / тверда група / бусел, дятел, орел",
4953
4850
  examples: [
4954
- "бусел"
4851
+ "бусел",
4852
+ "дятел",
4853
+ "орел"
4955
4854
  ],
4956
4855
  wordClass: "noun",
4957
4856
  gender: [
@@ -4961,7 +4860,7 @@ var declensionRules = [
4961
4860
  applicationType: [
4962
4861
  ],
4963
4862
  pattern: {
4964
- find: "бусел$",
4863
+ find: "(бус|дят|ор)ел$",
4965
4864
  modify: "(.{1})(.{1})$"
4966
4865
  },
4967
4866
  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.5
4
+ * @version 3.2.0
5
5
  * @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
6
6
  * @license MIT
7
- * @copyright 2017-2025 Oleksandr Tolochko <shevchenko-js@tooleks.com>
7
+ * @copyright 2017-2026 Oleksandr Tolochko <shevchenko-js@tooleks.com>
8
8
  * @see {@link git+https://github.com/tooleks/shevchenko-js.git}
9
9
  */
10
10
  'use strict';
@@ -16,11 +16,16 @@ class WordInflector {
16
16
  this.declensionRules = [...declensionRules].sort((firstRule, lastRule) => lastRule.priority - firstRule.priority);
17
17
  }
18
18
  async inflect(word, params) {
19
- const [matchingRule] = await this.findMatchingRules(word, params);
19
+ // Normalize to NFC (Canonical Decomposition followed by Canonical Composition) to ensure
20
+ // Unicode characters are in a consistent form. This is critical for reliable pattern matching
21
+ // with Cyrillic characters, as some characters (e.g., 'і', 'ї') can be represented in multiple
22
+ // Unicode forms (composed vs. decomposed), which would cause regex patterns to fail.
23
+ const normalizedWord = word.normalize('NFC');
24
+ const [matchingRule] = await this.findMatchingRules(normalizedWord, params);
20
25
  if (matchingRule == null) {
21
- return word;
26
+ return normalizedWord;
22
27
  }
23
- return new declensionRuleInflector.DeclensionRuleInflector(matchingRule).inflect(word, params.grammaticalCase);
28
+ return new declensionRuleInflector.DeclensionRuleInflector(matchingRule).inflect(normalizedWord, params.grammaticalCase);
24
29
  }
25
30
  /**
26
31
  * Finds matching declension rules for the given word.