Type any sentence and watch AI figure out whether it's positive, negative, or neutral — word by word, with real-time highlighting and a live emotion meter!
Split the sentence into individual words. Each word will be checked against the sentiment dictionary.
Each word has a sentiment score: positive words get +1, negative words get -1. Special intensifiers (very, really) boost scores.
"Not happy" = negative! The model flips the score of words that follow "not", "never", "don't", etc.
Add up all word scores, divide by sentence length, and map to positive/negative/neutral with a confidence %.
You built a real-time sentiment analyser and mastered negation handling!
A list of words with pre-assigned sentiment scores. "Fantastic" = +2, "terrible" = -2, "the" = 0.
"Not happy" ≠ "happy". Negation words like "not", "never", "don't" flip the sentiment of nearby words.
"Very", "extremely", "really" amplify sentiment. "Very good" is more positive than just "good".
Advanced NLP detects sentiment for specific aspects: "great food but terrible service" has mixed sentiment.
"Oh great, another Monday" sounds positive but is negative. Sarcasm is still very hard for AI to detect!
Product reviews (Amazon), social media monitoring (Twitter), customer support, stock market prediction!