-
-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Labels
Description
π Have You Searched Existing Issues?
- I have searched the existing issues to avoid duplicates
π Describe the Performance Issue
β Problem
The AI assistant incorrectly identifies the user's gender as "male" when the input contains the text "woman entrepreneur".
π§ͺ Input Example
"I am a woman entrepreneur wanting to start a small business."
π§Ύ Expected Output
Gender should be detected as female.
π·οΈ Actual Output
Gender detected as male.
π Possible Cause
The keyword detection logic is matching the substring "man" inside the word "woman".
π― Suggested Fix
Update the gender detection logic to use word boundaries (e.g., regex \bman\b instead of includes("man")) and check female keywords before male keywords.
π» File(s) Potentially Affected
(probably JS related: input parser, NLP script)
π§ Additional Notes
Once fixed, test with:
- woman entrepreneur
- female student
- businessman
- I'm applying for a loan and I am a girl
π§ͺ Environment Details
No response
π Steps to Reproduce
No response
π Logs / Screenshots (Optional)
π Contributor Checklist
- I agree to follow this project's Code of Conduct
- I want to work on this issue