Its not readdy for full use.
AI Text Editor is a Windows application that brings the power of AI to any text field on your system. With a simple hotkey, you can instantly fix grammar, change the writing style of your text, or give it a direct instruction.
- Universal Compatibility: Works in any application that supports text selection.
- Grammar Correction: Instantly fix grammar and spelling mistakes in your text.
- Style Transformation: Change the writing style of your text to be more professional, casual, or any other style you can imagine.
- Direct Instruction: Give a direct instruction to the AI to modify your text in any way you want.
- Customizable Hotkey: Set your own hotkey to trigger the AI assistant.
- System Tray Application: Runs quietly in the background and is accessible from the system tray.
- Select any text in any application.
- Press the configured hotkey (default is
Ctrl+Alt+X). - A dialog will appear with the following options:
- Fix Grammar: Corrects grammar and spelling.
- Change Style: Prompts you to enter a new writing style.
- Direct Instruction: Allows you to give a specific instruction to the AI.
- The selected text will be replaced with the AI-generated text.
- Clone this repository.
- Install the required dependencies:
pip install -r requirements.txt - Run the
main.pyfile:python main.py
The application settings can be configured by right-clicking the tray icon and selecting "Settings".
- API Key: You need to provide your own Google AI API key. You can get one from Google AI Studio.
- Shortcut: You can change the hotkey that triggers the application.
The configuration is saved in %APPDATA%\AITextEditor\config.json.
look in requirements.txt file for an uptodated list
This application sends your selected text to the Google AI API to provide its features. Please be mindful of the data you are sending and ensure you are not violating any privacy policies or terms of service.
This application supports multiple languages. You can change the language in the settings menu.
If you would like to contribute by adding a new language, follow these steps:
-
Add the language to the settings dialog:
- Open
ui/settings_dialog.py. - Add the new language to
self.language_mapandself.reverse_language_map. Use the two-letter ISO 639-1 code for the language.
- Open
-
Generate the
.pofile:- Open a terminal in the root directory of the project.
- Run the following command, replacing
[lang]with the two-letter language code:pybabel init -i locales/messages.pot -d locales -l [lang]
-
Translate the text:
- Open the newly created
.pofile atlocales/[lang]/LC_MESSAGES/messages.po. - For each
msgid, add the translation in themsgstrfield.
- Open the newly created
-
Compile the translations:
- Run the following command in the terminal:
pybabel compile -d locales
- Run the following command in the terminal:
-
Submit a pull request:
- Once you have completed the translation, please submit a pull request with your changes.