english-nativization-engine 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. english_nativization_engine-1.0.0/.env.example +22 -0
  2. english_nativization_engine-1.0.0/.gitignore +37 -0
  3. english_nativization_engine-1.0.0/LICENSE +21 -0
  4. english_nativization_engine-1.0.0/PKG-INFO +155 -0
  5. english_nativization_engine-1.0.0/README.md +132 -0
  6. english_nativization_engine-1.0.0/claude-code-skill/README.md +42 -0
  7. english_nativization_engine-1.0.0/claude-code-skill/package.json +26 -0
  8. english_nativization_engine-1.0.0/claude-code-skill/skills/english-nativization-engine/SKILL.md +595 -0
  9. english_nativization_engine-1.0.0/claude-code-skill/skills/english-nativization-engine/assets/demos/economist-b1-demoted.txt +19 -0
  10. english_nativization_engine-1.0.0/claude-code-skill/skills/english-nativization-engine/assets/demos/economist-c1-original.txt +1 -0
  11. english_nativization_engine-1.0.0/claude-code-skill/skills/english-nativization-engine/assets/diagnostic/a2.txt +1 -0
  12. english_nativization_engine-1.0.0/claude-code-skill/skills/english-nativization-engine/assets/diagnostic/b1.txt +1 -0
  13. english_nativization_engine-1.0.0/claude-code-skill/skills/english-nativization-engine/assets/diagnostic/b2.txt +1 -0
  14. english_nativization_engine-1.0.0/claude-code-skill/skills/english-nativization-engine/assets/diagnostic/c1.txt +1 -0
  15. english_nativization_engine-1.0.0/claude-code-skill/skills/english-nativization-engine/assets/kb-template.json +23 -0
  16. english_nativization_engine-1.0.0/ene/__init__.py +3 -0
  17. english_nativization_engine-1.0.0/ene/cli.py +379 -0
  18. english_nativization_engine-1.0.0/ene/diagnostic.py +168 -0
  19. english_nativization_engine-1.0.0/ene/engine.py +98 -0
  20. english_nativization_engine-1.0.0/ene/input_engine.py +171 -0
  21. english_nativization_engine-1.0.0/ene/output_engine.py +119 -0
  22. english_nativization_engine-1.0.0/ene/prompts.py +287 -0
  23. english_nativization_engine-1.0.0/ene/review.py +149 -0
  24. english_nativization_engine-1.0.0/ene/storage.py +283 -0
  25. english_nativization_engine-1.0.0/pyproject.toml +38 -0
@@ -0,0 +1,22 @@
1
+ # 英语母语化引擎 - 环境变量配置
2
+ # 复制此文件为 .env 并填入你的 API Key
3
+
4
+ # ── API 配置 ──
5
+ # DeepSeek API (推荐,国内可用,便宜)
6
+ ENE_API_KEY=sk-your-deepseek-api-key-here
7
+ ENE_API_BASE=https://api.deepseek.com
8
+ ENE_MODEL=deepseek-chat
9
+
10
+ # 或者使用 OpenAI API
11
+ # ENE_API_KEY=sk-your-openai-api-key
12
+ # ENE_API_BASE=https://api.openai.com/v1
13
+ # ENE_MODEL=gpt-4o-mini
14
+
15
+ # 或者使用任何兼容 OpenAI 接口的服务
16
+ # ENE_API_KEY=your-key
17
+ # ENE_API_BASE=https://your-api-endpoint.com/v1
18
+ # ENE_MODEL=your-model-name
19
+
20
+ # ── 可选配置 ──
21
+ # 数据存储目录(默认 ~/.english-nativization/)
22
+ # ENE_DATA_DIR=/custom/path/to/data
@@ -0,0 +1,37 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.so
5
+ *.egg-info/
6
+ dist/
7
+ build/
8
+ *.egg
9
+ .eggs/
10
+
11
+ # Virtual environments
12
+ .venv/
13
+ venv/
14
+ env/
15
+
16
+ # IDE
17
+ .vscode/
18
+ .idea/
19
+ *.swp
20
+ *.swo
21
+
22
+ # OS
23
+ .DS_Store
24
+ Thumbs.db
25
+
26
+ # Environment
27
+ .env
28
+ !.env.example
29
+
30
+ # User data (never commit learner data!)
31
+ ~/.english-nativization/
32
+ *.prof
33
+
34
+ # npm
35
+ node_modules/
36
+ npm-debug.log*
37
+ package-lock.json
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 RendRadar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,155 @@
1
+ Metadata-Version: 2.4
2
+ Name: english-nativization-engine
3
+ Version: 1.0.0
4
+ Summary: 基于克拉申i+1理论的系统性英语习得引擎——精准定级、降维改写、强制输出、智能复习
5
+ Project-URL: Homepage, https://github.com/rendradar/english-nativization-engine
6
+ Project-URL: Repository, https://github.com/rendradar/english-nativization-engine
7
+ Author: RendRadar Team
8
+ License: MIT
9
+ License-File: LICENSE
10
+ Keywords: cli,english,esl,language-learning,reading
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Education
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Education
17
+ Requires-Python: >=3.10
18
+ Requires-Dist: openai>=1.0
19
+ Requires-Dist: python-dotenv>=1.0
20
+ Requires-Dist: rich>=13.0
21
+ Requires-Dist: typer>=0.15
22
+ Description-Content-Type: text/markdown
23
+
24
+ # 🧠 英语母语化引擎 (English Nativization Engine)
25
+
26
+ > 基于克拉申"i+1 可理解性输入"理论的系统性英语习得工具
27
+
28
+ 不背单词,不刷题——通过精准定级、个性化 i+1 阅读、降维改写、强制输出和智能复习,帮助学习者在 6-12 个月内从"背单词"切换到"无障碍阅读"。
29
+
30
+ ---
31
+
32
+ ## 📦 两种使用方式
33
+
34
+ | 方式 | 安装 | 适用人群 |
35
+ |------|------|---------|
36
+ | 🖥️ **CLI 工具** | `pip install english-nativization-engine` | 任何有 Python 的人 |
37
+ | 🤖 **Claude Code 技能** | `npm install @rendradar/claude-code-english-nativization` | Claude Code 用户 |
38
+
39
+ ---
40
+
41
+ ## 🖥️ CLI 快速开始
42
+
43
+ ```bash
44
+ # 1. 安装
45
+ pip install english-nativization-engine
46
+
47
+ # 2. 配置 API Key(免费注册: https://platform.deepseek.com)
48
+ ene config --key YOUR_DEEPSEEK_API_KEY
49
+
50
+ # 3. 开始学习
51
+ ene start
52
+ ```
53
+
54
+ ### 命令
55
+
56
+ | 命令 | 说明 |
57
+ |------|------|
58
+ | `ene start` | 🚀 完整学习会话(定级→阅读→输出→复习) |
59
+ | `ene read` | 📖 生成今日 i+1 阅读材料 |
60
+ | `ene demote -t "原文"` | 🔽 降维改写 |
61
+ | `ene review` | 📅 复习到期词汇 |
62
+ | `ene report` | 📊 学习进度报告 |
63
+ | `ene config --key KEY` | ⚙️ 配置 API |
64
+
65
+ ---
66
+
67
+ ## 🤖 Claude Code 技能
68
+
69
+ ```bash
70
+ npm install @rendradar/claude-code-english-nativization
71
+ ```
72
+
73
+ 安装后在 Claude Code 中自动激活。触发词:`我想学英语`、`背单词没用`、`这段看不懂`。
74
+
75
+ 或手动调用:`/english-nativization-engine`
76
+
77
+ ---
78
+
79
+ ## ⭐ 核心功能
80
+
81
+ ### 降维改写
82
+ 把《经济学人》C1 文章改写成 B1 可读版,保留核心观点。
83
+
84
+ **原文 (C1):**
85
+ > The epistemological tension between empirical observation and theoretical deduction has perennially underpinned scientific discourse...
86
+
87
+ **降维版 (B1):**
88
+ > How do we know if a scientific idea is correct? There are two main approaches...
89
+
90
+ ### 三明治反馈
91
+ 不是说"错了",而是:**亮点 → 可优化 → 示范 → 已记录**
92
+
93
+ ### 4 步流水线
94
+
95
+ ```
96
+ 精准定级 → i+1 输入 → 强制输出 → 智能复习
97
+ ```
98
+
99
+ ---
100
+
101
+ ## ⚙️ 配置
102
+
103
+ 支持任何 OpenAI 兼容 API:
104
+
105
+ | 提供商 | Base URL |
106
+ |--------|----------|
107
+ | DeepSeek(推荐,国内可用) | `https://api.deepseek.com/v1` |
108
+ | OpenAI | `https://api.openai.com/v1` |
109
+ | Ollama(本地) | `http://localhost:11434/v1` |
110
+
111
+ ---
112
+
113
+ ## 📁 项目结构
114
+
115
+ ```
116
+ english-nativization-engine/
117
+ ├── ene/ # Python CLI 源码
118
+ │ ├── cli.py # Typer 入口 (6 个子命令)
119
+ │ ├── diagnostic.py # 精准定级
120
+ │ ├── input_engine.py # i+1 生成 + 降维改写
121
+ │ ├── output_engine.py # 三明治反馈
122
+ │ ├── review.py # SM-2 间隔复习
123
+ │ ├── prompts.py # LLM 提示词模板
124
+ │ ├── storage.py # JSON 持久化
125
+ │ └── engine.py # API 调用层
126
+ ├── claude-code-skill/ # Claude Code npm 包
127
+ │ ├── package.json
128
+ │ └── skills/
129
+ │ └── english-nativization-engine/
130
+ │ ├── SKILL.md # 595 行完整技能指令
131
+ │ └── assets/ # 定级文本 + 降维示例
132
+ ├── pyproject.toml
133
+ ├── LICENSE (MIT)
134
+ └── README.md
135
+ ```
136
+
137
+ ---
138
+
139
+ ## 🔧 开发
140
+
141
+ ```bash
142
+ # CLI 开发模式
143
+ git clone https://github.com/rendradar/english-nativization-engine
144
+ cd english-nativization-engine
145
+ pip install -e .
146
+
147
+ # Claude Code 技能本地测试
148
+ cp -r claude-code-skill/skills/ .claude/skills/
149
+ ```
150
+
151
+ ---
152
+
153
+ ## License
154
+
155
+ MIT © 2026 RendRadar
@@ -0,0 +1,132 @@
1
+ # 🧠 英语母语化引擎 (English Nativization Engine)
2
+
3
+ > 基于克拉申"i+1 可理解性输入"理论的系统性英语习得工具
4
+
5
+ 不背单词,不刷题——通过精准定级、个性化 i+1 阅读、降维改写、强制输出和智能复习,帮助学习者在 6-12 个月内从"背单词"切换到"无障碍阅读"。
6
+
7
+ ---
8
+
9
+ ## 📦 两种使用方式
10
+
11
+ | 方式 | 安装 | 适用人群 |
12
+ |------|------|---------|
13
+ | 🖥️ **CLI 工具** | `pip install english-nativization-engine` | 任何有 Python 的人 |
14
+ | 🤖 **Claude Code 技能** | `npm install @rendradar/claude-code-english-nativization` | Claude Code 用户 |
15
+
16
+ ---
17
+
18
+ ## 🖥️ CLI 快速开始
19
+
20
+ ```bash
21
+ # 1. 安装
22
+ pip install english-nativization-engine
23
+
24
+ # 2. 配置 API Key(免费注册: https://platform.deepseek.com)
25
+ ene config --key YOUR_DEEPSEEK_API_KEY
26
+
27
+ # 3. 开始学习
28
+ ene start
29
+ ```
30
+
31
+ ### 命令
32
+
33
+ | 命令 | 说明 |
34
+ |------|------|
35
+ | `ene start` | 🚀 完整学习会话(定级→阅读→输出→复习) |
36
+ | `ene read` | 📖 生成今日 i+1 阅读材料 |
37
+ | `ene demote -t "原文"` | 🔽 降维改写 |
38
+ | `ene review` | 📅 复习到期词汇 |
39
+ | `ene report` | 📊 学习进度报告 |
40
+ | `ene config --key KEY` | ⚙️ 配置 API |
41
+
42
+ ---
43
+
44
+ ## 🤖 Claude Code 技能
45
+
46
+ ```bash
47
+ npm install @rendradar/claude-code-english-nativization
48
+ ```
49
+
50
+ 安装后在 Claude Code 中自动激活。触发词:`我想学英语`、`背单词没用`、`这段看不懂`。
51
+
52
+ 或手动调用:`/english-nativization-engine`
53
+
54
+ ---
55
+
56
+ ## ⭐ 核心功能
57
+
58
+ ### 降维改写
59
+ 把《经济学人》C1 文章改写成 B1 可读版,保留核心观点。
60
+
61
+ **原文 (C1):**
62
+ > The epistemological tension between empirical observation and theoretical deduction has perennially underpinned scientific discourse...
63
+
64
+ **降维版 (B1):**
65
+ > How do we know if a scientific idea is correct? There are two main approaches...
66
+
67
+ ### 三明治反馈
68
+ 不是说"错了",而是:**亮点 → 可优化 → 示范 → 已记录**
69
+
70
+ ### 4 步流水线
71
+
72
+ ```
73
+ 精准定级 → i+1 输入 → 强制输出 → 智能复习
74
+ ```
75
+
76
+ ---
77
+
78
+ ## ⚙️ 配置
79
+
80
+ 支持任何 OpenAI 兼容 API:
81
+
82
+ | 提供商 | Base URL |
83
+ |--------|----------|
84
+ | DeepSeek(推荐,国内可用) | `https://api.deepseek.com/v1` |
85
+ | OpenAI | `https://api.openai.com/v1` |
86
+ | Ollama(本地) | `http://localhost:11434/v1` |
87
+
88
+ ---
89
+
90
+ ## 📁 项目结构
91
+
92
+ ```
93
+ english-nativization-engine/
94
+ ├── ene/ # Python CLI 源码
95
+ │ ├── cli.py # Typer 入口 (6 个子命令)
96
+ │ ├── diagnostic.py # 精准定级
97
+ │ ├── input_engine.py # i+1 生成 + 降维改写
98
+ │ ├── output_engine.py # 三明治反馈
99
+ │ ├── review.py # SM-2 间隔复习
100
+ │ ├── prompts.py # LLM 提示词模板
101
+ │ ├── storage.py # JSON 持久化
102
+ │ └── engine.py # API 调用层
103
+ ├── claude-code-skill/ # Claude Code npm 包
104
+ │ ├── package.json
105
+ │ └── skills/
106
+ │ └── english-nativization-engine/
107
+ │ ├── SKILL.md # 595 行完整技能指令
108
+ │ └── assets/ # 定级文本 + 降维示例
109
+ ├── pyproject.toml
110
+ ├── LICENSE (MIT)
111
+ └── README.md
112
+ ```
113
+
114
+ ---
115
+
116
+ ## 🔧 开发
117
+
118
+ ```bash
119
+ # CLI 开发模式
120
+ git clone https://github.com/rendradar/english-nativization-engine
121
+ cd english-nativization-engine
122
+ pip install -e .
123
+
124
+ # Claude Code 技能本地测试
125
+ cp -r claude-code-skill/skills/ .claude/skills/
126
+ ```
127
+
128
+ ---
129
+
130
+ ## License
131
+
132
+ MIT © 2026 RendRadar
@@ -0,0 +1,42 @@
1
+ # English Nativization Engine — Claude Code Skill
2
+
3
+ > 🧠 基于克拉申"i+1可理解性输入"理论的系统性英语习得技能
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ # 在你的 Claude Code 项目中
9
+ npm install @rendradar/claude-code-english-nativization
10
+ ```
11
+
12
+ 安装后,Claude Code 会自动发现此技能。
13
+
14
+ ## 使用
15
+
16
+ **自动触发**(包含关键词时自动激活):
17
+ - "我想学英语"、"背单词没用"、"想读外刊"
18
+ - 贴一段英文 + "看不懂"
19
+
20
+ **手动调用**:
21
+ ```
22
+ /english-nativization-engine
23
+ ```
24
+
25
+ ## 功能
26
+
27
+ | 功能 | 说明 |
28
+ |------|------|
29
+ | 🎯 精准定级 | 3段文本 + 1个写作题 → CEFR等级 |
30
+ | 📖 i+1输入 | 自动生成刚好比你水平难一点的阅读 |
31
+ | 🔽 降维改写 | 把《经济学人》C1文章改成B1可读版 ⭐ |
32
+ | ✍️ 强制输出 | 造句/复述/关联 + 三明治反馈 |
33
+ | 📅 智能复习 | SM-2算法间隔重复 |
34
+
35
+ ## 更多
36
+
37
+ - CLI 工具:`pip install english-nativization-engine`(不依赖 Claude Code)
38
+ - 完整文档:https://github.com/rendradar/english-nativization-engine
39
+
40
+ ## License
41
+
42
+ MIT
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@rendradar/claude-code-english-nativization",
3
+ "version": "1.0.0",
4
+ "description": "基于克拉申i+1理论的英语母语化引擎 — Claude Code 技能包。精准定级、降维改写、强制输出、智能复习。",
5
+ "keywords": [
6
+ "claude-code",
7
+ "claude-code-skill",
8
+ "english",
9
+ "language-learning",
10
+ "esl",
11
+ "reading",
12
+ "i+1",
13
+ "krashen"
14
+ ],
15
+ "author": "RendRadar Team",
16
+ "license": "MIT",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/rendradar/english-nativization-engine"
20
+ },
21
+ "homepage": "https://github.com/rendradar/english-nativization-engine#readme",
22
+ "files": [
23
+ "skills/",
24
+ "README.md"
25
+ ]
26
+ }