@whiteslove/parsing-lexicon 0.2.0 → 0.2.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/LICENSE +21 -21
- package/README.md +137 -137
- package/index.d.ts +374 -374
- package/package.json +77 -75
- package/src/central-asia-locations.js +211 -211
- package/src/central-asia.js +233 -233
- package/src/contact.d.ts +44 -44
- package/src/contact.js +159 -159
- package/src/countries.js +175 -175
- package/src/country-context.d.ts +10 -10
- package/src/country-context.js +22 -22
- package/src/currency.d.ts +14 -14
- package/src/currency.js +66 -66
- package/src/geo.js +169 -169
- package/src/geography-central-asia.js +42 -42
- package/src/geography-detection.d.ts +14 -14
- package/src/geography-detection.js +64 -64
- package/src/geography-display.d.ts +13 -13
- package/src/geography-display.js +113 -113
- package/src/geography.js +210 -210
- package/src/hiring-advanced.js +147 -147
- package/src/hiring-candidate-fields.d.ts +9 -9
- package/src/hiring-candidate-fields.js +92 -92
- package/src/hiring-context.d.ts +64 -64
- package/src/hiring-context.js +412 -412
- package/src/hiring-language-extensions.d.ts +19 -19
- package/src/hiring-language-extensions.js +139 -139
- package/src/hiring-languages.js +135 -135
- package/src/hiring-location-fields.d.ts +3 -3
- package/src/hiring-location-fields.js +53 -53
- package/src/hiring-professions-ro.js +191 -191
- package/src/hiring-professions.js +437 -437
- package/src/hiring-requirements.d.ts +16 -16
- package/src/hiring-requirements.js +170 -170
- package/src/hiring-salary-context.d.ts +27 -27
- package/src/hiring-salary-context.js +76 -76
- package/src/hiring-semantics.d.ts +29 -29
- package/src/hiring-semantics.js +218 -218
- package/src/hiring-skills.d.ts +21 -21
- package/src/hiring-skills.js +315 -315
- package/src/hiring-source-aliases.d.ts +32 -32
- package/src/hiring-source-aliases.js +185 -185
- package/src/hiring-source-semantics.d.ts +31 -31
- package/src/hiring-source-semantics.js +293 -293
- package/src/hiring-temporal.d.ts +15 -15
- package/src/hiring-temporal.js +67 -67
- package/src/hiring-vacancy-fields.d.ts +5 -5
- package/src/hiring-vacancy-fields.js +23 -23
- package/src/hiring-work-semantics.d.ts +34 -34
- package/src/hiring-work-semantics.js +72 -72
- package/src/hiring.js +180 -180
- package/src/housing-address.d.ts +18 -18
- package/src/housing-address.js +217 -210
- package/src/housing-commercial.d.ts +1 -0
- package/src/housing-commercial.js +9 -0
- package/src/housing-context.d.ts +36 -36
- package/src/housing-context.js +183 -183
- package/src/housing-features.js +30 -30
- package/src/housing-intent.d.ts +9 -9
- package/src/housing-intent.js +132 -132
- package/src/housing-listing-fields.js +131 -131
- package/src/housing-money.d.ts +7 -7
- package/src/housing-money.js +102 -102
- package/src/housing-source-aliases.d.ts +8 -8
- package/src/housing-source-aliases.js +51 -51
- package/src/housing-structured.d.ts +55 -55
- package/src/housing-structured.js +219 -219
- package/src/housing.js +200 -200
- package/src/index.js +45 -44
- package/src/kz-location-extensions.js +307 -307
- package/src/landmarks.js +21 -21
- package/src/lexicon-core.js +58 -58
- package/src/location-merge.js +106 -106
- package/src/locations.js +456 -456
- package/src/money-core.d.ts +10 -10
- package/src/money-core.js +81 -81
- package/src/money-lexicon.d.ts +5 -5
- package/src/money-lexicon.js +79 -79
- package/src/money.js +154 -154
- package/src/normalization.js +384 -384
- package/src/odesa-metropolitan.js +144 -144
- package/src/romania-geography.js +47 -47
- package/src/tashkent-colloquial.js +80 -72
- package/src/tashkent-housing-geography.d.ts +38 -38
- package/src/tashkent-housing-geography.js +211 -211
- package/src/tashkent-pois.js +215 -215
- package/src/tashkent-residential-complexes.js +272 -272
- package/src/ua-location-extensions-major.js +118 -118
- package/src/ua-location-extensions-metro.js +9 -9
- package/src/ua-location-extensions-regional.js +246 -246
- package/src/ua-secondary-cities.d.ts +2 -2
- package/src/ua-secondary-cities.js +57 -57
- package/src/ukraine.js +75 -75
- package/src/uz-location-extensions.js +259 -259
package/src/hiring-context.d.ts
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
export type HiringMessageKind = 'vacancy' | 'candidate' | 'vacancy_digest' | 'recruitment_ad' | 'course' | 'job_service' | 'closed_vacancy' | 'spam' | 'unknown';
|
|
2
|
-
export type ContextualLanguage = Readonly<{
|
|
3
|
-
language: string;
|
|
4
|
-
name: string;
|
|
5
|
-
relation: 'required' | 'preferred' | 'notRequired' | 'candidateHas' | null;
|
|
6
|
-
level: string | null;
|
|
7
|
-
cefr: 'A1' | 'A2' | 'B1' | 'B2' | 'C1' | 'C2' | null;
|
|
8
|
-
start: number;
|
|
9
|
-
end: number;
|
|
10
|
-
}>;
|
|
11
|
-
export type HiringContextResult = Readonly<{
|
|
12
|
-
kind: HiringMessageKind | string;
|
|
13
|
-
sections: Readonly<Record<string, string>>;
|
|
14
|
-
profession: Readonly<Record<string, unknown>>;
|
|
15
|
-
languages: readonly ContextualLanguage[];
|
|
16
|
-
requirementRelations: readonly string[];
|
|
17
|
-
hasResponsibilities: boolean;
|
|
18
|
-
hasOfferSection: boolean;
|
|
19
|
-
contacts: readonly string[];
|
|
20
|
-
application: readonly string[];
|
|
21
|
-
companyContext: readonly string[];
|
|
22
|
-
locationContext: readonly string[];
|
|
23
|
-
workAuthorization: readonly string[];
|
|
24
|
-
availability: readonly string[];
|
|
25
|
-
travel: string | null;
|
|
26
|
-
relocation: string | null;
|
|
27
|
-
bonuses: readonly string[];
|
|
28
|
-
benefits: readonly string[];
|
|
29
|
-
contracts: readonly string[];
|
|
30
|
-
openingCount: number | null;
|
|
31
|
-
vacancyStatus: string | null;
|
|
32
|
-
candidateStatus: string | null;
|
|
33
|
-
candidatePreferences: readonly string[];
|
|
34
|
-
employmentHistoryContext: readonly string[];
|
|
35
|
-
educationContext: string | null;
|
|
36
|
-
driverContext: readonly string[];
|
|
37
|
-
noticePeriod: Readonly<{ value: number; unit: 'day' | 'week' }> | null;
|
|
38
|
-
}>;
|
|
39
|
-
export const REQUIREMENT_TERMS: readonly unknown[];
|
|
40
|
-
export const RESPONSIBILITY_TERMS: readonly unknown[];
|
|
41
|
-
export const OFFER_TERMS: readonly unknown[];
|
|
42
|
-
export const CONTACT_TERMS: readonly unknown[];
|
|
43
|
-
export const APPLICATION_TERMS: readonly unknown[];
|
|
44
|
-
export const COMPANY_TERMS: readonly unknown[];
|
|
45
|
-
export const LOCATION_CONTEXT_TERMS: readonly unknown[];
|
|
46
|
-
export const WORK_AUTHORIZATION_TERMS: readonly unknown[];
|
|
47
|
-
export const HIRING_AVAILABILITY_TERMS: readonly unknown[];
|
|
48
|
-
export const TRAVEL_TERMS: readonly unknown[];
|
|
49
|
-
export const RELOCATION_CONTEXT_TERMS: readonly unknown[];
|
|
50
|
-
export const BONUS_TERMS: readonly unknown[];
|
|
51
|
-
export const CONTRACT_CONTEXT_TERMS: readonly unknown[];
|
|
52
|
-
export const VACANCY_STATUS_TERMS: readonly unknown[];
|
|
53
|
-
export const CANDIDATE_STATUS_TERMS: readonly unknown[];
|
|
54
|
-
export const CANDIDATE_PREFERENCE_TERMS: readonly unknown[];
|
|
55
|
-
export const EMPLOYMENT_HISTORY_TERMS: readonly unknown[];
|
|
56
|
-
export const EDUCATION_CONTEXT_TERMS: readonly unknown[];
|
|
57
|
-
export const DRIVER_CONTEXT_TERMS: readonly unknown[];
|
|
58
|
-
export const HIRING_SECTION_MARKERS: Readonly<Record<string, unknown>>;
|
|
59
|
-
export const HIRING_NON_CONTENT_TERMS: readonly unknown[];
|
|
60
|
-
export function splitHiringSections(value: unknown): Readonly<Record<string, string>>;
|
|
61
|
-
export function parseLanguageContext(value: unknown, options?: { mode?: 'vacancy' | 'candidate' | null }): readonly ContextualLanguage[];
|
|
62
|
-
export function resolveProfessionContext(value: unknown, options?: { mode?: 'vacancy' | 'candidate' | null; title?: string }): Readonly<Record<string, unknown>>;
|
|
63
|
-
export function classifyHiringMessage(value: unknown): HiringMessageKind;
|
|
64
|
-
export function parseHiringContext(value: unknown, options?: { mode?: 'vacancy' | 'candidate' | null; title?: string }): HiringContextResult;
|
|
1
|
+
export type HiringMessageKind = 'vacancy' | 'candidate' | 'vacancy_digest' | 'recruitment_ad' | 'course' | 'job_service' | 'closed_vacancy' | 'spam' | 'unknown';
|
|
2
|
+
export type ContextualLanguage = Readonly<{
|
|
3
|
+
language: string;
|
|
4
|
+
name: string;
|
|
5
|
+
relation: 'required' | 'preferred' | 'notRequired' | 'candidateHas' | null;
|
|
6
|
+
level: string | null;
|
|
7
|
+
cefr: 'A1' | 'A2' | 'B1' | 'B2' | 'C1' | 'C2' | null;
|
|
8
|
+
start: number;
|
|
9
|
+
end: number;
|
|
10
|
+
}>;
|
|
11
|
+
export type HiringContextResult = Readonly<{
|
|
12
|
+
kind: HiringMessageKind | string;
|
|
13
|
+
sections: Readonly<Record<string, string>>;
|
|
14
|
+
profession: Readonly<Record<string, unknown>>;
|
|
15
|
+
languages: readonly ContextualLanguage[];
|
|
16
|
+
requirementRelations: readonly string[];
|
|
17
|
+
hasResponsibilities: boolean;
|
|
18
|
+
hasOfferSection: boolean;
|
|
19
|
+
contacts: readonly string[];
|
|
20
|
+
application: readonly string[];
|
|
21
|
+
companyContext: readonly string[];
|
|
22
|
+
locationContext: readonly string[];
|
|
23
|
+
workAuthorization: readonly string[];
|
|
24
|
+
availability: readonly string[];
|
|
25
|
+
travel: string | null;
|
|
26
|
+
relocation: string | null;
|
|
27
|
+
bonuses: readonly string[];
|
|
28
|
+
benefits: readonly string[];
|
|
29
|
+
contracts: readonly string[];
|
|
30
|
+
openingCount: number | null;
|
|
31
|
+
vacancyStatus: string | null;
|
|
32
|
+
candidateStatus: string | null;
|
|
33
|
+
candidatePreferences: readonly string[];
|
|
34
|
+
employmentHistoryContext: readonly string[];
|
|
35
|
+
educationContext: string | null;
|
|
36
|
+
driverContext: readonly string[];
|
|
37
|
+
noticePeriod: Readonly<{ value: number; unit: 'day' | 'week' }> | null;
|
|
38
|
+
}>;
|
|
39
|
+
export const REQUIREMENT_TERMS: readonly unknown[];
|
|
40
|
+
export const RESPONSIBILITY_TERMS: readonly unknown[];
|
|
41
|
+
export const OFFER_TERMS: readonly unknown[];
|
|
42
|
+
export const CONTACT_TERMS: readonly unknown[];
|
|
43
|
+
export const APPLICATION_TERMS: readonly unknown[];
|
|
44
|
+
export const COMPANY_TERMS: readonly unknown[];
|
|
45
|
+
export const LOCATION_CONTEXT_TERMS: readonly unknown[];
|
|
46
|
+
export const WORK_AUTHORIZATION_TERMS: readonly unknown[];
|
|
47
|
+
export const HIRING_AVAILABILITY_TERMS: readonly unknown[];
|
|
48
|
+
export const TRAVEL_TERMS: readonly unknown[];
|
|
49
|
+
export const RELOCATION_CONTEXT_TERMS: readonly unknown[];
|
|
50
|
+
export const BONUS_TERMS: readonly unknown[];
|
|
51
|
+
export const CONTRACT_CONTEXT_TERMS: readonly unknown[];
|
|
52
|
+
export const VACANCY_STATUS_TERMS: readonly unknown[];
|
|
53
|
+
export const CANDIDATE_STATUS_TERMS: readonly unknown[];
|
|
54
|
+
export const CANDIDATE_PREFERENCE_TERMS: readonly unknown[];
|
|
55
|
+
export const EMPLOYMENT_HISTORY_TERMS: readonly unknown[];
|
|
56
|
+
export const EDUCATION_CONTEXT_TERMS: readonly unknown[];
|
|
57
|
+
export const DRIVER_CONTEXT_TERMS: readonly unknown[];
|
|
58
|
+
export const HIRING_SECTION_MARKERS: Readonly<Record<string, unknown>>;
|
|
59
|
+
export const HIRING_NON_CONTENT_TERMS: readonly unknown[];
|
|
60
|
+
export function splitHiringSections(value: unknown): Readonly<Record<string, string>>;
|
|
61
|
+
export function parseLanguageContext(value: unknown, options?: { mode?: 'vacancy' | 'candidate' | null }): readonly ContextualLanguage[];
|
|
62
|
+
export function resolveProfessionContext(value: unknown, options?: { mode?: 'vacancy' | 'candidate' | null; title?: string }): Readonly<Record<string, unknown>>;
|
|
63
|
+
export function classifyHiringMessage(value: unknown): HiringMessageKind;
|
|
64
|
+
export function parseHiringContext(value: unknown, options?: { mode?: 'vacancy' | 'candidate' | null; title?: string }): HiringContextResult;
|