Pattern Hunters is a browser extension designed to identify dark patterns on websites. This project includes a browser extension, a web scraper, and an NLP model trained to recognize dark patterns in website content.
- Introduction
- Directory Structure
- Getting Started
- Contibutors
- Documentation
- Contributing
- Demonstration
A dark pattern is a user interface carefully crafted to trick users into doing a certain action that they wouldn’t have done otherwise. Dark patterns are of many types such as forced action, nagging, confirm shaming, interface interference, false urgency, and basket sneaking to name a few. We aim to solve this problem by providing a solution that can detect dark patterns on various e-commerce digital platforms to keep our consumers safe through a browser extension by highlighting the dark patterns and providing the users with knowledge about them. It would help protect users from the malicious intentions of developers who aim to increase their profits through these malpractices. We aim to create a transparent digital world.
├── Dark Pattern
│ ├── Augmentation --> This module contains code for data augmentation using contextualized word embeddings.
| |
│ ├── Dataset --> Holds the dataset in TSV format used for training the NLP model.
| |
│ ├── Extention --> HTML, CSS, and JavaScript files of the browser extension.
│ │
│ ├── Models --> Contains pickled (.pkl) files of the trained NLP model.
| |
│ ├── Backend
│ | ├──DPBHscrapper --> Contains files for the web scraper extracting text from webpages
| | ├──app.py --> File to to run extention on local machine.
| |
│ ├── Training --> Code files used to train the NLP model.
To get started with Pattern Hunter, follow these steps:
- Clone the repository:
git clone https://github.com/ItsPranavz/pattern-hunters.git
- Install dependencies:
pip install -r requirements.txt
- Change working directory
cd backend
- Run backend server
python app.py
- Load
extension
folder in your browser. - Active the extension on your browser.
(https://github.com/ItsPranavz/pattern-hunters/edit/main/documentation)