- Pete Davidson is OK and at work following alarming Instagram post Saturday 7:26 PM
- Wisconsin Governor Scott Walker doesn’t know how to use a Venn diagram Saturday 5:38 PM
- This college student made a movie trailer to tease her boyfriend, and Twitter can’t get enough (updated) Saturday 3:13 PM
- ‘Kappa Delta Crypto’ aims to break stereotypes in five-minute Snapchat episodes Saturday 2:29 PM
- Two iPhone X customers are suing Apple over screen size Saturday 1:18 PM
- Secretary Ryan Zinke is out at the Department of the Interior Saturday 12:03 PM
- How to watch the New Orleans Bowl online for free Saturday 10:25 AM
- Prada’s racist toys pulled from shelves after social media backlash (updated) Saturday 10:22 AM
- How to watch the Camellia Bowl online for free Saturday 10:00 AM
- How to watch the Las Vegas Bowl online for free Saturday 8:30 AM
- How to watch Real Madrid vs. Rayo Vallecano online for free Saturday 7:30 AM
- ‘Runaways’ season 2 expands its universe and mysteries Saturday 7:30 AM
- How to watch the Cure Bowl online for free Saturday 7:05 AM
- How to watch Canelo Alvarez vs. Rocky Fielding for free Saturday 7:00 AM
- Politicians who inspired the internet in 2018 Saturday 6:30 AM
This coding tool is like spell-check, but for racism, sexism, and homophobia
Alex will let you know when your code is inappropriate.
Alex is like your personal spell-check, but for potentially offensive or harmful language. It’s a script created by Holland developer Titus Wormer that automatically checks text and suggests more appropriate options for the words you’re using.
The JavasSript tool checks 218 patterns of language and suggests edits in real time. For instance, changing “master” to “primary,” “slave” to “replica,” and “maiden name” to “birth name.” He began the project a month ago, and it was inspired by a tweet from a developer of color who called out offensive terms.
In order to figure out which loaded language to tag in the tool, Wormer said he did extensive research, and only programmed the tool to highlight subtly harmful language. Because words like “slut” and other profane words for women and people of color are obviously offensive and loaded terms, he didn’t include them in the initial build. (He caught some flack for that from commenters on 4chan, and said he will add suggestions to edit clearly derogatory language.)
“[I gathered the list] by reading up on what people find offensive,” Wormer told the Daily Dot via email. “I searched the Internet for… ‘gender equality writing,’ ‘bias-free writing,’ ‘considerate writing,’ ‘ableist language,’ ‘gender free writing,’ and other lists.” He also provided resources to this research at the bottom of Alex’s website.
Beyond the subtleties like using male-gendered pronouns while writing code or other texts, it’s not uncommon to find inappropriate language in open-source code. GitHub is rife with racist, sexist, and other derogatory terms inside code submitted by members of the tech community. To help combat offensive code, GitHub established an Open Code of Conduct for open-source communities designed to outline appropriate behavior and help people recognize and deal with harmful speech and harassment. And likewise, people are encouraged to suggest additions to Alex through email, Twitter, or GitHub.
Alex isn’t just a tool for programmers, however. Wormer said it can be used for many other types of writing.
“Don’t use it before you text (but maybe do before you text when drunk),” he said. “Do use it when checking your thesis, run it over project documentation. Maybe use it when creating a job listing, or when sending your CV to a possible employer.”
Wormer does add the caveat that Alex isn’t perfect, and might suggest changing a word when there’s no error—but when it does suggest stronger phrasing, it should force people to change their wording, or at least rethink the words they’re using to be more inclusive.
Selena Larson is a technology reporter based in San Francisco who writes about the intersection of technology and culture. Her work explores new technologies and the way they impact industries, human behavior, and security and privacy. Since leaving the Daily Dot, she's reported for CNN Money and done technical writing for cybersecurity firm Dragos.