NewsGuard AI is an advanced news verification platform that uses artificial intelligence to analyze and verify the authenticity of news articles. In an era of rampant misinformation, this tool helps users distinguish fact from fiction by cross-referencing news content against trusted sources and providing detailed authenticity scores.
- Advanced machine learning algorithms analyze news content for authenticity with high precision
- Extracts key headlines and points from articles for targeted verification
- Automatically searches and compares news against trusted sources across the internet in real-time
- Uses Google Custom Search API to find relevant verification sources
- Get instant verification results with detailed credibility scores
- Comprehensive breakdown of factual accuracy, source consistency, detail accuracy, and context accuracy
- Visual authenticity score with percentage rating
- Detailed key findings, differences, and supporting evidence from trusted sources
- Backend: Flask (Python)
- Frontend: HTML, CSS, JavaScript
- AI/ML: Ollama with Llama 3.2 model
- APIs: Google Custom Search API
- Content Extraction: Trafilatura, BeautifulSoup
- Email: Flask-Mail
- Python 3.10 or higher
- Ollama installed with the Llama 3.2 model
- Google Custom Search API key and Search Engine ID
-
Clone the repository:
git clone https://github.com/VighneshDevHub/NewsGuard-AI.git cd NewsGuard-AI
-
Create and activate a virtual environment:
python -m venv env # On Windows .\env\Scripts\activate # On macOS/Linux source env/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure API keys:
- Update the Google Custom Search API key and Search Engine ID in
app.py
- Configure email settings in
app.py
if you want to use the contact form
- Update the Google Custom Search API key and Search Engine ID in
-
Run the application:
python app.py
-
Open your browser and navigate to
http://localhost:5000
- Input: Paste your news article or headline into the text area on the homepage
- Analysis: Click "Analyze" to extract key points from the article
- Cross-Check: Click "Cross Check" to search for and compare against trusted sources
- Authenticity Score: On the results page, click "Analyze Authenticity" to get a detailed authenticity report
- Authenticity Score: Overall percentage indicating the article's credibility
- Key Findings: Important observations about the article's accuracy
- Differences: Notable inconsistencies or issues found
- Supporting Evidence: Quotes from trusted sources that verify or contradict the article
- Score Breakdown: Detailed scores for factual accuracy, source consistency, detail accuracy, and context accuracy
- URL Analysis: The system processes the input news article
- AI Processing: Advanced machine learning algorithms analyze the content
- Cross-Reference Check: The system compares the article against trusted sources in real-time
- Score Generation: A comprehensive credibility score is generated based on multiple factors
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or suggestions, please use the contact form on the website or open an issue on GitHub.
Built with ❤️ for truth in journalism