resuml 1.12.1 → 1.12.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/dist/index.cjs +213 -4
- package/dist/index.cjs.map +1 -1
- package/dist/mcp/server.cjs +213 -4
- package/dist/mcp/server.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -826,7 +826,142 @@ var init_en = __esm({
|
|
|
826
826
|
"leading",
|
|
827
827
|
"source",
|
|
828
828
|
"visit",
|
|
829
|
-
|
|
829
|
+
// Common verbs & verb forms (not technical skills, supplement action verbs list)
|
|
830
|
+
"collaborate",
|
|
831
|
+
"collaborating",
|
|
832
|
+
"collaboratively",
|
|
833
|
+
"communicate",
|
|
834
|
+
"communicating",
|
|
835
|
+
"contributing",
|
|
836
|
+
"coordinate",
|
|
837
|
+
"coordinating",
|
|
838
|
+
"demonstrate",
|
|
839
|
+
"demonstrating",
|
|
840
|
+
"design",
|
|
841
|
+
"designing",
|
|
842
|
+
"designed",
|
|
843
|
+
"develop",
|
|
844
|
+
"developing",
|
|
845
|
+
"developed",
|
|
846
|
+
"drive",
|
|
847
|
+
"driving",
|
|
848
|
+
"driven",
|
|
849
|
+
"enable",
|
|
850
|
+
"enabling",
|
|
851
|
+
"evaluate",
|
|
852
|
+
"evaluating",
|
|
853
|
+
"execute",
|
|
854
|
+
"executing",
|
|
855
|
+
"facilitate",
|
|
856
|
+
"facilitating",
|
|
857
|
+
"identify",
|
|
858
|
+
"identifying",
|
|
859
|
+
"influence",
|
|
860
|
+
"influencing",
|
|
861
|
+
"interact",
|
|
862
|
+
"interacting",
|
|
863
|
+
"lead",
|
|
864
|
+
"leverage",
|
|
865
|
+
"leveraging",
|
|
866
|
+
"manage",
|
|
867
|
+
"managing",
|
|
868
|
+
"mentor",
|
|
869
|
+
"mentoring",
|
|
870
|
+
"operate",
|
|
871
|
+
"operating",
|
|
872
|
+
"optimize",
|
|
873
|
+
"optimizing",
|
|
874
|
+
"participate",
|
|
875
|
+
"participating",
|
|
876
|
+
"report",
|
|
877
|
+
"reporting",
|
|
878
|
+
"solve",
|
|
879
|
+
"solving",
|
|
880
|
+
"understand",
|
|
881
|
+
"understanding",
|
|
882
|
+
// Common adjectives & descriptors (not technical skills)
|
|
883
|
+
"fluent",
|
|
884
|
+
"proficient",
|
|
885
|
+
"deep",
|
|
886
|
+
"solid",
|
|
887
|
+
"proven",
|
|
888
|
+
"hands-on",
|
|
889
|
+
"detail-oriented",
|
|
890
|
+
"results-driven",
|
|
891
|
+
"self-motivated",
|
|
892
|
+
"proactive",
|
|
893
|
+
"creative",
|
|
894
|
+
"innovative",
|
|
895
|
+
"dynamic",
|
|
896
|
+
"strategic",
|
|
897
|
+
"analytical",
|
|
898
|
+
"collaborative",
|
|
899
|
+
"effective",
|
|
900
|
+
"efficient",
|
|
901
|
+
"reliable",
|
|
902
|
+
"flexible",
|
|
903
|
+
"adaptable",
|
|
904
|
+
"motivated",
|
|
905
|
+
"dedicated",
|
|
906
|
+
"capable",
|
|
907
|
+
"qualified",
|
|
908
|
+
"diverse",
|
|
909
|
+
"inclusive",
|
|
910
|
+
"global",
|
|
911
|
+
"local",
|
|
912
|
+
"remote",
|
|
913
|
+
"hybrid",
|
|
914
|
+
"onsite",
|
|
915
|
+
"full-time",
|
|
916
|
+
"part-time",
|
|
917
|
+
"contract",
|
|
918
|
+
"permanent",
|
|
919
|
+
// Role titles & department names (not skills themselves)
|
|
920
|
+
"designer",
|
|
921
|
+
"designers",
|
|
922
|
+
"developer",
|
|
923
|
+
"developers",
|
|
924
|
+
"engineer",
|
|
925
|
+
"engineers",
|
|
926
|
+
"manager",
|
|
927
|
+
"managers",
|
|
928
|
+
"director",
|
|
929
|
+
"analyst",
|
|
930
|
+
"analysts",
|
|
931
|
+
"architect",
|
|
932
|
+
"architects",
|
|
933
|
+
"consultant",
|
|
934
|
+
"consultants",
|
|
935
|
+
"specialist",
|
|
936
|
+
"specialists",
|
|
937
|
+
"coordinator",
|
|
938
|
+
"lead",
|
|
939
|
+
"principal",
|
|
940
|
+
"staff",
|
|
941
|
+
"junior",
|
|
942
|
+
"mid",
|
|
943
|
+
"department",
|
|
944
|
+
"organization",
|
|
945
|
+
"division",
|
|
946
|
+
"stakeholder",
|
|
947
|
+
"stakeholders",
|
|
948
|
+
"client",
|
|
949
|
+
"clients",
|
|
950
|
+
"customer",
|
|
951
|
+
"customers",
|
|
952
|
+
// Date & time words
|
|
953
|
+
"date",
|
|
954
|
+
"dates",
|
|
955
|
+
"month",
|
|
956
|
+
"months",
|
|
957
|
+
"week",
|
|
958
|
+
"weeks",
|
|
959
|
+
"daily",
|
|
960
|
+
"weekly",
|
|
961
|
+
"monthly",
|
|
962
|
+
"quarterly",
|
|
963
|
+
"annual",
|
|
964
|
+
"annually"
|
|
830
965
|
]
|
|
831
966
|
};
|
|
832
967
|
en_default = en;
|
|
@@ -1567,11 +1702,73 @@ function extractBrandNames(text) {
|
|
|
1567
1702
|
"firefox"
|
|
1568
1703
|
];
|
|
1569
1704
|
for (const b of knownBrands) brands.add(b);
|
|
1705
|
+
const locations = [
|
|
1706
|
+
"zurich",
|
|
1707
|
+
"z\xFCrich",
|
|
1708
|
+
"berlin",
|
|
1709
|
+
"london",
|
|
1710
|
+
"paris",
|
|
1711
|
+
"amsterdam",
|
|
1712
|
+
"munich",
|
|
1713
|
+
"m\xFCnchen",
|
|
1714
|
+
"new york",
|
|
1715
|
+
"san francisco",
|
|
1716
|
+
"seattle",
|
|
1717
|
+
"austin",
|
|
1718
|
+
"boston",
|
|
1719
|
+
"chicago",
|
|
1720
|
+
"toronto",
|
|
1721
|
+
"vancouver",
|
|
1722
|
+
"singapore",
|
|
1723
|
+
"tokyo",
|
|
1724
|
+
"sydney",
|
|
1725
|
+
"dublin",
|
|
1726
|
+
"bangalore",
|
|
1727
|
+
"hyderabad",
|
|
1728
|
+
"remote",
|
|
1729
|
+
"hybrid",
|
|
1730
|
+
"onsite",
|
|
1731
|
+
"switzerland",
|
|
1732
|
+
"germany",
|
|
1733
|
+
"france",
|
|
1734
|
+
"spain",
|
|
1735
|
+
"italy",
|
|
1736
|
+
"netherlands",
|
|
1737
|
+
"united states",
|
|
1738
|
+
"united kingdom",
|
|
1739
|
+
"canada",
|
|
1740
|
+
"australia",
|
|
1741
|
+
"india",
|
|
1742
|
+
"japan",
|
|
1743
|
+
"china",
|
|
1744
|
+
"brazil",
|
|
1745
|
+
"israel",
|
|
1746
|
+
"sweden",
|
|
1747
|
+
"norway",
|
|
1748
|
+
"denmark",
|
|
1749
|
+
"finland",
|
|
1750
|
+
"austria",
|
|
1751
|
+
"belgium",
|
|
1752
|
+
"portugal",
|
|
1753
|
+
"ireland",
|
|
1754
|
+
"poland"
|
|
1755
|
+
];
|
|
1756
|
+
for (const loc of locations) {
|
|
1757
|
+
brands.add(loc);
|
|
1758
|
+
for (const part of loc.split(/\s+/)) {
|
|
1759
|
+
if (part.length > 2) brands.add(part);
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1570
1762
|
return brands;
|
|
1571
1763
|
}
|
|
1572
|
-
function extractKeywords(text, language, maxKeywords = 30) {
|
|
1764
|
+
function extractKeywords(text, language, maxKeywords = 30, extraStopWords) {
|
|
1573
1765
|
const langData = getLanguageData(language);
|
|
1574
|
-
const stopWords = new Set(
|
|
1766
|
+
const stopWords = /* @__PURE__ */ new Set([
|
|
1767
|
+
...langData.stopWords,
|
|
1768
|
+
...langData.actionVerbs,
|
|
1769
|
+
...langData.actionVerbs.map((v) => simpleStem(v, language)),
|
|
1770
|
+
...extraStopWords || []
|
|
1771
|
+
]);
|
|
1575
1772
|
const cleanText = stripNoise(text);
|
|
1576
1773
|
const compoundTerms = extractCompoundTerms(cleanText);
|
|
1577
1774
|
const brandNames = extractBrandNames(text);
|
|
@@ -1614,7 +1811,19 @@ function extractKeywords(text, language, maxKeywords = 30) {
|
|
|
1614
1811
|
function matchJobDescription(resume, jobDescription, language = "en") {
|
|
1615
1812
|
const langData = getLanguageData(language);
|
|
1616
1813
|
const stopWords = new Set(langData.stopWords);
|
|
1617
|
-
const
|
|
1814
|
+
const nameStopWords = /* @__PURE__ */ new Set();
|
|
1815
|
+
if (resume.basics?.name) {
|
|
1816
|
+
for (const part of resume.basics.name.toLowerCase().split(/\s+/)) {
|
|
1817
|
+
if (part.length > 2) nameStopWords.add(part);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
if (resume.basics?.location?.city) {
|
|
1821
|
+
nameStopWords.add(resume.basics.location.city.toLowerCase());
|
|
1822
|
+
}
|
|
1823
|
+
if (resume.basics?.location?.region) {
|
|
1824
|
+
nameStopWords.add(resume.basics.location.region.toLowerCase());
|
|
1825
|
+
}
|
|
1826
|
+
const jdKeywords = extractKeywords(jobDescription, language, 30, nameStopWords);
|
|
1618
1827
|
const resumeText = extractResumeText(resume);
|
|
1619
1828
|
const resumeTokens = tokenize(resumeText, stopWords);
|
|
1620
1829
|
const resumeStems = new Set(resumeTokens.map((t) => simpleStem(t, language)));
|