- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
That's some awesome regex abuse.
Admin
Names are notoriously hard to connect to genders. Ask Chris, Sam, Alex, Morgan, Tracy and about 100 other names.
Admin
Maybe they average 50% accuracy. They'd return the correct result for me. But fail for females that have a suffix with my name.
Admin
The start of the "female" regex is particularly awesome:
(a|i|
Admin
Where is the WTF? This is bulletproof code!
yours, Conchita Wurst
Admin
Obligatory "But what about asian names and their unicode characters"-comment. This function does NOT return an empty message when Unicode is involved. This is so wrong!
Maybe the function is only used as a suggestion to preselect a field?
Also: Where are the Commenters who always do everything better? I need to see WTF-Code-Comments :cry:
Filed Under: And what about people who don't want to be put into a gender category! Clearly WTF!
Admin
What about those people who fit in multiple gender categories? hmm?
;-)
Admin
Brent's co-worker then went on to solve the halting problem. (Turns out you just need to use regex to analyse the program's code, Alan.)
Admin
Fixed it to pass all of my test cases:
It's easily extensible at least.
Admin
umm.... you would have fallen into the male case anyway. the female regex doesn't match your name.
Admin
I like the fact that the 'female' regex looks for fer$ and then later for er$ And how a f*ckton of nicknames and diminutives are going to come out as female regardless of the name they're derived from. And all the almost-unisex names that are differentiated by ending in -y or -i.
@Keith the original would have returned 'male' for Keith anyway.
Admin
Pesky dollar sign...
Admin
There was a ruby gem called sexmachine that gave you a gender based on a name (with a very extensive database). It was renamed gender_detector after feminists complained. Go figure.
Admin
:sagittarius: LMFAO :cancer:
Admin
Admin
https://www.youtube.com/watch?v=WOHPuY88Ry4
Admin
Hey @Remy.
Admin
Congratulations: this must be the worst idea of 2014.
Admin
What about using Discourse for TDWTF and the new Sitedesign?
Filed Under: We need a focus group to decide on the worst idea ever... and this idea is a participant!
Admin
hmmm without knowing whether it was used for (in roughly least to most WTF order)
it's hard to say if it is the worst
Admin
And Andrey|Andrei (depending on how you spell it), Larry, Bobby.
Admin
It's not often that bad code makes me twitch. I twitched this morning.
Admin
Tried this on the top 100 baby names of 2013. Female names categorized as male (all by the default case):
Male names categorized as female:
Male names actually caught by the first regex:
Admin
Filed under: your CEO just walked into your office to report a bug
Admin
Maybe they are located somewhere where everyone's name is Elijah, Joshua and Christopher?
Admin
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now [spoiler] That's Sexist! [/spoiler]
Admin
well even in the least WTFy case it is pretty WTFy
as for why it's abusiness requirement? Marketing. turns out marketers want to know gender as that actually turns out to affect how one responds to marketing in a huge way (good luck categorizing me!)
we actually do this in our code base for that. users are asked gender but are given an option to decline. if they decline the system will take a variety of factors (name, interaction history, birth date, purchase history, etc) and guess a gender (it is marked as such so marketers know not to rely on it if they interact with the customer directly)
all guessed genders are recalculated once a month as user interactions continue and the guess can be refined (usually) after a year the guess has either settled down to +98.5% confidence or the user is permanently marked undeclared.
Admin
Google used to have a page where you can check what data they think they know about you. It had me down as male. I was not surprised.
Aha! Found it again: https://www.google.com/settings/u/0/ads?hl=en&sig=ACi0TCh69_tuf-Y72cXyHhgWY21WyU1zY_JLM9KoSmukS_8ryX1KpIX_VJze8HVhePHzfIoMlI5JnQfhBfumhKkmteWyqLNhpV231X6lBX44ISZ-ujKcdomle3h4ZISyuBEkoU5AowuFfsvyl_rs6AqyzU8A_PID8vOhS0qdin4bAd_YneI31-6qr0GOT7Ej4Kos4kVi3d7v
(You'll want to be logged into a google account to see it)
Admin
My name is Andyelle, you insensitive clod!
Admin
:laughing: even google can't figure me out! awesome!
Admin
Admin
To be fair, it had me as male back before Google+ existed, so it didn't have my gender from me at all. Now it says I'm female based on my Google+ profile that says I'm female, and it has my age correct as well.
Admin
i never told G+ my gender. it does have my age though so i'm surprised the range of age is so wide.
Admin
I think the age is one of several preset categories for marketing reasons.
Admin
You gave google correct information out of your own free will? Not thats TRWTF here!
Filed Under: We should totally find out what algorithm google uses for guessing the gender. It's probably stereotypical and sexist
Admin
It's definitely sexist. I think it had me as male due to my interest in IT topics. It's certainly not sports, and I don't google beauty or child-related products often either.
Admin
And of course this would class me as female, which I'm not. (In my case, "Steve" is "Stephen", and names ending in "en" are female names according to this code.)
There are also many inconsistent treatments of variants of the same name. "Anne" gets "female" but "Ann" gets "male". In the same way, "Susan" is male while "Susanne", "Suzanne" and "Sue" are female. And "Kate" and "Cathy" are male, while "Katy", "Katie", "Katherine" and "Catherine" are female, while "Katyusha", of course, is a Multiple Rocket Artillery system. Joshua is correctly categorised, but Jeremy is not and nor are, say, Mandy, Peter, Ken, Kim (when short for Kimball), Lee (when Lee is a man).
7/10 Would WTF again.
Admin
hmm.... actually apparently i did answer the question at some point...
[image] Linky
Admin
Google thinks I speak Polish. [image] I doubt and if I do it won't be very polished.
Admin
According to the WTF code, my given name Timothy is female.
Admin
Maybe it's time to let that inner female out?
Admin
As a guy who has been using Cold Fusion for 10 years, I can say that CF is like any other language, you can do powerful elegant things with it, but it will not stop you from doing cringe worthy things either. BTW Cold Fusion is all Java underneath.
Admin
Maybe, but you google for cupcakes a lot.
Admin
http://i.imgur.com/3GD7oUH.png
Damn, do I really look that old?
Admin
Yeah, but it doesn't write like Java at all. It's highly bastardized.
Admin
Marketoids. I'd rather deal with a tailoring algorithm that simply looks at my purchase and interaction history than have the systems WAG genders for the purposes of tailoring marketing.
At least you're able to make it so that the guesswork a) isn't completely fragile, and b) is *marked as such*. I can only imagine the torrent of WTFs that'd pour forth if people used the guess as gospel...Admin
we're talking about marketers.... they only see what they want to see...
we lost a few contracts because of that. that's why we stopped showing the guessed genders to front end marketers....
Admin
Did anyone click on the word "Discourse" in the article ???
Admin
"Sandy is a boy's name." -- from the html comments... True unless you're Sandy Duncan e.g. When Sandy is the abbreviation for Sandra.
Admin
No, given that it isn't there. Now, if you'd said “ColdFusion”…