ProjectsDecember 26, 2026

Misinformation Detector on Twitter - Python NLP Project

Misinformation Detector on Twitter - Python NLP Project
Misinformation Detector on Twitter is a Python-based algorithm designed to identify fake and misleading tweets by cross-referencing them with authenticated news sources. The project demonstrates expertise in natural language processing, sentiment analysis, and algorithmic problem-solving to combat misinformation on social media platforms.
  • News API Integration: Authenticates tweets against Times of India news API for fact-checking
  • Keyword Matching: Filters tweets based on contextual similarity with reference news articles
  • Sentiment Analysis: Determines if tweets are negative or assertive using NLP techniques
  • XOR Logic: Applies logical operations to detect contradictions between tweets and verified news
  • Configurable Similarity: Adjustable SimilarityDegreeValue for keyword matching precision
  • Misinformation Detection: Identifies tweets that contradict verified news sources
The algorithm follows a systematic approach to detect misinformation:
  • Filters tweets that are out of context by matching keywords with reference news
  • Uses configurable SimilarityDegreeValue to determine relevance
  • Ensures only relevant tweets are analyzed
  • Applies NLP functions to detect negative operations in text
  • Classifies tweets as either Negative or Assertive
  • Uses pattern recognition to identify sentiment patterns
  • Performs XOR operation between tweet sentiment and news sentiment
  • Binary classification: 0 for negative, 1 for positive
  • Detects contradictions: If tweet (0) XOR news (1) = 1, the tweet contradicts the news
  • Flags tweets where XOR result is 1 (contradiction detected)
  • Identifies false information that contradicts verified news sources
  • Provides actionable results for fact-checking
  • Python: Core programming language
  • NLTK (Natural Language Toolkit): Natural language processing and text analysis
  • Pattern: Advanced pattern matching and sentiment analysis
  • News API: Times of India API for authenticated news sources
  • Twitter API: For fetching and analyzing tweets
  • Implemented sophisticated NLP algorithms for text analysis
  • Created configurable similarity matching system
  • Developed XOR-based contradiction detection logic
  • Integrated multiple APIs for comprehensive fact-checking
  • Built scalable architecture for processing large volumes of tweets
Problem: Filtering relevant tweets from noise
Solution: Implemented keyword matching with configurable similarity thresholds, allowing fine-tuned control over what constitutes relevant content.
Problem: Accurately determining tweet sentiment
Solution: Used NLTK and Pattern libraries for advanced sentiment analysis, detecting negative operations and classifying text accurately.
Problem: Identifying when tweets contradict verified news
Solution: Implemented XOR logic to mathematically detect contradictions between tweet sentiment and news sentiment.
This project has practical applications in:
  • Social Media Monitoring: Automated detection of misinformation on Twitter
  • Fact-Checking Services: Supporting human fact-checkers with automated analysis
  • News Verification: Cross-referencing social media claims with verified news sources
  • Research: Academic research on misinformation patterns and detection methods
The Misinformation Detector successfully demonstrates:
  • Proficiency in Python and NLP libraries (NLTK, Pattern)
  • Understanding of sentiment analysis and text classification
  • Ability to design algorithms for real-world problems
  • Integration of multiple APIs and data sources
  • Problem-solving skills in combating misinformation
This project showcases early expertise in natural language processing and algorithmic thinking, demonstrating the ability to tackle complex problems in the information verification space. View on GitHub

Related projects

CityPulseApp - React Native Event Discovery App

A modern React Native mobile application for discovering and managing local events. Built with Expo, featuring event discovery via Ticketmaster API, user authentication, favorites management, biometric authentication, multi-language support, and offline capabilities.

Natours API - RESTful Tour Booking Backend

A comprehensive RESTful API backend for a tour booking application. Built with Node.js, Express, and MongoDB, featuring user authentication, tour management, booking system, payment integration, and advanced filtering capabilities.

Music App - Modern Music Player Application

A modern music player application built with React, featuring music playback, playlist management, library organization, and a beautiful user interface. Demonstrates audio handling, state management, and responsive design.

GitHub Finder - GitHub Dashboard with Context API

A GitHub dashboard application that uses the GitHub API to display user profiles, repositories, and statistics. Built with React, Context API for state management, and modern UI components.

ContactKeeper - MERN Stack Contact Management App

A full-stack contact management application built with MERN stack (MongoDB, Express.js, React, Node.js) featuring Material UI for a modern, responsive interface.

DJ Event Frontend - Next.js Event Management

A modern event management frontend application built with Next.js and TypeScript. Features server-side rendering, static site generation, and optimized performance for event listings and management.

Budgety - Budget Management App in React

A personal budget management application built with React, helping users track income, expenses, and calculate budgets. Features an intuitive interface for financial planning and tracking.

IT Logger - Redux & Redux Thunk Application

An IT logging application built with React and Redux for state management, featuring Redux Thunk for handling asynchronous actions. Demonstrates advanced state management patterns.

Building Once UI, a Customizable Design System

Development of a flexible and highly customizable design system using Next.js for front-end and Figma for design collaboration.

Once UI: Open-source design system

Automating Design Handovers with a Figma to Code Pipeline

Explore the enduring debate between using spaces and tabs for code indentation, and why this choice matters more than you might think.

Todo App - React + Vite + TailwindCSS

A modern, fast Todo application built with React, Vite for lightning-fast development, and TailwindCSS for beautiful, utility-first styling. Demonstrates modern React patterns and build tooling.