shevchenko 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +53 -0
- package/.prettierrc.json +5 -0
- package/dist/cjs/shevchenko.js +1307 -122
- package/dist/cjs/shevchenko.js.map +1 -1
- package/dist/es/shevchenko.js +1310 -128
- package/dist/es/shevchenko.js.map +1 -1
- package/dist/types/anthroponym-inflection/anthroponym-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/command-runner-factory.d.ts +1 -1
- package/dist/types/anthroponym-inflection/command-runner-factory.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/first-name-inflector.d.ts +1 -1
- package/dist/types/anthroponym-inflection/first-name-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/last-name-inflector.d.ts +1 -1
- package/dist/types/anthroponym-inflection/last-name-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts +1 -1
- package/dist/types/anthroponym-inflection/middle-name-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/name-inflector.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/replace-command-runner.d.ts +1 -1
- package/dist/types/anthroponym-inflection/replace-command-runner.d.ts.map +1 -1
- package/dist/types/anthroponym-inflection/rule-inflector.d.ts.map +1 -1
- package/dist/types/bootstrap.d.ts.map +1 -1
- package/dist/types/core/validator.d.ts.map +1 -1
- package/dist/types/gender-detection/detect-gender.d.ts +11 -0
- package/dist/types/gender-detection/detect-gender.d.ts.map +1 -0
- package/dist/types/gender-detection/index.d.ts +2 -0
- package/dist/types/gender-detection/index.d.ts.map +1 -0
- package/dist/types/part-of-speech-recognition/neural-network.d.ts +1 -1
- package/dist/types/part-of-speech-recognition/neural-network.d.ts.map +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-decoder.d.ts.map +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-recognition-rule.d.ts.map +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts +1 -1
- package/dist/types/part-of-speech-recognition/part-of-speech-recognizer.d.ts.map +1 -1
- package/dist/types/shevchenko.d.ts +3 -2
- package/dist/types/shevchenko.d.ts.map +1 -1
- package/dist/types/utils/string.utils.d.ts.map +1 -1
- package/dist/umd/shevchenko.min.js +4 -4
- package/dist/umd/shevchenko.min.js.map +1 -1
- package/nuxt/components/declension-demo.vue +7 -1
- package/nuxt/components/declension-form.vue +77 -10
- package/nuxt/components/declension-results.vue +26 -7
- package/nuxt/components/how-it-works.vue +10 -10
- package/nuxt/composables/declension.ts +47 -4
- package/nuxt/data/female-first-names.json +556 -0
- package/nuxt/data/male-first-names.json +603 -0
- package/nuxt/locales/en-US.json +6 -3
- package/nuxt/locales/uk-UA.json +8 -5
- package/nuxt/package-lock.json +7 -7
- package/nuxt/package.json +2 -2
- package/package.json +13 -10
- package/src/anthroponym-inflection/anthroponym-inflector.ts +20 -5
- package/src/anthroponym-inflection/command-runner-factory.ts +2 -2
- package/src/anthroponym-inflection/first-name-inflector.ts +5 -5
- package/src/anthroponym-inflection/inflector.types.ts +19 -19
- package/src/anthroponym-inflection/last-name-inflector.ts +10 -6
- package/src/anthroponym-inflection/middle-name-inflector.ts +5 -5
- package/src/anthroponym-inflection/name-inflector.ts +9 -3
- package/src/anthroponym-inflection/replace-command-runner.ts +1 -1
- package/src/anthroponym-inflection/rule-inflector.ts +2 -2
- package/src/bootstrap.ts +10 -10
- package/src/core/validator.ts +12 -5
- package/src/gender-detection/detect-gender.ts +43 -0
- package/src/gender-detection/given-names-genders.json +1144 -0
- package/src/gender-detection/index.ts +1 -0
- package/src/part-of-speech-recognition/neural-network.ts +10 -5
- package/src/part-of-speech-recognition/part-of-speech-decoder.ts +1 -1
- package/src/part-of-speech-recognition/part-of-speech-recognition-rule.ts +6 -2
- package/src/part-of-speech-recognition/part-of-speech-recognizer.ts +2 -2
- package/src/part-of-speech-recognition/word-encoder.ts +2 -2
- package/src/resources/inflector/rules.json +27 -26
- package/src/shevchenko.ts +4 -3
- package/src/utils/string.utils.ts +3 -3
- package/test/anthroponym-inflection.js +58 -0
- package/test/gender-detection.js +29 -0
- package/test/input-validation.js +353 -0
- package/test/main.test.js +18 -0
- package/test/samples.json +7282 -0
- package/tsconfig.types.json +9 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthroponym-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/anthroponym-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;
|
|
1
|
+
{"version":3,"file":"anthroponym-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/anthroponym-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;gBAGpD,kBAAkB,EAAE,kBAAkB,EACtC,mBAAmB,EAAE,mBAAmB,EACxC,iBAAiB,EAAE,iBAAiB;IAOtC;;OAEG;IACH,OAAO,CAAC,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,GAAG,WAAW;CA6BjF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InflectorCommand } from './inflector.types';
|
|
2
1
|
import { InflectorCommandRunner } from './inflector-command-runner';
|
|
2
|
+
import { InflectorCommand } from './inflector.types';
|
|
3
3
|
export declare class CommandRunnerFactory {
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new command runner for the given command.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-runner-factory.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/command-runner-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-runner-factory.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/command-runner-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAwB,MAAM,mBAAmB,CAAC;AAG3E,qBAAa,oBAAoB;IAC/B;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,gBAAgB,GAAG,sBAAsB;CAaxD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InflectorRule } from './inflector.types';
|
|
2
1
|
import { Gender, GrammaticalCase } from '../core';
|
|
2
|
+
import { InflectorRule } from './inflector.types';
|
|
3
3
|
import { NameInflector } from './name-inflector';
|
|
4
4
|
export declare class FirstNameInflector extends NameInflector {
|
|
5
5
|
private readonly rules;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-name-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/first-name-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"first-name-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/first-name-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,qBAAa,kBAAmB,SAAQ,aAAa;IACnD,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,6 +1,6 @@
|
|
|
1
|
-
import { InflectorRule } from './inflector.types';
|
|
2
1
|
import { Gender, GrammaticalCase } from '../core';
|
|
3
2
|
import { PartOfSpeechRecognizer } from '../part-of-speech-recognition';
|
|
3
|
+
import { InflectorRule } from './inflector.types';
|
|
4
4
|
import { NameInflector } from './name-inflector';
|
|
5
5
|
export declare class LastNameInflector extends NameInflector {
|
|
6
6
|
private readonly rules;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"last-name-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/last-name-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"last-name-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/last-name-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,qBAAa,iBAAkB,SAAQ,aAAa;IAClD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IACxC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAyB;gBAEpD,KAAK,EAAE,aAAa,EAAE,EAAE,sBAAsB,EAAE,sBAAsB;IAMlF;;OAEG;IACH,SAAS,CAAC,WAAW,CACnB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,OAAO,GAClB,MAAM;CAgCV"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InflectorRule } from './inflector.types';
|
|
2
1
|
import { Gender, GrammaticalCase } from '../core';
|
|
2
|
+
import { InflectorRule } from './inflector.types';
|
|
3
3
|
import { NameInflector } from './name-inflector';
|
|
4
4
|
export declare class MiddleNameInflector extends NameInflector {
|
|
5
5
|
private readonly rules;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middle-name-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/middle-name-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"middle-name-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/middle-name-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,qBAAa,mBAAoB,SAAQ,aAAa;IACpD,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/name-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElD,8BAAsB,aAAa;IACjC;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"name-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/name-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAElD,8BAAsB,aAAa;IACjC;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,GAAG,MAAM;IAS/E;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,WAAW,CAC5B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,OAAO,GAClB,MAAM;CACV"}
|
|
@@ -7,6 +7,6 @@ export declare class ReplaceCommandRunner implements InflectorCommandRunner {
|
|
|
7
7
|
* Replaces the given value with the command value.
|
|
8
8
|
* Returns a new value.
|
|
9
9
|
*/
|
|
10
|
-
exec(
|
|
10
|
+
exec(): string;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=replace-command-runner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-command-runner.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/replace-command-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,qBAAa,oBAAqB,YAAW,sBAAsB;IACjE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;gBAE/B,OAAO,EAAE,gBAAgB;IAIrC;;;OAGG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"replace-command-runner.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/replace-command-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,qBAAa,oBAAqB,YAAW,sBAAsB;IACjE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;gBAE/B,OAAO,EAAE,gBAAgB;IAIrC;;;OAGG;IACH,IAAI,IAAI,MAAM;CAGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/rule-inflector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-inflector.d.ts","sourceRoot":"","sources":["../../../src/anthroponym-inflection/rule-inflector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBAAa,aAAa;IACxB,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAKrB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../src/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAKrB,MAAM,0BAA0B,CAAC;AAwClC,QAAA,MAAM,oBAAoB,sBAIzB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../src/core/validator.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../src/core/validator.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,GAAG,GAAG,IAAI,CAoC1D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Anthroponym, Gender } from '../core';
|
|
2
|
+
export declare type GenderlessAnthroponym = Omit<Anthroponym, 'gender'>;
|
|
3
|
+
/**
|
|
4
|
+
* Detects the grammatical gender of the anthroponym using
|
|
5
|
+
* patronymic name endings and the dictionary of known given names.
|
|
6
|
+
*
|
|
7
|
+
* Returns the grammatical gender of the anthroponym.
|
|
8
|
+
* Returns null if the grammatical gender of the anthroponym cannot be detected.
|
|
9
|
+
*/
|
|
10
|
+
export declare function detectGender(anthroponym: GenderlessAnthroponym): Gender | null;
|
|
11
|
+
//# sourceMappingURL=detect-gender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-gender.d.ts","sourceRoot":"","sources":["../../../src/gender-detection/detect-gender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAQ9C,oBAAY,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAEhE;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,qBAAqB,GAAG,MAAM,GAAG,IAAI,CAyB9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/gender-detection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neural-network.d.ts","sourceRoot":"","sources":["../../../src/part-of-speech-recognition/neural-network.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"neural-network.d.ts","sourceRoot":"","sources":["../../../src/part-of-speech-recognition/neural-network.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAG3E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAmB;;IAUlC;;OAEG;IAEH,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,GAAG,aAAa;IAM9C;;OAEG;IACH,MAAM;IAIN;;OAEG;IACH,QAAQ,IAAI,MAAM;IAIlB;;OAEG;IACH,KAAK,CACH,YAAY,EAAE,yBAAyB,EAEvC,eAAe,EAAE,GAAG,GACnB,aAAa;IAWhB;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;CAKrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"part-of-speech-decoder.d.ts","sourceRoot":"","sources":["../../../src/part-of-speech-recognition/part-of-speech-decoder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"part-of-speech-decoder.d.ts","sourceRoot":"","sources":["../../../src/part-of-speech-recognition/part-of-speech-decoder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,qBAAa,mBAAmB;IAC9B;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,YAAY;CAiBtC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PartOfSpeech } from './part-of-speech.enum';
|
|
2
1
|
import { Gender } from '../core';
|
|
3
2
|
import { NeuralNetwork } from './neural-network';
|
|
4
3
|
import { NeuralNetworkTrainingData } from './neural-network-training-data';
|
|
4
|
+
import { PartOfSpeech } from './part-of-speech.enum';
|
|
5
5
|
export interface PartOfSpeechRecognitionGuard {
|
|
6
6
|
(word: string, gender: Gender): boolean;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"part-of-speech-recognition-rule.d.ts","sourceRoot":"","sources":["../../../src/part-of-speech-recognition/part-of-speech-recognition-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"part-of-speech-recognition-rule.d.ts","sourceRoot":"","sources":["../../../src/part-of-speech-recognition/part-of-speech-recognition-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,MAAM,WAAW,4BAA4B;IAC3C,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;CACzC;AAED,qBAAa,2BAA2B;IACtC,QAAQ,CAAC,KAAK,EAAE,4BAA4B,CAAC;IAC7C,QAAQ,CAAC,KAAK,EAAE,yBAAyB,CAAC;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;gBAG5C,KAAK,EAAE,4BAA4B,EACnC,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,yBAAyB;IAOlC;;;OAGG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;CAOlC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PartOfSpeechRecognitionRule } from './part-of-speech-recognition-rule';
|
|
2
1
|
import { Gender } from '../core';
|
|
2
|
+
import { PartOfSpeechRecognitionRule } from './part-of-speech-recognition-rule';
|
|
3
3
|
import { PartOfSpeech } from './part-of-speech.enum';
|
|
4
4
|
export declare class PartOfSpeechRecognizer {
|
|
5
5
|
private readonly rules;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"part-of-speech-recognizer.d.ts","sourceRoot":"","sources":["../../../src/part-of-speech-recognition/part-of-speech-recognizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"part-of-speech-recognizer.d.ts","sourceRoot":"","sources":["../../../src/part-of-speech-recognition/part-of-speech-recognizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgC;gBAE1C,KAAK,EAAE,2BAA2B,EAAE;IAIhD;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;CAQ7D"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Anthroponym
|
|
1
|
+
import { Anthroponym } from './core';
|
|
2
|
+
export { Anthroponym, Gender } from './core';
|
|
3
|
+
export { detectGender, GenderlessAnthroponym } from './gender-detection';
|
|
2
4
|
/**
|
|
3
5
|
* Inflects the anthroponym in nominative grammatical case.
|
|
4
6
|
*/
|
|
@@ -27,6 +29,5 @@ export declare function inLocative(anthroponym: Anthroponym): Anthroponym;
|
|
|
27
29
|
* Inflects the anthroponym in vocative grammatical case.
|
|
28
30
|
*/
|
|
29
31
|
export declare function inVocative(anthroponym: Anthroponym): Anthroponym;
|
|
30
|
-
export { Anthroponym, Gender };
|
|
31
32
|
export * as Internal from './internal';
|
|
32
33
|
//# sourceMappingURL=shevchenko.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shevchenko.d.ts","sourceRoot":"","sources":["../../src/shevchenko.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shevchenko.d.ts","sourceRoot":"","sources":["../../src/shevchenko.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAwC,MAAM,QAAQ,CAAC;AAE3E,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEzE;;GAEG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAGlE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAGhE;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAG9D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAGlE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAGhE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAGhE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAGhE;AAGD,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.utils.d.ts","sourceRoot":"","sources":["../../../src/utils/string.utils.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,
|
|
1
|
+
{"version":3,"file":"string.utils.d.ts","sourceRoot":"","sources":["../../../src/utils/string.utils.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,SAAI,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,SAAI,GAAG,OAAO,CAEzD"}
|