Typing-Auto-Refiner is an AI-powered tool for auto-correcting typing and refining tone in common applications through a Chrome extension. It leverages the OpenAI API and is designed to be significantly more cost-effective than market alternatives (e.g., Grammarly) for daily use by students and professionals.
The tool is implemented as a Chrome extension, providing auto-correction and tone-tuning functionality for selected text. Here's the process:
- The extension sends the selected text to a local FastAPI backend server.
- The server processes the request and calls the OpenAI API using the user's API key.
- OpenAI performs the text polishing task.
- The user can then choose to accept or reject the suggested changes in Chrome.
- Git
- Python 3.7+
- Chrome browser
-
Clone the repository:
git clone https://github.com/yourusername/Typing-Auto-Refiner.git cd Typing-Auto-Refiner
-
Create a
.env
file in thesrc/
directory with your OpenAI API key:OPENAI_API_KEY=your_openai_api_key_here
-
Start the local backend server:
python src/api.py
You should see output similar to:
INFO: Started server process [41553] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://localhost:8000 (Press CTRL+C to quit)
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" using the toggle switch in the top right corner
- Click "Load unpacked" and select the
Typing-Auto-Refiner/chrome
directory - The extension should now appear in your right-click menu
- Ensure the backend server is running
- Select text in any Chrome input field
- Use the extension to request text refinement
- Review and apply the suggested changes
Contributions are welcome! Please feel free to submit a Pull Request.