SentiLog-AI icon indicating copy to clipboard operation
SentiLog-AI copied to clipboard

Create a feature that adds hate speech / toxicity detection using [Perspective API] to the existing journal and news analysis functionality.

Open lohaarja opened this issue 1 year ago • 3 comments

  1. Use Perspective API to score text for toxicity. 2.Add a backend route (e.g. /analyze-toxicity) that returns a score + toxicity flag. 3.This can optionally reject or flag user content based on thresholds (e.g. 0.7+). 4.Will keep frontend changes minimal (can work as backend-only if preferred). 5.Encourages safer mental health tracking by detecting toxic or harmful self-talk. 6.Flags hate speech in news articles for responsible content moderation. 7.Enhances user safety and aligns with the platform's goals around wellness.

lohaarja avatar Aug 02 '25 14:08 lohaarja

@lohaarja work on it.

implement the following functionality:

  • Upon fetching news from news APIs and storing it in our database using our sentiment analysis model, also utilise the mentioned API.
  • Add a new field to the news that will assist in detecting its toxicity level.
  • Store the data with the added field.

IkkiOcean avatar Aug 02 '25 15:08 IkkiOcean

@lohaarja whats the update? its been more than a week since I assigned to you. report back with PR

IkkiOcean avatar Aug 12 '25 05:08 IkkiOcean

Started working on it but having some issues with the code and API. Will try to resolve as soon as possible. Sorry for the delay.

lohaarja avatar Aug 12 '25 05:08 lohaarja