WhatsCheck allows the users to analyze WhatsApp messages offensiveness before sending them. It also warns the user with a popup if the message to be sent was detected as offensive.
This application was developed using the interface of Direct to Chat, an open source application developed by Mohammad Yasir which has the logic to send the messages over WhatsApp using itsAPI through HTTP requests.
For the analysis of the messages, an average word vector TensorFlow Lite model has been trained using an english offensiveness dataset provided by Nitin Tiwari, as well as some of its examples to power up on-device inference of the model.
This application works on Android 7.1+ (API Level 25) devices. It may not be usable on devices with very small screens or very low DPI.
The file TrainingAndEvaluationNotebook.ipynb contains the Jupyter Notebook used to train and to evaluate the different model architectures proposed to be used with this application, including the final average word vector model deployed in the app, with a F1 macro score of 0.96.