Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ReviewGuard

A browser-based NLP application that analyzes product reviews using an interpretable rule-based scoring engine to identify potentially fake, spam, or incentivized reviews. The application runs entirely in the browser and provides transparent explanations for every prediction.

HTML5 CSS3 JavaScript GitHub Pages


🌐 Live Demo

👉 Launch ReviewGuard


📸 Screenshots

Home Page
Genuine Review Detection
Fake Review Detection

📖 Overview

Online reviews play a major role in influencing consumer decisions, making fake and incentivized reviews an increasing challenge for e-commerce platforms.

ReviewGuard demonstrates how Natural Language Processing (NLP) concepts can be applied through a transparent, rule-based scoring system. Instead of relying on a trained machine learning model, the application evaluates multiple linguistic patterns and combines them into a Fake Probability Score (0–100).

Each prediction is accompanied by a detailed explanation, allowing users to understand exactly why a review has been classified as Genuine, Suspicious, or Fake.

Note

ReviewGuard is an educational project demonstrating rule-based NLP techniques for fake review detection. It is designed to illustrate interpretable text analysis and is not intended to replace production-grade machine learning systems.


✨ Features

  • Rule-based NLP scoring engine
  • Multi-signal linguistic analysis
  • Fake Probability Score (0–100)
  • Interactive confidence meter
  • Explanation of detected linguistic signals
  • Session history with one-click review reload
  • Live review statistics
  • Fully responsive interface
  • Runs entirely in the browser
  • No backend or external dependencies

⚙️ How It Works

  1. User enters a product review.
  2. The review is preprocessed.
  3. Eight linguistic signals are analyzed.
  4. A weighted score is calculated.
  5. A Fake Probability Score is generated.
  6. The review is classified and the detected signals are explained.

🔍 Detection Signals

Signal Description
Excessive punctuation Detects repeated exclamation marks
ALL CAPS words Detects exaggerated emphasis
Superlative phrases Identifies unrealistic promotional language
Generic recommendation phrases Detects common spam patterns
Repeated positive adjectives Detects unnatural repetition
Very short reviews Flags low-information reviews
Personal experience indicators Reduces the fake score for authentic experiences
Balanced language Rewards constructive criticism and balanced opinions

📊 Classification

Fake Probability Verdict
0–29 ✅ Genuine
30–54 ⚠️ Suspicious
55–100 🚩 Fake

🏗️ Architecture

User Review
     │
     ▼
Text Preprocessing
     │
     ▼
Rule-Based NLP Engine
     │
     ▼
Weighted Score Calculation
     │
     ▼
Fake Probability Score
     │
     ▼
Verdict Generation
     │
     ▼
Interactive User Interface

🛠️ Technology Stack

Frontend

  • HTML5
  • CSS3
  • JavaScript (ES6)

Deployment

  • GitHub Pages

Fonts

  • Google Fonts

📂 Project Structure

ReviewGuard/
│
├── images/
│   ├── home.png
│   ├── genuine.png
│   └── fake.png
│
├── index.html
├── report.docx
└── README.md

🧪 Example Reviews

Fake Review

OMG!!! BEST PRODUCT EVER!!! Absolutely AMAZING!!! Everyone should buy this right now!! HIGHLY RECOMMEND!!!

Genuine Review

I bought this last month for my daughter. The build quality is good, although the battery life could be better. Delivery took five days.

🚀 Future Improvements

  • TensorFlow.js integration
  • Transformer-based NLP models (BERT / DistilBERT)
  • Browser extension for real-time review analysis
  • Batch review processing
  • Multilingual support
  • Explainable AI visualizations

📄 Documentation

A detailed project report is included in this repository covering:

  • Problem Statement
  • Literature Review
  • System Design
  • Implementation
  • Testing
  • Results
  • Future Scope

👨‍💻 Author

Debaditya Ghosal

Computer Science Undergraduate (Artificial Intelligence & Machine Learning)


📜 License

This project is intended for academic and educational purposes.

About

Rule-based NLP web application for detecting fake product reviews using linguistic pattern analysis.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages