UNPKG
ats-checker
Version:
latest (1.0.0)
1.0.0
A simple ATS (Applicant Tracking System) resume and job description matcher
ats-checker
/
text2key.js
23 lines
(11 loc)
•
277 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const
nlp =
require
(
'compromise'
);
function
getKeys
(
Desc
){
let
doc =
nlp
(
Desc
);
let
nouns = doc.
nouns
().
out
(
'array'
);
let
Match
=
''
;
for
(
let
i=
0
; i<nouns.
length
;i++){
Match
+=
' '
+nouns[i]; }
return
Match
; }
module
.
exports
={getKeys};