@thejob/util 1.0.30 → 1.0.31

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.
@@ -8,14 +8,16 @@ import { TUserSchema } from "@thejob/schema";
8
8
  * on whether a candidate can be accurately ranked against a job.
9
9
  *
10
10
  * Weights:
11
- * headline 25strongest FTS + embedding signal
12
- * skills 25directly matched against job requirements
13
- * workExperiences 20 — seniority and title signals
14
- * experienceLevel 15 — level fit (entry / mid / senior)
11
+ * skills 35directly matched against job requirements
12
+ * workExperiences 30actual roles held; strongest role-fit signal
13
+ * experienceLevel 20 — level fit (entry / mid / senior)
15
14
  * aboutMe 10 — semantic narrative and intent
16
15
  * educations 5 — degree / field matching
17
16
  * ---
18
17
  * 100
18
+ *
19
+ * Headline is intentionally excluded — it's a weak, noisy signal (personal
20
+ * branding taglines, vague phrases) that doesn't reliably indicate job fit.
19
21
  */
20
22
  export declare function calculateJobMatchCompleteness(user: Partial<TUserSchema>): number;
21
23
  //# sourceMappingURL=job-match-completeness.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"job-match-completeness.d.ts","sourceRoot":"","sources":["../../../src/completeness/job-match-completeness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,GACzB,MAAM,CAWR"}
1
+ {"version":3,"file":"job-match-completeness.d.ts","sourceRoot":"","sources":["../../../src/completeness/job-match-completeness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,GACzB,MAAM,CAUR"}
@@ -11,25 +11,25 @@ const utils_1 = require("../common/utils");
11
11
  * on whether a candidate can be accurately ranked against a job.
12
12
  *
13
13
  * Weights:
14
- * headline 25strongest FTS + embedding signal
15
- * skills 25directly matched against job requirements
16
- * workExperiences 20 — seniority and title signals
17
- * experienceLevel 15 — level fit (entry / mid / senior)
14
+ * skills 35directly matched against job requirements
15
+ * workExperiences 30actual roles held; strongest role-fit signal
16
+ * experienceLevel 20 — level fit (entry / mid / senior)
18
17
  * aboutMe 10 — semantic narrative and intent
19
18
  * educations 5 — degree / field matching
20
19
  * ---
21
20
  * 100
21
+ *
22
+ * Headline is intentionally excluded — it's a weak, noisy signal (personal
23
+ * branding taglines, vague phrases) that doesn't reliably indicate job fit.
22
24
  */
23
25
  function calculateJobMatchCompleteness(user) {
24
26
  let score = 0;
25
- if (user.headline?.trim())
26
- score += 25;
27
27
  if ((user.skills?.length ?? 0) > 0)
28
- score += 25;
28
+ score += 35;
29
29
  if ((user.workExperiences?.length ?? 0) > 0)
30
- score += 20;
30
+ score += 30;
31
31
  if (user.experienceLevel)
32
- score += 15;
32
+ score += 20;
33
33
  if (user.aboutMe?.trim())
34
34
  score += 10;
35
35
  if ((user.educations?.length ?? 0) > 0)
@@ -8,14 +8,16 @@ import { TUserSchema } from "@thejob/schema";
8
8
  * on whether a candidate can be accurately ranked against a job.
9
9
  *
10
10
  * Weights:
11
- * headline 25strongest FTS + embedding signal
12
- * skills 25directly matched against job requirements
13
- * workExperiences 20 — seniority and title signals
14
- * experienceLevel 15 — level fit (entry / mid / senior)
11
+ * skills 35directly matched against job requirements
12
+ * workExperiences 30actual roles held; strongest role-fit signal
13
+ * experienceLevel 20 — level fit (entry / mid / senior)
15
14
  * aboutMe 10 — semantic narrative and intent
16
15
  * educations 5 — degree / field matching
17
16
  * ---
18
17
  * 100
18
+ *
19
+ * Headline is intentionally excluded — it's a weak, noisy signal (personal
20
+ * branding taglines, vague phrases) that doesn't reliably indicate job fit.
19
21
  */
20
22
  export declare function calculateJobMatchCompleteness(user: Partial<TUserSchema>): number;
21
23
  //# sourceMappingURL=job-match-completeness.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"job-match-completeness.d.ts","sourceRoot":"","sources":["../../../src/completeness/job-match-completeness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,GACzB,MAAM,CAWR"}
1
+ {"version":3,"file":"job-match-completeness.d.ts","sourceRoot":"","sources":["../../../src/completeness/job-match-completeness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,GACzB,MAAM,CAUR"}
@@ -8,25 +8,25 @@ import { toPositiveWholeNumber } from "../common/utils";
8
8
  * on whether a candidate can be accurately ranked against a job.
9
9
  *
10
10
  * Weights:
11
- * headline 25strongest FTS + embedding signal
12
- * skills 25directly matched against job requirements
13
- * workExperiences 20 — seniority and title signals
14
- * experienceLevel 15 — level fit (entry / mid / senior)
11
+ * skills 35directly matched against job requirements
12
+ * workExperiences 30actual roles held; strongest role-fit signal
13
+ * experienceLevel 20 — level fit (entry / mid / senior)
15
14
  * aboutMe 10 — semantic narrative and intent
16
15
  * educations 5 — degree / field matching
17
16
  * ---
18
17
  * 100
18
+ *
19
+ * Headline is intentionally excluded — it's a weak, noisy signal (personal
20
+ * branding taglines, vague phrases) that doesn't reliably indicate job fit.
19
21
  */
20
22
  export function calculateJobMatchCompleteness(user) {
21
23
  let score = 0;
22
- if (user.headline?.trim())
23
- score += 25;
24
24
  if ((user.skills?.length ?? 0) > 0)
25
- score += 25;
25
+ score += 35;
26
26
  if ((user.workExperiences?.length ?? 0) > 0)
27
- score += 20;
27
+ score += 30;
28
28
  if (user.experienceLevel)
29
- score += 15;
29
+ score += 20;
30
30
  if (user.aboutMe?.trim())
31
31
  score += 10;
32
32
  if ((user.educations?.length ?? 0) > 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/util",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",