DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Congestion Control in Cloud Scale Distributed Systems
  • Optimize AWS Costs With CloudWatch's Advanced Metrics, Dashboards, and Alerts
  • How Is AI Revolutionizing the World of Internet of Things?
  • Generative AI Models: Boosting Merchandising Analytics User Experience

Trending

  • Building Scalable and Resilient Data Pipelines With Apache Airflow
  • Java's Quiet Revolution: Thriving in the Serverless Kubernetes Era
  • Understanding Java Signals
  • Evolution of Cloud Services for MCP/A2A Protocols in AI Agents

How to Analyze Your Twitter Followers by Gender

A. Jesse Jiryu Davis has written a program that breaks down your followers of Twitter by gender and wants to share the results (and why it's important) to you.

By 
A. Jesse Jiryu Davis user avatar
A. Jesse Jiryu Davis
·
Jun. 27, 16 · Opinion
Likes (1)
Comment
Save
Tweet
Share
16.6K Views

Join the DZone community and get the full member experience.

Join For Free

At least, that's my estimate. Twitter does not ask users their gender, so I have written a program that guesses based on their names. Among those who follow me, the ratio is even worse: 83 percent are men.

The way to fix the first ratio is not mysterious: I should notice and seek more women experts tweeting about my interests, and follow them.

The second ratio, on the other hand, I can merely influence, but I intend to improve it as well. My network on Twitter should represent of the software industry's diverse future, not its unfair present.

How Did I Measure It?

I set out to estimate the gender ratio of the people I follow—my "friends" in Twitter's jargon—and found it surprisingly hard. Twitter analytics readily shows me the converse, an estimate of my followers' gender ratio:

Description: Chart titled, "Your current follower audience size is 1,455". A tall bar on the left is labeled, "Male, 83%". A short bar on the right is labeled "Female, 17%".

But Twitter doesn't tell me the ratio of my friends. That which is measured improves, so I searched for a service that would measure this number for me, and found FollowerWonk.

FollowerWonk guesses my friends are 71 percent men. Is this a good guess? For the sake of validation, I compare FollowerWonk's estimate of my followers to Twitter's estimate:

Twitter analytics
  men women
Followers 83% 17%
FollowerWonk
  men women
Followers 81% 19%
Friends I follow 72% 28%

My followers show up 81 percent male here, close to the Twitter analytics number. So far so good. If FollowerWonk and Twitter agree on the gender ratio of my followers, that suggests FollowerWonk's estimate of the people I follow (which Twitter doesn't analyze) is reasonably good. With it, I can make a habit of measuring my ratio, and improve it.

At $30 a month, however, checking my ratio with FollowerWonk is a pricey habit. I don't need all its features anyhow. Can I solve only the gender-ratio problem economically?

Since FollowerWonk's numbers seem reasonable, I tried to reproduce them. Using Python and some nice Philadelphians' Twitter API wrapper, I began downloading the profiles of all my friends and followers. I immediately found that Twitter's rate limits are miserly, so I randomly sampled only a subset of users instead.

The best gender-correlated information in a Twitter profile is the "name" field: For example, @gvanrossum's name field is "Guido van Rossum," and the first name "Guido" suggests that @gvanrossum is male. I decided to use first names to estimate my ratio.

I wrote a script that passes parts of each name to the SexMachine library to guess gender. SexMachine has predictable downfalls, like mistaking "Brooklyn Zen Center" for a woman named "Brooklyn," but its estimates are as good as FollowerWonk's and Twitter's:

  men women undetermined
Friends I follow 168 66 173
  72% 28%  
Followers 459 108 433
  81% 19%  

(Based on all 407 friends and a sample of 1000 followers.)

Know Your Number

Who is represented in your network on Twitter? Are you speaking and listening to the same unfairly distributed group who have been talking about software for the last few decades, or does your network look like the software industry of the future? Let's know our numbers and improve them.

twitter Analyze (imaging software)

Opinions expressed by DZone contributors are their own.

Related

  • Congestion Control in Cloud Scale Distributed Systems
  • Optimize AWS Costs With CloudWatch's Advanced Metrics, Dashboards, and Alerts
  • How Is AI Revolutionizing the World of Internet of Things?
  • Generative AI Models: Boosting Merchandising Analytics User Experience

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!