1.0.5 • Published 12 months ago
unojobs-match-score v1.0.5
Candidate match score package
Getting Started
This package contains the method to calculate the match score for a job post and a candidate and vice versa.
How to calculate job post match score ?
import { calculateJobPostMatchScore } from "match-score";
import { JobPost } from "match-score/lib/typings/types";
Function arguments
- job_posts (Required) : List of job posts that needs to be compared with the candidate data
- work_day (Optional): Candidates work day label
- joining_timeframes (Optional): Candidates list of joining timeframe labels
- work_mode_preference (Optional): Candidates work mode preference label
- ids_job_skill (Optional): Candidates list of job skills ids
- avg_salary (Optional): Candidates current and expected salary average
- open_to_relocate (Optional): Candidates open to relocate value
- min_match_perc (Optional): Min match percentage required, by default set to 0%
- max_match_perc (Optional): Max match percentage required, by default set to 100%
const jobPost: JobPost = {
distance: 15948.90714921566,
max_salary: 1000000,
work_day: "5 Days",
work_mode_preference: "WFH",
notice_period: "Immediate",
job_post_skills: [1],
};
calculateJobPostMatchScore({
job_posts: [jobPost],
work_day: "5 Days",
joining_timeframes: ["Immediate"],
work_mode_preference: "WFH",
total_work_experiences: ["Fresher"];
education_levels: ["Masters"];
ids_job_skill: [1, 2, 3],
current_salary: 1000000,
expected_salary: 1400000,
open_to_relocate: true,
min_match_perc: 0,
max_match_perc: 0,
})
How to calculate candidate match score ?
import { calculateCandidateMatchScore } from "match-score";
import { JobPost } from "match-score/lib/typings/types";
Function arguments
- candidates (Required) : List of candidates that needs to be compared with the job post data
- work_days (Optional): Job post work day label
- joining_timeframes (Optional): Job post list of joining timeframe labels
- total_work_experiences (Optional): Job post list of total work experiences
- education_levels (Optional): Job post list of degree levels
- work_mode_preference (Optional): Job post work mode preference label
- ids_job_skill (Optional): Job post list of job skills ids
- salary (Optional): Job post salary input
- min_match_perc (Optional): Min match percentage required, by default set to 0%
- max_match_perc (Optional): Max match percentage required, by default set to 100%
const candidate: Candidate = {
distance: 15948.90714921566,
expected_salary: 1000000,
work_day: "5 Days",
work_mode_preference: "WFH",
notice_period: "Immediate",
total_work_experience: "Fresher",
candidate_educational_details: ["Masters"],
candidates_skills: [1, 2],
open_to_relocate: false,
};
calculateCandidateMatchScore({
candidates: [candidate],
work_days: ["5 Days", "5.5 Days"],
joining_timeframes: ["Immediate"],
total_work_experiences: ["Fresher"],
education_levels: ["Masters"],
work_mode_preference: "WFH",
salary: 100000,
ids_job_skill: [1, 2],
min_match_perc: 0,
max_match_perc: 100
})