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 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目