English tutor plugin for OpenCode - Your friendly Ssam (teacher) that corrects and improves your English while coding
npm install opencode-english-ssamOpenCode English Ssam (英语老师) 是专为 OpenCode 打造的友好英语辅助插件。"Ssam" (쌤) 是韩语中“老师” (선생님) 的俚语用法。该插件充当您的私人英语老师,在执行指令之前纠正并改进您的 Prompt。
将 opencode-english-ssam 添加到您的 opencode.json (或全局设置 ~/.config/opencode/opencode.json) 的 plugin 列表中:
``json`
{
"plugin": ["opencode-english-ssam"]
}
OpenCode 将自动安装并启用它。
在终端运行以下命令:
`bash`
curl -fsSL https://raw.githubusercontent.com/JeffGuKang/english-ssam/main/scripts/install.sh | bash -s -- --global
当您输入 Prompt 时,AI 助手会先为您提供简要的英语检查,然后再执行您的请求:
您的 Prompt: "I want make new function for calculate price"
改进建议: "I want to make a new function to calculate the price"
| 原句 (Original) | 修改后 (Corrected) | 原因 (Why) |
|----------|-----------|-----|
| want make | want to make | "want" 后面需要跟 "to" + 动词原形 |
| new function | a new function | 需要使用冠词 "a" |
| for calculate | to calculate | 表示目的时通常使用 "to" |
| price | the price | 特指某个价格时需要使用 "the" |
---
运行以下命令卸载插件:
`bash``
curl -fsSL https://raw.githubusercontent.com/JeffGuKang/english-ssam/main/scripts/install.sh | bash -s -- --uninstall
本项目采用 MIT 许可证。
---
作者: Jeff Kang