Phenom Talent Marketplace receives candidate skill labels from multiple sources. Write a function that cleans these labels, applies known aliases, removes duplicates, and ranks the resulting canonical skills by frequency.
+, and # with one space, and trimming surrounding spaces.aliases, replace it with the normalized alias value.Implement normalize_skills(raw_skills, aliases), where raw_skills is a list of strings and aliases is a dictionary mapping string aliases to canonical string names. Return a list of canonical skill strings. Do not modify either input.
def normalize_skills(raw_skills, aliases):