ChatGPT Writing Assistant is a Chrome extension that allows users to improve their writing directly in Google Docs and other text input fields by selecting different writing styles (Professional, Casual, Polite, Social Media). The extension uses OpenAI's GPT-4 model to suggest style changes and reformat the text based on user preference.
- Context Menu for Writing Styles: Right-click on selected text to choose from various writing styles (Professional, Casual, Polite, Social Media).
- Real-time Text Transformation: The selected text is automatically converted to the chosen style using OpenAI's API.
- Support for Multiple Text Fields: Works with text areas, input fields, and content-editable elements on most websites.
To get started, clone or download this repository to your local machine:
```bash git clone https://github.com/your-username/chatgpt-writing-assistant.git ```
- Open Chrome and navigate to the Extensions page by typing `chrome://extensions/` in the address bar.
- Enable Developer Mode (toggle in the top right corner).
- Click the Load unpacked button in the Chrome Extensions page.
- Select the folder where you cloned or downloaded the `chatgpt-writing-assistant` repository.
- The extension should now be visible in your list of Chrome extensions.
To use the extension, you'll need your own OpenAI API key. Follow these steps:
- Click on the ChatGPT Writing Assistant icon in your Chrome toolbar to open the settings popup.
- Enter your OpenAI API key in the designated input field.
- Click "Save Key". Your API key will be securely stored.
- You can obtain an API key by signing up at OpenAI.
- Select Text: Open a webpage with text input fields or a content-editable area (such as Google Docs).
- Right-click: Highlight the text you want to change, then right-click.
- Choose Writing Style: From the context menu, select one of the following writing styles:
- Professional
- Casual
- Polite
- Social Media
- Text Transforms: The extension will contact the OpenAI API, process the text, and replace the selected text with the chosen writing style.
- Google Chrome
- Node.js (if you plan on using build tools or package managers)
- Clone the repository: ```bash git clone https://github.com/your-username/chatgpt-writing-assistant.git cd chatgpt-writing-assistant ```
- Make any necessary modifications or improvements to the extension.
- Reload the extension in `chrome://extensions/`.
- Go to `chrome://extensions/`.
- Find the ChatGPT Writing Assistant extension and enable "Allow in Incognito."
- JavaScript: Core logic for Chrome extension.
- OpenAI GPT-4 API: Provides text transformation based on writing styles.
- Chrome Extensions API: Uses context menus, scripting, and background workers.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create your feature branch: `git checkout -b my-new-feature`.
- Commit your changes: `git commit -m 'Add some feature'`.
- Push to the branch: `git push origin my-new-feature`.
- Submit a pull request.
Please make sure your code passes any tests before submitting!
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to open an issue if you have any questions, bugs, or feature requests. You can also email me at: [[email protected]].
- New Writing Styles: Add more specialized writing styles (e.g., Legal, Technical).
- User Preferences: Save the user's most-used style as the default.
- More Language Support: Enable support for other languages besides English.
For questions, feedback, or contributions, feel free to contact me at: [[email protected]].