Project Info
FactChecker Pro - Chrome Extension
A Google Chrome extension that fact-checks statements in real-time, similar to Grammarly but for factual accuracy. The extension analyzes text on web pages and highlights potentially inaccurate or unsourced factual claims with suggestions for improvement.
Features
- Real-time Fact Checking: Automatically scans web pages for factual statements
- Smart Pattern Recognition: Identifies claims about statistics, dates, studies, and more
- Visual Highlighting: Highlights potentially problematic statements with red underlines
- Interactive Tooltips: Hover over highlights to see detailed explanations and suggestions
- Clickable Source Links: Direct links to verify information with original sources
- Customizable Settings: Toggle features on/off and adjust behavior
- Statistics Tracking: Monitor how many facts have been checked and issues found
- Modern UI: Clean, professional interface similar to Grammarly
Installation
Method 1: Load as Unpacked Extension (Development)
- Clone or download this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the extension folder
- The extension should now appear in your extensions list
Method 2: Create Icons (Required)
Before using the extension, you need to create icon files:
-
Create three PNG icon files:
icons/icon16.png(16x16 pixels)icons/icon48.png(48x48 pixels)icons/icon128.png(128x128 pixels)
-
You can use any image editor or online icon generator to create these icons
Usage
- Enable the Extension: Click the FactChecker Pro icon in your Chrome toolbar
- Browse Normally: The extension will automatically scan web pages for factual statements
- Review Highlights: Look for red-highlighted text that may contain factual issues
- Hover for Details: Mouse over highlighted text to see explanations and suggestions
- Adjust Settings: Use the popup to customize the extension's behavior
How It Works
Fact Detection
The extension uses pattern matching to identify potential factual statements:
- Statistics: Numbers with percentages, millions, billions
- Dates: Years, dates, historical references
- Comparative Claims: "more than", "less than", "higher", "lower"
- Absolute Statements: "always", "never", "100%", "every"
- Research Claims: "studies show", "research indicates"
- Measurements: Quantities with units (miles, pounds, degrees)
- Institutions: Universities, colleges, research centers
- Historical Events: Time-based references
Fact Checking Process
- Text Analysis: Scans page content for factual patterns
- Statement Extraction: Identifies individual factual claims
- Issue Detection: Checks for common factual problems
- Highlighting: Marks problematic statements with visual indicators
- Suggestions: Provides improvement recommendations
- Source Verification: Links to original sources for fact verification
Source Links
The extension provides direct links to verify information with original sources:
- Wikipedia: Links to specific articles for reference checking
- World Bank: Links to data pages for economic and demographic facts
- Google Fact Check: Links to the fact-checking database
- OpenAI: Links to research resources
- Google Natural Language: Links to API documentation
Users can click on source links in tooltips to open the original sources in new tabs for verification.
Settings
- Auto-check facts: Automatically scan new content
- Highlight issues: Show visual indicators for problems
- Show suggestions: Display improvement recommendations
Current Limitations
This is a demonstration version with mock fact-checking. For production use, you would integrate with:
- Snopes API: For fact-checking verification
- FactCheck.org API: For political fact-checking
- Google Fact Check API: For general fact verification
- OpenAI API: For AI-powered fact analysis
- Wikipedia API: For reference checking
Development
File Structure
├── manifest.json # Extension configuration
├── popup.html # Extension popup interface
├── popup.css # Popup styling
├── popup.js # Popup functionality
├── content.js # Content script for page analysis
├── background.js # Background service worker
├── styles.css # Content script styling
├── icons/ # Extension icons
│ ├── icon16.png
│ ├── icon48.png
│ └── icon128.png
└── README.md # This file
Adding Real Fact-Checking APIs
To integrate with real fact-checking services, modify the mockFactCheck function in content.js:
async function realFactCheck(statement) {
// Example: Snopes API integration
const response = await fetch('https://api.snopes.com/v2/fact-check/search', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({ query: statement })
});
const data = await response.json();
return {
hasIssues: data.rating === 'false' || data.rating === 'mixture',
issues: data.explanation ? [data.explanation] : [],
suggestions: data.suggestions || [],
confidence: data.confidence || 0.8
};
}
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
License
This project is open source and available under the MIT License.
Support
For issues or questions, please open an issue on the GitHub repository.
Note: This extension is for educational and demonstration purposes. Always verify information from multiple reliable sources for important decisions.
Analysis
View
Metric
- 12
- 8
- 2
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- CSSIn code
- HTMLIn code
- JavaScriptIn code
3 of 3 appear in the indexed code.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
140 KB
Source files
15
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
0308ehub/FactChecker
21 files · 227 KB · @ 54ed3a8
Structure
Interface
6 files · 29%Screens, components and styles rendered to the user.
Application logic
6 files · 29%Domain rules, services and shared utilities.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- JavaScript60%
- HTML19%
- Markdown15%
- CSS6%
Share of indexed source by file size. Binary and vendored files are excluded.
This project’s features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.