Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Isn't that traditionally the letter used to identify something as feminine or not? What a hack indeed...
-
leirbag879y@codeclod yep. Like the word 'cachorro' male for Dog and 'cachorra' is the female. Fucking trickπ π π π
-
chrizzle7269yHah, that's brilliant. The only Brazilian I know is in fact called Gabriella. Afaic, that's a 100% success rate.
-
Works with most German names as well, but not all.
Successes would he Hanna, Johanna, Anna, Elena, Thea, Sina
Errors would be Hannah, Jenny, Jennifer, Marie
I was refactoring the most underneath part of our server code and just found 'getUserGender' method. I think for a second:We don't have this info. Look inside:
return name.endsWith('a')?"female":"male";
π it's surprising how much it works in Brazil.
undefined