shevchenko 2.0.4 → 2.0.7
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 +8 -8
- package/dist/cjs/shevchenko.js +18676 -18678
- package/dist/cjs/shevchenko.js.map +1 -1
- package/dist/es/shevchenko.js +18675 -18679
- package/dist/es/shevchenko.js.map +1 -1
- package/dist/types/anthroponym-inflection/anthroponym-inflector.d.ts +15 -0
- package/dist/types/anthroponym-inflection/anthroponym-inflector.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/append-command-runner.d.ts +12 -0
- package/dist/types/anthroponym-inflection/append-command-runner.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/command-runner-factory.d.ts +9 -0
- package/dist/types/anthroponym-inflection/command-runner-factory.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/first-name-inflector.d.ts +12 -0
- package/dist/types/anthroponym-inflection/first-name-inflector.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/index.d.ts +6 -0
- package/dist/types/anthroponym-inflection/index.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/inflector-command-runner.d.ts +4 -0
- package/dist/types/anthroponym-inflection/inflector-command-runner.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/inflector.types.d.ts +37 -0
- package/dist/types/anthroponym-inflection/inflector.types.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/last-name-inflector.d.ts +14 -0
- package/dist/types/anthroponym-inflection/last-name-inflector.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts +12 -0
- package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/name-inflector.d.ts +12 -0
- package/dist/types/anthroponym-inflection/name-inflector.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/replace-command-runner.d.ts +12 -0
- package/dist/types/anthroponym-inflection/replace-command-runner.d.ts.map +1 -0
- package/dist/types/anthroponym-inflection/rule-inflector.d.ts +12 -0
- package/dist/types/anthroponym-inflection/rule-inflector.d.ts.map +1 -0
- package/dist/types/bootstrap.d.ts +1 -1
- package/dist/types/bootstrap.d.ts.map +1 -1
- package/dist/types/core/anthroponym.interface.d.ts +8 -0
- package/dist/types/core/anthroponym.interface.d.ts.map +1 -0
- package/dist/types/core/gender.enum.d.ts +5 -0
- package/dist/types/core/gender.enum.d.ts.map +1 -0
- package/dist/types/{Core/GrammaticalCase.d.ts → core/grammatical-case.enum.d.ts} +2 -3
- package/dist/types/core/grammatical-case.enum.d.ts.map +1 -0
- package/dist/types/core/index.d.ts +5 -0
- package/dist/types/core/index.d.ts.map +1 -0
- package/dist/types/{Core/Validator.d.ts → core/validator.d.ts} +2 -2
- package/dist/types/core/validator.d.ts.map +1 -0
- package/dist/types/internal.d.ts +1 -2
- package/dist/types/internal.d.ts.map +1 -1
- package/dist/types/part-of-speech-recognition/index.d.ts +6 -0
- package/dist/types/part-of-speech-recognition/index.d.ts.map +1 -0
- package/dist/types/part-of-speech-recognition/neural-network-config.d.ts +6 -0
- package/dist/types/part-of-speech-recognition/neural-network-config.d.ts.map +1 -0
- package/dist/types/part-of-speech-recognition/neural-network-training-data.d.ts +5 -0
- package/dist/types/part-of-speech-recognition/neural-network-training-data.d.ts.map +1 -0
- package/dist/types/{PartOfSpeechRecognizer/NeuralNetwork.d.ts → part-of-speech-recognition/neural-network.d.ts} +7 -7
- package/dist/types/part-of-speech-recognition/neural-network.d.ts.map +1 -0
- package/dist/types/part-of-speech-recognition/part-of-speech-decoder.d.ts +9 -0
- package/dist/types/part-of-speech-recognition/part-of-speech-decoder.d.ts.map +1 -0
- package/dist/types/{PartOfSpeechRecognizer/PartOfSpeechEncoder.d.ts → part-of-speech-recognition/part-of-speech-encoder.d.ts} +3 -3
- package/dist/types/part-of-speech-recognition/part-of-speech-encoder.d.ts.map +1 -0
- package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts +19 -0
- package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts.map +1 -0
- package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts +14 -0
- package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts.map +1 -0
- package/dist/types/part-of-speech-recognition/part-of-speech.enum.d.ts +5 -0
- package/dist/types/part-of-speech-recognition/part-of-speech.enum.d.ts.map +1 -0
- package/dist/types/{PartOfSpeechRecognizer/WordEncoder.d.ts → part-of-speech-recognition/word-encoder.d.ts} +2 -2
- package/dist/types/part-of-speech-recognition/word-encoder.d.ts.map +1 -0
- package/dist/types/part-of-speech-recognition/word-transformer.d.ts +7 -0
- package/dist/types/part-of-speech-recognition/word-transformer.d.ts.map +1 -0
- package/dist/types/shevchenko.d.ts +8 -8
- package/dist/types/shevchenko.d.ts.map +1 -1
- package/dist/types/{Utils/LangUtils.d.ts → utils/lang.utils.d.ts} +2 -2
- package/dist/types/utils/lang.utils.d.ts.map +1 -0
- package/dist/types/utils/regexp.utils.d.ts +5 -0
- package/dist/types/utils/regexp.utils.d.ts.map +1 -0
- package/dist/types/{Utils/StringUtils.d.ts → utils/string.utils.d.ts} +1 -1
- package/dist/types/utils/string.utils.d.ts.map +1 -0
- package/dist/umd/shevchenko.min.js +6 -6
- package/dist/umd/shevchenko.min.js.map +1 -1
- package/package.json +33 -25
- package/dist/types/AnthroponymInflector/AnthroponymInflector.d.ts +0 -16
- package/dist/types/AnthroponymInflector/AnthroponymInflector.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/AppendCommandRunner.d.ts +0 -12
- package/dist/types/AnthroponymInflector/AppendCommandRunner.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/CommandRunnerFactory.d.ts +0 -9
- package/dist/types/AnthroponymInflector/CommandRunnerFactory.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/FirstNameInflector.d.ts +0 -13
- package/dist/types/AnthroponymInflector/FirstNameInflector.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/GrammaticalCases.d.ts +0 -13
- package/dist/types/AnthroponymInflector/GrammaticalCases.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/InflectorCommand.d.ts +0 -7
- package/dist/types/AnthroponymInflector/InflectorCommand.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/InflectorCommandGroup.d.ts +0 -6
- package/dist/types/AnthroponymInflector/InflectorCommandGroup.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/InflectorCommandRunner.d.ts +0 -5
- package/dist/types/AnthroponymInflector/InflectorCommandRunner.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/InflectorCommandType.d.ts +0 -6
- package/dist/types/AnthroponymInflector/InflectorCommandType.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/InflectorPattern.d.ts +0 -6
- package/dist/types/AnthroponymInflector/InflectorPattern.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/InflectorRule.d.ts +0 -16
- package/dist/types/AnthroponymInflector/InflectorRule.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/LastNameInflector.d.ts +0 -15
- package/dist/types/AnthroponymInflector/LastNameInflector.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/MiddleNameInflector.d.ts +0 -13
- package/dist/types/AnthroponymInflector/MiddleNameInflector.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/NameInflector.d.ts +0 -13
- package/dist/types/AnthroponymInflector/NameInflector.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/ReplaceCommandRunner.d.ts +0 -12
- package/dist/types/AnthroponymInflector/ReplaceCommandRunner.d.ts.map +0 -1
- package/dist/types/AnthroponymInflector/RuleInflector.d.ts +0 -12
- package/dist/types/AnthroponymInflector/RuleInflector.d.ts.map +0 -1
- package/dist/types/Core/Anthroponym.d.ts +0 -9
- package/dist/types/Core/Anthroponym.d.ts.map +0 -1
- package/dist/types/Core/Gender.d.ts +0 -6
- package/dist/types/Core/Gender.d.ts.map +0 -1
- package/dist/types/Core/GrammaticalCase.d.ts.map +0 -1
- package/dist/types/Core/Validator.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/NeuralNetwork.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/NeuralNetworkParameters.d.ts +0 -7
- package/dist/types/PartOfSpeechRecognizer/NeuralNetworkParameters.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/NeuralNetworkTrainingData.d.ts +0 -6
- package/dist/types/PartOfSpeechRecognizer/NeuralNetworkTrainingData.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/PartOfSpeech.d.ts +0 -6
- package/dist/types/PartOfSpeechRecognizer/PartOfSpeech.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/PartOfSpeechDecoder.d.ts +0 -9
- package/dist/types/PartOfSpeechRecognizer/PartOfSpeechDecoder.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/PartOfSpeechEncoder.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/PartOfSpeechRecognizer.d.ts +0 -14
- package/dist/types/PartOfSpeechRecognizer/PartOfSpeechRecognizer.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/RecognizerRule.d.ts +0 -19
- package/dist/types/PartOfSpeechRecognizer/RecognizerRule.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/WordEncoder.d.ts.map +0 -1
- package/dist/types/PartOfSpeechRecognizer/WordTransformer.d.ts +0 -7
- package/dist/types/PartOfSpeechRecognizer/WordTransformer.d.ts.map +0 -1
- package/dist/types/Utils/LangUtils.d.ts.map +0 -1
- package/dist/types/Utils/RegExpUtils.d.ts +0 -5
- package/dist/types/Utils/RegExpUtils.d.ts.map +0 -1
- package/dist/types/Utils/StringUtils.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shevchenko",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "JavaScript library
|
|
3
|
+
"version": "2.0.7",
|
|
4
|
+
"description": "JavaScript library for declension of Ukrainian anthroponyms",
|
|
5
5
|
"browser": "./dist/umd/shevchenko.min.js",
|
|
6
6
|
"main": "./dist/cjs/shevchenko.js",
|
|
7
7
|
"module": "./dist/es/shevchenko.js",
|
|
@@ -15,21 +15,27 @@
|
|
|
15
15
|
"build:kosmii-cache": "gulp build:kosmii-cache",
|
|
16
16
|
"build:pelykh-cache": "gulp build:pelykh-cache",
|
|
17
17
|
"build:network-cache": "gulp build:network-cache",
|
|
18
|
-
"
|
|
18
|
+
"prebuild": "rimraf ./dist",
|
|
19
|
+
"build": "rollup -c && tsc -p ./tsconfig.declaration.json",
|
|
19
20
|
"lint": "tslint --fix -p ./tsconfig.json -c ./tslint.json",
|
|
20
|
-
"test": "mocha --bail ./tests/main.js"
|
|
21
|
+
"test": "mocha --bail ./tests/main.js",
|
|
22
|
+
"build:docs": "node ./docs/src/main.mjs"
|
|
21
23
|
},
|
|
22
24
|
"keywords": [
|
|
23
|
-
"ukrainian
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
25
|
+
"ukrainian",
|
|
26
|
+
"language",
|
|
27
|
+
"grammar",
|
|
28
|
+
"linguistics",
|
|
29
|
+
"inflection",
|
|
30
|
+
"declension",
|
|
31
|
+
"anthroponym",
|
|
32
|
+
"nominative",
|
|
33
|
+
"genitive",
|
|
34
|
+
"dative",
|
|
35
|
+
"accusative",
|
|
36
|
+
"ablative",
|
|
37
|
+
"locative",
|
|
38
|
+
"vocative"
|
|
33
39
|
],
|
|
34
40
|
"repository": {
|
|
35
41
|
"type": "git",
|
|
@@ -50,21 +56,23 @@
|
|
|
50
56
|
"synaptic": "^1.1.4"
|
|
51
57
|
},
|
|
52
58
|
"devDependencies": {
|
|
53
|
-
"@rollup/plugin-commonjs": "^
|
|
54
|
-
"@rollup/plugin-json": "^4.0
|
|
55
|
-
"@rollup/plugin-node-resolve": "^
|
|
56
|
-
"@rollup/plugin-typescript": "^
|
|
57
|
-
"@types/lodash": "^4.14.
|
|
59
|
+
"@rollup/plugin-commonjs": "^16.0.0",
|
|
60
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
61
|
+
"@rollup/plugin-node-resolve": "^10.0.0",
|
|
62
|
+
"@rollup/plugin-typescript": "^6.1.0",
|
|
63
|
+
"@types/lodash": "^4.14.165",
|
|
58
64
|
"@types/synaptic": "^1.0.3",
|
|
59
|
-
"axios": "^0.
|
|
65
|
+
"axios": "^0.21.0",
|
|
60
66
|
"chai": "^4.2.0",
|
|
67
|
+
"ejs": "^3.1.5",
|
|
61
68
|
"gulp": "^4.0.2",
|
|
62
|
-
"
|
|
69
|
+
"i18n": "^0.13.2",
|
|
70
|
+
"mocha": "^8.2.1",
|
|
63
71
|
"rimraf": "^3.0.2",
|
|
64
|
-
"rollup": "^2.
|
|
65
|
-
"rollup-plugin-terser": "^
|
|
66
|
-
"tslint": "^6.1.
|
|
72
|
+
"rollup": "^2.34.2",
|
|
73
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
74
|
+
"tslint": "^6.1.3",
|
|
67
75
|
"tslint-config-airbnb": "^5.11.2",
|
|
68
|
-
"typescript": "^
|
|
76
|
+
"typescript": "^4.1.2"
|
|
69
77
|
}
|
|
70
78
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Anthroponym from '../Core/Anthroponym';
|
|
2
|
-
import GrammaticalCase from '../Core/GrammaticalCase';
|
|
3
|
-
import FirstNameInflector from './FirstNameInflector';
|
|
4
|
-
import MiddleNameInflector from './MiddleNameInflector';
|
|
5
|
-
import LastNameInflector from './LastNameInflector';
|
|
6
|
-
export default class AnthroponymInflector {
|
|
7
|
-
private readonly firstNameInflector;
|
|
8
|
-
private readonly middleNameInflector;
|
|
9
|
-
private readonly lastNameInflector;
|
|
10
|
-
constructor(firstNameInflector: FirstNameInflector, middleNameInflector: MiddleNameInflector, lastNameInflector: LastNameInflector);
|
|
11
|
-
/**
|
|
12
|
-
* Inflects a given anthroponym in a given grammatical case.
|
|
13
|
-
*/
|
|
14
|
-
inflect(anthroponym: Anthroponym, grammaticalCase: GrammaticalCase): Anthroponym;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=AnthroponymInflector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnthroponymInflector.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/AnthroponymInflector.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACvC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;gBAG1C,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB;IAMlI;;OAEG;IACH,OAAO,CAAC,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,GAAG,WAAW;CAiBjF"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import InflectorCommandRunner from './InflectorCommandRunner';
|
|
2
|
-
import InflectorCommand from './InflectorCommand';
|
|
3
|
-
export default class AppendCommandRunner implements InflectorCommandRunner {
|
|
4
|
-
private readonly command;
|
|
5
|
-
constructor(command: InflectorCommand);
|
|
6
|
-
/**
|
|
7
|
-
* Appends the command value to a given value.
|
|
8
|
-
* Returns a new value.
|
|
9
|
-
*/
|
|
10
|
-
exec(value: string): string;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=AppendCommandRunner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppendCommandRunner.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/AppendCommandRunner.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,MAAM,CAAC,OAAO,OAAO,mBAAoB,YAAW,sBAAsB;IACxE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;gBAE/B,OAAO,EAAE,gBAAgB;IAIrC;;;OAGG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAG5B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import InflectorCommand from './InflectorCommand';
|
|
2
|
-
import InflectorCommandRunner from './InflectorCommandRunner';
|
|
3
|
-
export default class CommandRunnerFactory {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new command runner for a given command.
|
|
6
|
-
*/
|
|
7
|
-
make(command: InflectorCommand): InflectorCommandRunner;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=CommandRunnerFactory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommandRunnerFactory.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/CommandRunnerFactory.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAIlD,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACvC;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,gBAAgB,GAAG,sBAAsB;CAaxD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import InflectorRule from './InflectorRule';
|
|
2
|
-
import Gender from '../Core/Gender';
|
|
3
|
-
import GrammaticalCase from '../Core/GrammaticalCase';
|
|
4
|
-
import NameInflector from './NameInflector';
|
|
5
|
-
export default class FirstNameInflector extends NameInflector {
|
|
6
|
-
private readonly rules;
|
|
7
|
-
constructor(rules: InflectorRule[]);
|
|
8
|
-
/**
|
|
9
|
-
* @inheritdoc
|
|
10
|
-
*/
|
|
11
|
-
protected inflectWord(word: string, gender: Gender, grammaticalCase: GrammaticalCase): string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=FirstNameInflector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FirstNameInflector.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/FirstNameInflector.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,eAAe,MAAM,yBAAyB,CAAC;AAEtD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,aAAa;IAC3D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;gBAE5B,KAAK,EAAE,aAAa,EAAE;IAKlC;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,GAAG,MAAM;CAwB9F"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import GrammaticalCase from '../Core/GrammaticalCase';
|
|
2
|
-
import InflectorCommandGroup from './InflectorCommandGroup';
|
|
3
|
-
declare type GrammaticalCases = {
|
|
4
|
-
[GrammaticalCase.Nominative]: InflectorCommandGroup[];
|
|
5
|
-
[GrammaticalCase.Genitive]: InflectorCommandGroup[];
|
|
6
|
-
[GrammaticalCase.Dative]: InflectorCommandGroup[];
|
|
7
|
-
[GrammaticalCase.Accusative]: InflectorCommandGroup[];
|
|
8
|
-
[GrammaticalCase.Ablative]: InflectorCommandGroup[];
|
|
9
|
-
[GrammaticalCase.Locative]: InflectorCommandGroup[];
|
|
10
|
-
[GrammaticalCase.Vocative]: InflectorCommandGroup[];
|
|
11
|
-
};
|
|
12
|
-
export default GrammaticalCases;
|
|
13
|
-
//# sourceMappingURL=GrammaticalCases.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GrammaticalCases.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/GrammaticalCases.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,aAAK,gBAAgB,GAAG;IACtB,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACtD,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACpD,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAClD,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACtD,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACpD,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACpD,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAC;CACrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InflectorCommand.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/InflectorCommand.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,aAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InflectorCommandGroup.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/InflectorCommandGroup.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,aAAK,qBAAqB,GAAG;IAC3B,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACxC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InflectorCommandRunner.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/InflectorCommandRunner.ts"],"names":[],"mappings":"AAAA,UAAU,sBAAsB;IAC9B,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InflectorCommandType.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/InflectorCommandType.ts"],"names":[],"mappings":"AAAA,aAAK,oBAAoB;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InflectorPattern.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/InflectorPattern.ts"],"names":[],"mappings":"AAAA,aAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Gender from '../Core/Gender';
|
|
2
|
-
import PartOfSpeech from '../PartOfSpeechRecognizer/PartOfSpeech';
|
|
3
|
-
import GrammaticalCases from './GrammaticalCases';
|
|
4
|
-
import InflectorPattern from './InflectorPattern';
|
|
5
|
-
declare type InflectorRule = {
|
|
6
|
-
description: string;
|
|
7
|
-
examples: string[];
|
|
8
|
-
partOfSpeech: PartOfSpeech;
|
|
9
|
-
gender: Gender[];
|
|
10
|
-
priority: number;
|
|
11
|
-
usage: string[];
|
|
12
|
-
pattern: InflectorPattern;
|
|
13
|
-
grammaticalCases: GrammaticalCases;
|
|
14
|
-
};
|
|
15
|
-
export default InflectorRule;
|
|
16
|
-
//# sourceMappingURL=InflectorRule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InflectorRule.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/InflectorRule.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAClE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,aAAK,aAAa,GAAG;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC;CACpC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import InflectorRule from './InflectorRule';
|
|
2
|
-
import Gender from '../Core/Gender';
|
|
3
|
-
import GrammaticalCase from '../Core/GrammaticalCase';
|
|
4
|
-
import PartOfSpeechRecognizer from '../PartOfSpeechRecognizer/PartOfSpeechRecognizer';
|
|
5
|
-
import NameInflector from './NameInflector';
|
|
6
|
-
export default class LastNameInflector extends NameInflector {
|
|
7
|
-
private readonly rules;
|
|
8
|
-
private readonly partOfSpeechRecognizer;
|
|
9
|
-
constructor(rules: InflectorRule[], partOfSpeechRecognizer: PartOfSpeechRecognizer);
|
|
10
|
-
/**
|
|
11
|
-
* @inheritdoc
|
|
12
|
-
*/
|
|
13
|
-
protected inflectWord(word: string, gender: Gender, grammaticalCase: GrammaticalCase, isLastWord: boolean): string;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=LastNameInflector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LastNameInflector.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/LastNameInflector.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,sBAAsB,MAAM,kDAAkD,CAAC;AAEtF,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,aAAa;IAC1D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IACxC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAyB;gBAEpD,KAAK,EAAE,aAAa,EAAE,EAAE,sBAAsB,EAAE,sBAAsB;IAMlF;;OAEG;IAEH,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM;CAgCnH"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import InflectorRule from './InflectorRule';
|
|
2
|
-
import Gender from '../Core/Gender';
|
|
3
|
-
import GrammaticalCase from '../Core/GrammaticalCase';
|
|
4
|
-
import NameInflector from './NameInflector';
|
|
5
|
-
export default class MiddleNameInflector extends NameInflector {
|
|
6
|
-
private readonly rules;
|
|
7
|
-
constructor(rules: InflectorRule[]);
|
|
8
|
-
/**
|
|
9
|
-
* @inheritdoc
|
|
10
|
-
*/
|
|
11
|
-
protected inflectWord(word: string, gender: Gender, grammaticalCase: GrammaticalCase): string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=MiddleNameInflector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MiddleNameInflector.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/MiddleNameInflector.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,eAAe,MAAM,yBAAyB,CAAC;AAEtD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,aAAa;IAC5D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;gBAE5B,KAAK,EAAE,aAAa,EAAE;IAKlC;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,GAAG,MAAM;CAY9F"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import GrammaticalCase from '../Core/GrammaticalCase';
|
|
2
|
-
import Gender from '../Core/Gender';
|
|
3
|
-
export default abstract class NameInflector {
|
|
4
|
-
/**
|
|
5
|
-
* Inflects a given name in a given grammatical case.
|
|
6
|
-
*/
|
|
7
|
-
inflect(name: string, gender: Gender, grammaticalCase: GrammaticalCase): string;
|
|
8
|
-
/**
|
|
9
|
-
* Inflects a given word of the compound name in a given grammatical case.
|
|
10
|
-
*/
|
|
11
|
-
protected abstract inflectWord(word: string, gender: Gender, grammaticalCase: GrammaticalCase, isLastWord: boolean): string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=NameInflector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NameInflector.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/NameInflector.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAEpC,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,aAAa;IACzC;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,GAAG,MAAM;IAO/E;;OAEG;IAEH,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM;CAC5H"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import InflectorCommandRunner from './InflectorCommandRunner';
|
|
2
|
-
import InflectorCommand from './InflectorCommand';
|
|
3
|
-
export default class ReplaceCommandRunner implements InflectorCommandRunner {
|
|
4
|
-
private readonly command;
|
|
5
|
-
constructor(command: InflectorCommand);
|
|
6
|
-
/**
|
|
7
|
-
* Replaces a given value with the command value.
|
|
8
|
-
* Returns a new value.
|
|
9
|
-
*/
|
|
10
|
-
exec(value: string): string;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ReplaceCommandRunner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReplaceCommandRunner.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/ReplaceCommandRunner.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,MAAM,CAAC,OAAO,OAAO,oBAAqB,YAAW,sBAAsB;IACzE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;gBAE/B,OAAO,EAAE,gBAAgB;IAIrC;;;OAGG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAG5B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import GrammaticalCase from '../Core/GrammaticalCase';
|
|
2
|
-
import InflectorRule from './InflectorRule';
|
|
3
|
-
export default class RuleInflector {
|
|
4
|
-
private readonly rule;
|
|
5
|
-
private readonly commandRunnerFactory;
|
|
6
|
-
constructor(rule: InflectorRule);
|
|
7
|
-
/**
|
|
8
|
-
* Inflects a given word in a given grammatical case using the rule.
|
|
9
|
-
*/
|
|
10
|
-
inflect(word: string, grammaticalCase: GrammaticalCase): string;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=RuleInflector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RuleInflector.d.ts","sourceRoot":"","sources":["../../../src/AnthroponymInflector/RuleInflector.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IACrC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAuB;gBAEhD,IAAI,EAAE,aAAa;IAK/B;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,GAAG,MAAM;CAqBhE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Anthroponym.d.ts","sourceRoot":"","sources":["../../../src/Core/Anthroponym.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,UAAU,WAAW;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Gender.d.ts","sourceRoot":"","sources":["../../../src/Core/Gender.ts"],"names":[],"mappings":"AAAA,aAAK,MAAM;IACT,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GrammaticalCase.d.ts","sourceRoot":"","sources":["../../../src/Core/GrammaticalCase.ts"],"names":[],"mappings":"AAAA,aAAK,eAAe;IAClB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validator.d.ts","sourceRoot":"","sources":["../../../src/Core/Validator.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,GAAG,GAAG,IAAI,CA8B1D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NeuralNetwork.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/NeuralNetwork.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAK1C,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,OAAO,CAAC,OAAO,CAAmB;;IAUlC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,GAAG,aAAa;IAM9C;;OAEG;IACH,MAAM;IAIN;;OAEG;IACH,QAAQ,IAAI,MAAM;IAIlB;;OAEG;IACH,KAAK,CAAC,YAAY,EAAE,yBAAyB,EAAE,eAAe,EAAE,GAAG,GAAG,aAAa;IAWnF;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;CAKrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NeuralNetworkParameters.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/NeuralNetworkParameters.ts"],"names":[],"mappings":";;;;;AAAA,wBAIE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NeuralNetworkTrainingData.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/NeuralNetworkTrainingData.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,aAAK,yBAAyB,GAAG;IAC/B,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAAC;CAC9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PartOfSpeech.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/PartOfSpeech.ts"],"names":[],"mappings":"AAAA,aAAK,YAAY;IACf,IAAI,SAAS;IACb,SAAS,cAAc;CACxB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import PartOfSpeech from './PartOfSpeech';
|
|
2
|
-
export default class PartOfSpeechDecoder {
|
|
3
|
-
/**
|
|
4
|
-
* Decodes an output of a neural network.
|
|
5
|
-
* Returns a part of speech.
|
|
6
|
-
*/
|
|
7
|
-
decode(input: number[]): PartOfSpeech;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=PartOfSpeechDecoder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PartOfSpeechDecoder.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/PartOfSpeechDecoder.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,mBAAmB;IACtC;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,YAAY;CAiBtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PartOfSpeechEncoder.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/PartOfSpeechEncoder.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,mBAAmB;IACtC;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,EAAE;CAUtC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import RecognizerRule from './RecognizerRule';
|
|
2
|
-
import Gender from '../Core/Gender';
|
|
3
|
-
import PartOfSpeech from './PartOfSpeech';
|
|
4
|
-
export default class PartOfSpeechRecognizer {
|
|
5
|
-
private readonly rules;
|
|
6
|
-
constructor(rules: RecognizerRule[]);
|
|
7
|
-
/**
|
|
8
|
-
* Recognizes the part of speech of a given word.
|
|
9
|
-
* Returns part of speech of a given word.
|
|
10
|
-
* Returns null if part of speech was not recognized.
|
|
11
|
-
*/
|
|
12
|
-
recognize(word: string, gender: Gender): PartOfSpeech | null;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=PartOfSpeechRecognizer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PartOfSpeechRecognizer.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/PartOfSpeechRecognizer.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,sBAAsB;IACzC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;gBAE7B,KAAK,EAAE,cAAc,EAAE;IAInC;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;CAQ7D"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import PartOfSpeech from './PartOfSpeech';
|
|
2
|
-
import Gender from '../Core/Gender';
|
|
3
|
-
import NeuralNetwork from './NeuralNetwork';
|
|
4
|
-
import NeuralNetworkTrainingData from './NeuralNetworkTrainingData';
|
|
5
|
-
export interface RecognizerCondition {
|
|
6
|
-
(word: string, gender: Gender): boolean;
|
|
7
|
-
}
|
|
8
|
-
export default class RecognizerRule {
|
|
9
|
-
readonly condition: RecognizerCondition;
|
|
10
|
-
readonly cache: NeuralNetworkTrainingData;
|
|
11
|
-
private readonly neuralNetwork;
|
|
12
|
-
constructor(condition: RecognizerCondition, neuralNetwork: NeuralNetwork, cache: NeuralNetworkTrainingData);
|
|
13
|
-
/**
|
|
14
|
-
* Applies the part of speech recognizer rule to a given word.
|
|
15
|
-
* Returns a part of speech of a given word.
|
|
16
|
-
*/
|
|
17
|
-
apply(word: string): PartOfSpeech;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=RecognizerRule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecognizerRule.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/RecognizerRule.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AAGpE,MAAM,WAAW,mBAAmB;IAClC,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,yBAAyB,CAAC;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;gBAElC,SAAS,EAAE,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,yBAAyB;IAM1G;;;OAGG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;CAOlC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WordEncoder.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/WordEncoder.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;gBAElB,IAAI,GAAE,MAA+C;IAIjE;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;CAUhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WordTransformer.d.ts","sourceRoot":"","sources":["../../../src/PartOfSpeechRecognizer/WordTransformer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,eAAe;IAClC;;OAEG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LangUtils.d.ts","sourceRoot":"","sources":["../../../src/Utils/LangUtils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,QAAmB,CAAC;AAE/C;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegExpUtils.d.ts","sourceRoot":"","sources":["../../../src/Utils/RegExpUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAOxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StringUtils.d.ts","sourceRoot":"","sources":["../../../src/Utils/StringUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CA8BhE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,MAAU,GAAG,OAAO,CAEjE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,MAAU,GAAG,OAAO,CAEjE"}
|