Conversation

big buncha R again tonight, which means copious notes and in those notes little bits of encouragement, like, "You'll figure it out!". I feel kinda dumb, but I think it helps. Past me encouraging future me.
1
2
this is all in service of trying to automatically determine the gender of an R tibble, given first names. This is SO PROBLEMATIC IN SO MANY WAYS, but the most technical problematic-ness is that R's gender function does not know how to deal with non-Western names too well.
1
So, like, gender("Susan") returns female, but gender("Haiyun") returns null. SURELY NOT A PROBLEM. THERE AREN'T THAT MANY CHINESE PEOPLE OUT THERE OR ANYTHING
3
2
Replying to
I meant more the code calling gender() would crash if it used it for something that didn't expect it to be null (I don't really know R but I assume it has some semblance of type checking?)
2
Show replies