Let’s build an insultbot: getting ready to welcome trollers and haters

Jorge Guerra Pires, PhD
IdeaCoding Lab
Published in
2 min readDec 6, 2022

--

Photo by David Knox on Unsplash

Content moderation is a very interesting topic: you must decide whether a sentence is toxic, or similar. Even though ChatGPT, and alike, can do it now in an advanced manner, you may want to try out other options.

TensorFlow.js has one!

1° step: create a basic Angular app

ng new client

2° step: install the basics

npm install @tensorflow/tfjs @tensorflow-models/toxicity

3° step: create a component to moderate

Testing it with “you suck”!

You can have fun here: live bot.

Sounds pretty toxic to me!

Do not take insults personally, let artificial intelligence handle them for you! and live your inner peace!

--

--

Jorge Guerra Pires, PhD
IdeaCoding Lab

Independent Researcher and writer at Amazon | “I want thinkers, not followers!” | More: https://linktr.ee/jorgeguerrapiresphd