Suggestion from the names of the main categories
We compare the names of the main categories to the skill and suggest the category that is the closest to the skill, similarity-wise.
Suggestion from already categorized skills
From a skill to categorize, with search for the five closest skills, similarity-wise, and check their category. We then sum up the similarity score of the categories of the five skills and suggest the category with the higher score. (Meaning if the categories are all different for the top 5 skills, we'll suggest the one from the closest skill. On the other hand, if multiple skills have the same category we'll suggest this one instead)