Prop gun kills one on set of Alec Baldwin movie iPod at 20: Inventor looks back Moderna booster approved Ryan Gosling could play Ken in upcoming Barbie movie Uncharted movie trailer PS5 restock tracker

Twitter may finally have a solution to its troll epidemic

The company is reportedly working on a tool to let people filter out offensive tweets.

Jaap Arriens, NurPhoto via Getty Images

Twitter can be a powerful feed of real-time information. It can also be a cesspool filled with the worst the internet has to offer.

The company isn't just wrinkling its nose at the latter. Instead, according to Bloomberg, it's working on a tool that lets people filter out offensive and harassing tweets based on keywords. By selecting the right words, users should be able to block profanity and racial slurs or screen out offenders.

Twitter has come under criticism for its inability to balance the ability to let anyone say anything with the ugly rhetoric that weighs it down. Twitter users pummeled "Ghostbusters" star Leslie Jones with a series of racist and sexist attacks, and singer Adele briefly quit Twitter after seeing disturbing comments about her newborn baby.

Twitter declined to comment.