resuml 1.12.2 → 1.13.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/dist/index.cjs +27 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/mcp/server.cjs +27 -1
- package/dist/mcp/server.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1852,7 +1852,33 @@ function matchJobDescription(resume, jobDescription, language = "en") {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
1854
|
const matchPercentage = jdKeywords.length > 0 ? Math.round(matched.length / jdKeywords.length * 100) : 0;
|
|
1855
|
-
|
|
1855
|
+
const resumeSkillKeywords = [];
|
|
1856
|
+
for (const s of resume.skills || []) {
|
|
1857
|
+
for (const kw of s.keywords || []) {
|
|
1858
|
+
resumeSkillKeywords.push(kw.toLowerCase());
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
const jdStemSet = /* @__PURE__ */ new Set();
|
|
1862
|
+
const jdTokenSet = /* @__PURE__ */ new Set();
|
|
1863
|
+
for (const kw of jdKeywords) {
|
|
1864
|
+
jdTokenSet.add(kw.toLowerCase());
|
|
1865
|
+
for (const part of kw.split(/\s+/)) {
|
|
1866
|
+
jdStemSet.add(simpleStem(part, language));
|
|
1867
|
+
jdTokenSet.add(part.toLowerCase());
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
const jdFullTokens = tokenize(stripNoise(jobDescription), new Set(langData.stopWords));
|
|
1871
|
+
const jdFullStems = new Set(jdFullTokens.map((t) => simpleStem(t, language)));
|
|
1872
|
+
const extra = [];
|
|
1873
|
+
const seenExtra = /* @__PURE__ */ new Set();
|
|
1874
|
+
for (const skill of resumeSkillKeywords) {
|
|
1875
|
+
const stem = simpleStem(skill, language);
|
|
1876
|
+
if (!jdFullStems.has(stem) && !jdTokenSet.has(skill) && !seenExtra.has(skill)) {
|
|
1877
|
+
seenExtra.add(skill);
|
|
1878
|
+
extra.push(skill);
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
return { matched, missing, extra, matchPercentage };
|
|
1856
1882
|
}
|
|
1857
1883
|
var init_jdMatcher = __esm({
|
|
1858
1884
|
"src/ats/jdMatcher.ts"() {
|