[Bug]: Manual comma-separated skills are preserved as one JSON-array token
What happened?
Typed comma-separated skills are treated differently from the older plain string input path.
While checking the recommendation form, I noticed that static/script.js now sends selected skills as a JSON array:
skills: JSON.stringify(selectedSkills)
That works for normal single-skill chips, but if a user types HTML, CSS manually and presses Enter, window.addSkill() stores it as one selected skill. The backend then receives:
["HTML, CSS"]
In utils/recommender.py, parse_skills() preserves JSON array entries as-is:
raw_skills = [s.strip().lower() for s in parsed if isinstance(s, str) and s.strip()]
So the parsed skill becomes:
["html, css"]
instead of:
["html", "css"]
That lowers recommendation accuracy because projects store these as separate skills in data/projects.json.
I verified the behavior locally from the current code:
parse_skills('["HTML, CSS"]')
# ['html, css']
For a project with ["HTML", "CSS"], the score changes from 11.0 with the legacy comma-separated path to 5.0 with the JSON-array path.
Steps to reproduce
- Open the DevPath homepage.
- Type
HTML, CSSinto the skills input manually. - Press Enter so it becomes one selected skill chip.
- Select
Beginner,Web, andLow. - Submit the form.
- Compare backend parsing with:
from utils.recommender import parse_skills
print(parse_skills('["HTML, CSS"]'))
print(parse_skills("HTML, CSS"))
Expected behaviour
The JSON-array input path should normalize comma-separated manual entries the same way the legacy string path does.
For example:
parse_skills('["HTML, CSS"]')
should behave like:
parse_skills("HTML, CSS")
so recommendation scoring sees html and css as separate skills.
Area of the app affected
Homepage form
Python version
3.9+
Operating system
macOS / Linux / Windows
Relevant error output or logs
parse_skills('["HTML, CSS"]') -> ['html, css']
parse_skills("HTML, CSS") -> ['html', 'css']
Before submitting
- [x] I searched existing issues and this has not been reported before.
- [x] I can reproduce this bug consistently with the steps above.
- [x] I am running the latest version of the main branch.
Thank you for opening your first issue in DevPath.
Please make sure to:
- Read CONTRIBUTING.md
- Wait for assignment before starting work
- Follow repository guidelines carefully
Happy contributing.
Hi @komalharshita i would like to work on this issue under GSSOC 2026. could you please assign this issue to me ?
/claim under GSSoC'26 contributions
/assign
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!
This issue was closed because it has been inactive for an extended period. If this issue is still relevant, feel free to reopen it or create a new one.