DeepSHPlugins
dsh-plugin-translation 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-plugin-translation

工具與整合JavaScriptMIT

為 DSH agent 提供翻譯工具包:句子分塊、術語與術語表提取、譯文質檢(數字、單位、括號)、語氣指南與工作區持久化翻譯記憶。

2 Stars863683348 更新時間 2026-08-19
訪問 GitHub 倉庫
dsh-plugin-translation 專案預覽

專案介紹

中文

為 DSH agent 提供翻譯工具包:句子分塊、術語與術語表提取、譯文質檢(數字、單位、括號)、語氣指南與工作區持久化翻譯記憶。

English

Translation toolkit for DSH agents: sentence segmentation, term and glossary extraction, source-target QA (numbers, units, brackets), tone guides, and a durable workspace translation memory.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
863683348
倉庫
863683348/dsh-plugin-translation
GitHub Stars
2
Forks
1
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-19
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

57/ 100
維護活躍
85
文件與實用資訊
74
生態關注度
23
安裝便捷訊號
75
專案宣告訊號
100

近 23 天仍在更新;關注度尚低(2)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-plugin-translation

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-plugin-translation

A translation toolkit for DeepSeek Harness agents: chunking, glossary extraction, source–target QA, tone guides, and a durable translation memory. The model translates; the plugin chunks, checks, and remembers.

Install

dsh plugin --profile <profile> add dsh-plugin-translation

Restart DSH. The translate_kit tool is registered host-wide.

Tool

actionpurpose
segmentSplit text into numbered, bounded chunks for chunked translation
glossaryExtract candidate terms (acronyms, camelCase, domains, numbers+units, emails, URLs) with counts
checkSource–target QA: numbers/units, brackets, length ratio, doubled punctuation
toneRegister-specific tone guide (formal / colloquial / technical, en / zh)
memo_getRead the translation memory (newest first)
memo_addSave a source→target pair to the memory file in the session workspace
glossary_getRead the durable glossary (newest first)
glossary_addAdd or update a source→target glossary term in the workspace glossary file
glossary_removeRemove a glossary term by source
consistencyCross-segment terminology consistency check against the glossary

Config

All optional, on the composition row's config:

keydefaultmeaning
personaSectiontrueregister the translation prompt-guidance section
sectionOrder6prompt section order (persona is 0, ascending)
memoFile.dsh/translation-memo.mdmemory file path (relative to the session workspace; cannot escape it)
glossaryFile.dsh/translation-glossary.mdglossary file path (relative to the session workspace; cannot escape it)
maxGlossaryEntries200entries kept in the glossary file
maxMemoEntries200entries kept in the memory file

Design

Pure logic (lib/translation.js) has zero DSH/Cordis imports and is unit-tested in isolation; lib/index.js is the thin Cordis plugin. Memory access goes through ctx.fs and every resolved path is containment-checked against the session workspace.

License

MIT

Roadmap

See ROADMAP.md — next five versions (v0.2.0 – v0.6.0): glossary management & consistency, tone memory & quality scoring, side-by-side diff & placeholder protection, conflict detection & effort stats, glossary versioning & batch pipeline.

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案