shevchenko 3.1.0 → 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.
- package/README.md +4 -0
- package/dist/cjs/anthroponym-declension/anthroponym-inflector.js +2 -4
- package/dist/cjs/anthroponym-declension/bootstrap.js +2 -4
- package/dist/cjs/anthroponym-declension/family-name-classifier/artifacts/model.bundle.json.js +3 -3
- package/dist/cjs/anthroponym-declension/family-name-classifier/cache/incorrect-predictions.json.js +5 -3
- package/dist/cjs/anthroponym-declension/family-name-classifier/family-name-class-transformer.js +2 -4
- package/dist/cjs/anthroponym-declension/family-name-classifier/family-name-classifer.js +6 -9
- package/dist/cjs/anthroponym-declension/family-name-classifier/model-bundle-loader.js +7 -9
- package/dist/cjs/anthroponym-declension/family-name-classifier/model-config.js +2 -4
- package/dist/cjs/anthroponym-declension/family-name-classifier/word-transformer.js +2 -4
- package/dist/cjs/anthroponym-declension/family-name-inflector.js +2 -4
- package/dist/cjs/anthroponym-declension/given-name-inflector.js +2 -4
- package/dist/cjs/anthroponym-declension/name-inflector.js +2 -4
- package/dist/cjs/anthroponym-declension/patronymic-name-inflector.js +2 -4
- package/dist/cjs/extension.js +2 -4
- package/dist/cjs/gender-detection/detect-gender.js +3 -5
- package/dist/cjs/gender-detection/given-names-genders.json.js +7 -3
- package/dist/cjs/index.js +5 -7
- package/dist/cjs/input-validation.js +2 -4
- package/dist/cjs/language/alphabet.js +2 -4
- package/dist/cjs/language/grammatical-case.js +2 -4
- package/dist/cjs/language/grammatical-gender.js +2 -4
- package/dist/cjs/language/letter-case.js +2 -4
- package/dist/cjs/language/linguistics.js +2 -4
- package/dist/cjs/language/word-class.js +2 -4
- package/dist/cjs/shevchenko.js +5 -7
- package/dist/cjs/word-declension/append-command-runner.js +2 -4
- package/dist/cjs/word-declension/bootstrap.js +3 -5
- package/dist/cjs/word-declension/command-runner-factory.js +2 -4
- package/dist/cjs/word-declension/declension-rule-inflector.js +2 -4
- package/dist/cjs/word-declension/declension-types.js +2 -4
- package/dist/cjs/word-declension/replace-command-runner.js +2 -4
- package/dist/cjs/word-declension/rules/artifacts/declension-rules.json.js +88 -5
- package/dist/cjs/word-declension/word-inflector.js +2 -4
- package/dist/es/anthroponym-declension/anthroponym-inflector.js +2 -2
- package/dist/es/anthroponym-declension/bootstrap.js +2 -2
- package/dist/es/anthroponym-declension/family-name-classifier/artifacts/model.bundle.json.js +2 -2
- package/dist/es/anthroponym-declension/family-name-classifier/cache/incorrect-predictions.json.js +2 -2
- package/dist/es/anthroponym-declension/family-name-classifier/family-name-class-transformer.js +2 -2
- package/dist/es/anthroponym-declension/family-name-classifier/family-name-classifer.js +2 -2
- package/dist/es/anthroponym-declension/family-name-classifier/model-bundle-loader.js +2 -2
- package/dist/es/anthroponym-declension/family-name-classifier/model-config.js +2 -2
- package/dist/es/anthroponym-declension/family-name-classifier/word-transformer.js +2 -2
- package/dist/es/anthroponym-declension/family-name-inflector.js +2 -2
- package/dist/es/anthroponym-declension/given-name-inflector.js +2 -2
- package/dist/es/anthroponym-declension/name-inflector.js +2 -2
- package/dist/es/anthroponym-declension/patronymic-name-inflector.js +2 -2
- package/dist/es/extension.js +2 -2
- package/dist/es/gender-detection/detect-gender.js +2 -2
- package/dist/es/gender-detection/given-names-genders.json.js +4 -2
- package/dist/es/index.js +2 -2
- package/dist/es/input-validation.js +2 -2
- package/dist/es/language/alphabet.js +2 -2
- package/dist/es/language/grammatical-case.js +2 -2
- package/dist/es/language/grammatical-gender.js +2 -2
- package/dist/es/language/letter-case.js +2 -2
- package/dist/es/language/linguistics.js +2 -2
- package/dist/es/language/word-class.js +2 -2
- package/dist/es/shevchenko.js +3 -4
- package/dist/es/word-declension/append-command-runner.js +2 -2
- package/dist/es/word-declension/bootstrap.js +2 -2
- package/dist/es/word-declension/command-runner-factory.js +2 -2
- package/dist/es/word-declension/declension-rule-inflector.js +2 -2
- package/dist/es/word-declension/declension-types.js +2 -2
- package/dist/es/word-declension/replace-command-runner.js +2 -2
- package/dist/es/word-declension/rules/artifacts/declension-rules.json.js +85 -4
- package/dist/es/word-declension/word-inflector.js +2 -2
- package/dist/umd/shevchenko.min.js +306 -387
- package/package.json +9 -9
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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
|
'use strict';
|
|
11
11
|
|
|
12
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
|
-
|
|
14
12
|
var declensionRules = require('./rules/artifacts/declension-rules.json.js');
|
|
15
13
|
var wordInflector$1 = require('./word-inflector.js');
|
|
16
14
|
|
|
17
|
-
const wordInflector = new wordInflector$1.WordInflector(declensionRules);
|
|
15
|
+
const wordInflector = new wordInflector$1.WordInflector(declensionRules.default);
|
|
18
16
|
|
|
19
17
|
exports.wordInflector = wordInflector;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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
|
'use strict';
|
|
11
11
|
|
|
12
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
|
-
|
|
14
12
|
var appendCommandRunner = require('./append-command-runner.js');
|
|
15
13
|
var declensionTypes = require('./declension-types.js');
|
|
16
14
|
var replaceCommandRunner = require('./replace-command-runner.js');
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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
|
'use strict';
|
|
11
11
|
|
|
12
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
|
-
|
|
14
12
|
require('../language/alphabet.js');
|
|
15
13
|
require('../language/word-class.js');
|
|
16
14
|
require('../language/grammatical-case.js');
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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
|
'use strict';
|
|
11
11
|
|
|
12
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
|
-
|
|
14
12
|
require('../language/alphabet.js');
|
|
15
13
|
require('../language/word-class.js');
|
|
16
14
|
require('../language/grammatical-case.js');
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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
|
'use strict';
|
|
11
11
|
|
|
12
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
|
-
|
|
14
12
|
class ReplaceCommandRunner {
|
|
15
13
|
constructor(command) {
|
|
16
14
|
this.command = command;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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
|
'use strict';
|
|
11
11
|
|
|
12
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
|
+
|
|
12
14
|
var declensionRules = [
|
|
13
15
|
{
|
|
14
16
|
description: "жіноче ім'я любов",
|
|
@@ -4573,7 +4575,7 @@ var declensionRules = [
|
|
|
4573
4575
|
applicationType: [
|
|
4574
4576
|
],
|
|
4575
4577
|
pattern: {
|
|
4576
|
-
find: "(
|
|
4578
|
+
find: "(екар|етар|(б|в|г|ґ|д|дз|дж|ж|з|й|к|л|м|н|п|р|с|т|ф|х|ц|ч|ш|щ)зар|ухар)(?<!гузар)$",
|
|
4577
4579
|
modify: "(.{1})$"
|
|
4578
4580
|
},
|
|
4579
4581
|
grammaticalCases: {
|
|
@@ -6332,7 +6334,7 @@ var declensionRules = [
|
|
|
6332
6334
|
"familyName"
|
|
6333
6335
|
],
|
|
6334
6336
|
pattern: {
|
|
6335
|
-
find: "
|
|
6337
|
+
find: "(?<!ус|в|н)ин$",
|
|
6336
6338
|
modify: "(.{1})$"
|
|
6337
6339
|
},
|
|
6338
6340
|
grammaticalCases: {
|
|
@@ -6915,6 +6917,87 @@ var declensionRules = [
|
|
|
6915
6917
|
]
|
|
6916
6918
|
}
|
|
6917
6919
|
},
|
|
6920
|
+
{
|
|
6921
|
+
description: "друга відміна / чоловічий рід / тверда група / на -н",
|
|
6922
|
+
examples: [
|
|
6923
|
+
"міщанин"
|
|
6924
|
+
],
|
|
6925
|
+
wordClass: "noun",
|
|
6926
|
+
gender: [
|
|
6927
|
+
"masculine"
|
|
6928
|
+
],
|
|
6929
|
+
priority: 2,
|
|
6930
|
+
applicationType: [
|
|
6931
|
+
],
|
|
6932
|
+
pattern: {
|
|
6933
|
+
find: "н$",
|
|
6934
|
+
modify: "(.{1})$"
|
|
6935
|
+
},
|
|
6936
|
+
grammaticalCases: {
|
|
6937
|
+
nominative: [
|
|
6938
|
+
],
|
|
6939
|
+
genitive: [
|
|
6940
|
+
{
|
|
6941
|
+
"0": {
|
|
6942
|
+
action: "append",
|
|
6943
|
+
value: "а"
|
|
6944
|
+
}
|
|
6945
|
+
}
|
|
6946
|
+
],
|
|
6947
|
+
dative: [
|
|
6948
|
+
{
|
|
6949
|
+
"0": {
|
|
6950
|
+
action: "append",
|
|
6951
|
+
value: "у"
|
|
6952
|
+
}
|
|
6953
|
+
},
|
|
6954
|
+
{
|
|
6955
|
+
"0": {
|
|
6956
|
+
action: "append",
|
|
6957
|
+
value: "ові"
|
|
6958
|
+
}
|
|
6959
|
+
}
|
|
6960
|
+
],
|
|
6961
|
+
accusative: [
|
|
6962
|
+
{
|
|
6963
|
+
"0": {
|
|
6964
|
+
action: "append",
|
|
6965
|
+
value: "а"
|
|
6966
|
+
}
|
|
6967
|
+
}
|
|
6968
|
+
],
|
|
6969
|
+
ablative: [
|
|
6970
|
+
{
|
|
6971
|
+
"0": {
|
|
6972
|
+
action: "append",
|
|
6973
|
+
value: "ом"
|
|
6974
|
+
}
|
|
6975
|
+
}
|
|
6976
|
+
],
|
|
6977
|
+
locative: [
|
|
6978
|
+
{
|
|
6979
|
+
"0": {
|
|
6980
|
+
action: "append",
|
|
6981
|
+
value: "ові"
|
|
6982
|
+
}
|
|
6983
|
+
},
|
|
6984
|
+
{
|
|
6985
|
+
"0": {
|
|
6986
|
+
action: "append",
|
|
6987
|
+
value: "і"
|
|
6988
|
+
}
|
|
6989
|
+
}
|
|
6990
|
+
],
|
|
6991
|
+
vocative: [
|
|
6992
|
+
{
|
|
6993
|
+
"0": {
|
|
6994
|
+
action: "append",
|
|
6995
|
+
value: "е"
|
|
6996
|
+
}
|
|
6997
|
+
}
|
|
6998
|
+
]
|
|
6999
|
+
}
|
|
7000
|
+
},
|
|
6918
7001
|
{
|
|
6919
7002
|
description: "друга відміна / чоловічий рід / тверда група / (свекор|цукор)",
|
|
6920
7003
|
examples: [
|
|
@@ -8300,4 +8383,4 @@ var declensionRules = [
|
|
|
8300
8383
|
}
|
|
8301
8384
|
];
|
|
8302
8385
|
|
|
8303
|
-
|
|
8386
|
+
exports.default = declensionRules;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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
|
'use strict';
|
|
11
11
|
|
|
12
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
|
-
|
|
14
12
|
var declensionRuleInflector = require('./declension-rule-inflector.js');
|
|
15
13
|
|
|
16
14
|
class WordInflector {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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 AnthroponymInflector {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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';
|
package/dist/es/anthroponym-declension/family-name-classifier/artifacts/model.bundle.json.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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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 modelInfo = {
|
package/dist/es/anthroponym-declension/family-name-classifier/cache/incorrect-predictions.json.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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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 incorrectPredictionsCache = {
|
package/dist/es/anthroponym-declension/family-name-classifier/family-name-class-transformer.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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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 * as tf from '@tensorflow/tfjs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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 modelBundle from './artifacts/model.bundle.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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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 { AlphabetEncoding } from '../../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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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';
|
package/dist/es/extension.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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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
|
/**
|
package/dist/es/shevchenko.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.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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';
|
|
@@ -16,7 +16,6 @@ export { InputValidationError } from './input-validation.js';
|
|
|
16
16
|
import './language/alphabet.js';
|
|
17
17
|
export { WordClass } from './language/word-class.js';
|
|
18
18
|
import { GrammaticalCase } from './language/grammatical-case.js';
|
|
19
|
-
export { GrammaticalCase } from './language/grammatical-case.js';
|
|
20
19
|
export { GrammaticalGender } from './language/grammatical-gender.js';
|
|
21
20
|
import './word-declension/declension-types.js';
|
|
22
21
|
|
|
@@ -169,4 +168,4 @@ async function detectGender(input) {
|
|
|
169
168
|
return detectGender$1(input);
|
|
170
169
|
}
|
|
171
170
|
|
|
172
|
-
export { detectGender, inAblative, inAccusative, inDative, inGenitive, inLocative, inNominative, inVocative };
|
|
171
|
+
export { GrammaticalCase, detectGender, inAblative, inAccusative, inDative, inGenitive, inLocative, inNominative, inVocative };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file JavaScript library for declension of Ukrainian anthroponyms
|
|
3
3
|
* @module shevchenko
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Oleksandr Tolochko <shevchenko-js@tooleks.com>
|
|
6
6
|
* @license MIT
|
|
7
|
-
* @copyright 2017-
|
|
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 {
|