Console AI agent for translating Chinese academic writing into polished English.
Project description
writing-translator
用 AI 实现中文到英文学术写作的翻译、润色、逻辑检查和降 AI 味处理。
Setup
Create a local virtual environment and install dependencies with uv:
uv venv
uv sync --extra dev
You can also install the package with pip:
pip install .
After installation, the writing-translator command is available in the active
Python environment.
Copy the example config and fill in your API information:
writing-translator --init-config --config config.toml
config.toml is ignored by git. You can either set api_key directly in that
file for local use, or keep api_key_env = "OPENAI_API_KEY" and export the key:
export OPENAI_API_KEY="your-api-key"
For OpenAI-compatible providers, set base_url in config.toml.
Run
uv run writing-translator --config config.toml
If you installed with pip, run:
writing-translator --config config.toml
Paste Chinese text into the console. Submit an empty line to run the pipeline.
Type :q to exit.
The agent prints three stages:
Translation: first English LaTeX translation fromzh2en.mdPolished: academic editing result fromfinetune.mdFinal: naturalized, lower-AI-flavor English result fromnoai.md
logic_check.md runs between Polished and Final; its report is used as a
correction signal for the final rewrite.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file writing_translator-0.1.0.tar.gz.
File metadata
- Download URL: writing_translator-0.1.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
358a5df7fe7485c2219cbe49f5a7b812666576356952ec2831976912aff3a7bc
|
|
| MD5 |
57d16636a2f6422f4d4490e4f5ae3ae0
|
|
| BLAKE2b-256 |
e7c4e040f9645acb3876d3c58ed7391551e9112b444c94c869c8840dfe6699d6
|
File details
Details for the file writing_translator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: writing_translator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa1705b4f0c48cc7cd6b6a3ddf783b28da446d9302106768d72b83854b8f00bb
|
|
| MD5 |
a7943fb03f51ea011ed225adb886ee55
|
|
| BLAKE2b-256 |
de2163b3a48133fbdf0d985dd4bb1d94fcf849ea4d67ac5bfad21b64ccda0d9e
|