Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when char "-" is in name. #10

Open
david-desousa-com-company opened this issue Oct 7, 2024 · 0 comments
Open

Problem when char "-" is in name. #10

david-desousa-com-company opened this issue Oct 7, 2024 · 0 comments

Comments

@david-desousa-com-company

Inside the file "name_dict.txt" we have names that include "-" char. Exemple : Jean-Luc, Jean-Claude ....

But if we try to determine gender we always have "null", because in function "sanitizeName" of class GenderDetector all the "-" char are replaced with a "+" char.

  • Solutions 1 : Do not replace "-"
  • Solution 2: Also replace when you read the dic file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant