{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-other-content-proofreading-bc070f0e65af","title":"Content Proofreading for Academic Manuscripts","summary":"Automated proofreading for Chinese\/English academic papers with grammar, terminology, and formatting checks, including APA\/MLA\/GB\/T 7714 style validation and a shareable HTML or Markdown report.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-content-proofreading-bc070f0e65af","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-content-proofreading-bc070f0e65af","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-content-proofreading-bc070f0e65af.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-content-proofreading-bc070f0e65af\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Ensure Python 3.8 or higher is installed, and install required dependencies via `pip install -r requirements.txt` before running. Specify the input file path, language (`en`, `zh`, or `both`), and desired output format (`html` or `markdown`) to begin the proofreading process.","instructions":"---\nname: content-proofreading\ndescription: An academic proofreading skill for Chinese\/English manuscripts, triggered when you need automated checks for spelling, grammar, terminology consistency, and formatting before submission.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n\n## When to Use\n\n- You are preparing an academic paper for journal\/conference submission and need a final language + formatting pass.\n- You have bilingual (Chinese\/English) content and want consistent punctuation, wording, and style across both languages.\n- Your manuscript contains domain terminology (e.g., life sciences) and you need consistent Chinese\u2013English term mapping and abbreviation rules.\n- You need to validate references, numbers\/units, and heading levels against a required style (APA\/MLA\/GB\/T 7714).\n- You want a shareable report (HTML or Markdown annotations) with precise error locations and revision suggestions.\n\n## Agent Workflow\n\nFollow these steps in order when the user provides text for proofreading:\n\n### Step 1: Identify Input Source\n- Determine if the user pasted text directly, provided a file path, or attached a `.docx`\/`.md` file.\n- If a file path is given, read the file content. If a `.docx` file, use `word_converter.py` to extract text first.\n- If the user provided only text inline, use that text directly.\n\n### Step 2: Determine Language Scope\n- Check if the content is English, Chinese, or bilingual (both).\n- Set language parameter accordingly: `en`, `zh`, or `both`.\n- If the user did not specify, auto-detect from content.\n\n### Step 3: Run English Checks (if applicable)\n- If English content is detected, call `EnglishChecker().check(text)` to check:\n  - Spelling (US\/UK variants)\n  - Grammar (agreement, tense, articles)\n  - Punctuation (US\/UK conventions)\n  - Style (redundancy, passive voice)\n- Collect all findings with location, type, and suggested fix.\n\n### Step 4: Run Chinese Checks (if applicable)\n- If Chinese content is detected, call `ChineseChecker().check(text)` to check:\n  - Typo\/misused characters\n  - Grammar and collocation\n  - Chinese vs English punctuation normalization\n  - Academic expression optimization\n- Collect all findings.\n\n### Step 5: Run Terminology Check\n- Call `TerminologyManager(domain=\"biology\").check(text)` to verify:\n  - Bidirectional Chinese\u2013English term correspondence\n  - Abbreviation rule compliance (full form on first occurrence)\n  - Synonym unification to preferred standard terms\n- Collect all findings.\n\n### Step 6: Generate Report\n- Feed all findings to `AnnotationGenerator(output_format=\"html\" or \"markdown\")`.\n- Generate the report showing:\n  - Each issue with precise location (line\/offset)\n  - Issue type (spelling, grammar, terminology, formatting)\n  - Suggested fix\n- Present the report to the user. If the user requested an HTML file, save and return the file path.\n\n### Step 7: Validate Output\n- Verify all detected issues have location + type + fix.\n- Confirm the output format matches the user's request (HTML\/Markdown).\n- If partial, label clearly as PARTIAL.\n\n## Key Features\n\n- **English checks**\n  - Spelling (including US\/UK variants)\n  - Grammar (agreement, tense, articles, clause structure)\n  - Punctuation conventions (US\/UK)\n  - Style suggestions (redundancy detection, passive voice optimization)\n\n- **Chinese checks**\n  - Typo\/misused character detection (dictionary-based)\n  - Grammar and collocation checks\n  - Chinese vs. English punctuation normalization\n  - Academic expression optimization suggestions\n\n- **Terminology consistency**\n  - Domain terminology database (life sciences by default)\n  - Bidirectional Chinese\u2013English correspondence checks\n  - Abbreviation rules (require full form on first occurrence)\n  - Synonym unification to preferred standard terms\n\n- **Formatting checks**\n  - Reference style validation (APA\/MLA\/GB\/T 7714, etc.)\n  - Number and unit normalization\n  - Heading level consistency\n  - Abbreviation consistency across the document\n\n- **Reporting**\n  - HTML interactive report or Markdown annotations\n  - Precise error localization\n  - Actionable revision suggestions\n\n## Dependencies\n\n- **Python**: `>= 3.8`\n\n- **Python packages** (install via `pip install -r requirements.txt`)\n  - `languagetool-python` (version: see `requirements.txt`) \u2014 English grammar checking\n  - `opencc` (version: see `requirements.txt`) \u2014 Traditional\/Simplified Chinese conversion\n  - `jieba` (version: see `requirements.txt`) \u2014 Chinese tokenization\n  - `pyenchant` (version: see `requirements.txt`) \u2014 spelling checks\n  - `markdown` (version: see `requirements.txt`) \u2014 Markdown rendering\n  - `python-docx` (version: see `requirements.txt`) \u2014 `.docx` reading\n  - `docx2pdf` (version: see `requirements.txt`) \u2014 Word-to-PDF conversion\n\n## Example Usage\n\n### 1) Install\n\n```bash\npython -m venv .venv\nsource .venv\/bin\/activate  # Windows: .venv\\Scripts\\activate\n\npip install -r requirements.txt\n```\n\n### 2) Run (basic)\n\n```bash\npython scripts\/init_run.py --input <paper_file_path> --output <output_path>\n```\n\n### 3) Run (advanced)\n\n```bash\npython scripts\/init_run.py \\\n  --input paper.md \\\n  --output report.html \\\n  --lang en \\\n  --style apa \\\n  --terminology biology \\\n  --format html\n```\n\n### 4) CLI parameters\n\n| Parameter | Description | Default |\n|---|---|---|\n| `--input` | Input file path | Required |\n| `--output` | Output report path | Generates an HTML report by default |\n| `--lang` | Language to check (`en` \/ `zh` \/ `both`) | `both` |\n| `--style` | Reference style (`apa` \/ `mla` \/ `gb`) | `apa` |\n| `--terminology` | Domain terminology set | `biology` |\n| `--format` | Output format (`html` \/ `markdown`) | `html` |\n| `--no-pdf` | Skip PDF generation during Word\u2192PDF conversion | `false` |\n\n### 5) Use as a Python module (end-to-end)\n\n```python\nfrom scripts.english_checker import EnglishChecker\nfrom scripts.chinese_checker import ChineseChecker\nfrom scripts.terminology_manager import TerminologyManager\nfrom scripts.annotation_generator import AnnotationGenerator\n\ntext = \"\"\"\nMessenger RNA (mRNA) is transcribed in the nucleus.\n\"\"\"\n\nen_checker = EnglishChecker()\nzh_checker = ChineseChecker()\nterm_manager = TerminologyManager(domain=\"biology\")\n\nresults = []\nresults.extend(en_checker.check(text))\nresults.extend(zh_checker.check(text))\nresults.extend(term_manager.check(text))\n\ngenerator = AnnotationGenerator(output_format=\"html\")\nreport = generator.generate(results)\n\nwith open(\"report.html\", \"w\", encoding=\"utf-8\") as f:\n    f.write(report)\n```\n\n## Implementation Details\n\n### Architecture \/ Core Modules\n\n- `english_checker.py`\n  - Core engine for English spelling\/grammar\/style checks.\n  - Designed to be rule-extensible (add or register new rule sets).\n\n- `chinese_checker.py`\n  - Core engine for Chinese typo\/grammar\/style checks.\n  - Includes a library of common academic writing error patterns.\n\n- `terminology_manager.py`\n  - Terminology database management (import\/export\/query\/update).\n  - Performs term consistency checks, bilingual mapping validation, and abbreviation policy checks.\n\n- `annotation_generator.py`\n  - Converts detected issues into a visual report (HTML) or annotated Markdown.\n  - Ensures issues include **location**, **type**, and **suggested fix**.\n\n- `word_converter.py`\n  - Extracts text from `.docx`.\n  - Optionally converts Word to PDF (can be disabled via `--no-pdf`).\n\n### Terminology database format (JSON)\n\nOrganized by domain; each entry can include bilingual forms and abbreviation metadata:\n\n```json\n{\n  \"biology\": {\n    \"cell\": {\n      \"en\": \"cell\",\n      \"abbrev\": null,\n      \"full_form\": null\n    },\n    \"mrna\": {\n      \"en\": \"mRNA\",\n      \"abbrev\": \"mRNA\",\n      \"full_form\": \"messenger RNA\"\n    }\n  }\n}\n```\n\n**Checking logic (typical):**\n- If an abbreviation (e.g., `mRNA`) appears, verify the **full form** appears at first mention (e.g., `messenger RNA (mRNA)`).\n- If both Chinese and English terms appear, verify they match the configured mapping for the selected domain.\n- If synonyms are detected, prefer the standardized term defined in the database.\n\n### Rule database format (JSON)\n\nRules are grouped by language and category:\n\n```json\n{\n  \"english\": {\n    \"spelling\": [],\n    \"grammar\": [],\n    \"style\": []\n  },\n  \"format\": {\n    \"references\": [],\n    \"numbers\": [],\n    \"units\": []\n  }\n}\n```\n\n**How rules are applied (high level):**\n- Load rule sets by `--lang` and `--style`.\n- Run language-specific checks (English\/Chinese) and formatting checks.\n- Merge results into a unified issue list.\n- Render issues into the selected output format (`html` \/ `markdown`) with location-aware annotations.\n\n### Extensibility\n\n- **Add new rules**\n  1. Create a rule file under `assets\/rules\/`.\n  2. Implement rules following the project\u2019s rule template.\n  3. Register the rule set in the rule index.\n  4. Run tests to validate precision\/recall and avoid false positives.\n\n- **Add new terminology sets**\n  1. Create a terminology JSON under `assets\/terminology\/`.\n  2. Follow the domain structure shown above.\n  3. Register the new domain in the terminology index so it can be selected via `--terminology`.\n\n## When Not to Use\n\n- Do not proceed when required input files, identifiers, parameters, or context are missing \u2014 ask the user to provide them first.\n- Do not assume capabilities beyond this skill's declared scope when the user requests external operations or inferences.\n- Do not proceed without user confirmation when overwriting existing results, executing high-cost batch operations, or expanding task scope.\n\n## Required Inputs\n\n| Field | Required | Format\/Source | Example | If Missing |\n|---|---|---|---|---|\n| User task description | Yes | Text | Research question, writing goal, analysis objective | Stop and ask user to provide |\n| Primary input material | Depends on task | Text, file path, ID, table, or literature | PMID, PDF, CSV, DOCX, keywords, etc. | Specify which material type is missing |\n| Output preference | No | Text | Language, format, target journal, template | Use skill default format |\n\n## Output Contract\n\n- Primary output: Structured result or target file aligned with this skill's objective.\n- Optional output: Intermediate check notes, issue list, supplementary suggestions, or generated file paths.\n- Format requirement: Unless the user specifies otherwise, prefer stable, reviewable Markdown or JSON; if the skill's bundled script requires a fixed format, use that format.\n- If partially complete: Must explicitly mark as PARTIAL and state which steps are completed and which remain.\n\n## Failure Handling\n\n- Missing critical input: Explicitly state which fields, files, or identifiers are missing and pause.\n- Script, template, or resource execution failure: Report the failing step, likely cause, and recovery suggestions \u2014 do not silently degrade.\n- Partial completion only: Return the verified portion first, then list remaining blockers and suggested next steps.\n\n## User Checkpoints\n\n- Before executing batch processing, overwriting files, long-running searches, or multi-stage generation, confirm scope and output format with the user.\n- Before proceeding when a key judgment is ambiguous, evidence is insufficient, or the workflow is entering the next stage, confirm with the user.\n\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `content-proofreading` and include enough context to complete the workflow safely.\n\nDo not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\n\n> `content-proofreading` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n\n## Quick Validation\n\n- Check that key scripts, templates, or reference file paths this skill depends on exist.\n- Check that the final output contains the core fields, sections, or files specified for this task.\n- Check that results clearly mark assumptions, limitations, and incomplete items.\n","use_cases":["Preparing an academic paper for journal\/conference submission","Ensuring consistent terminology and style in bilingual content","Validating references and formatting against APA\/MLA\/GB\/T 7714 styles"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Other\/content-proofreading\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-26","created_at":"2026-11-24T14:38:21.000000Z","updated_at":"2026-11-26T09:24:51.000000Z","seo_title":"Content Proofreading for Academic Papers","seo_description":"Automated proofreading tool for academic manuscripts with grammar, terminology, and formatting checks in Chinese\/English.","seo_keywords":["academic proofreading tool","bilingual manuscript editing","grammar and terminology check","APA style validation","Chinese-English consistency check"]}}