Hma47 commited on
Commit
05d6b4f
·
verified ·
1 Parent(s): b3005fa

Upload 4 files

Browse files
Apache License.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ Copyright 2025 Shift Mind AI Labs
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: "🧠 CLT Lesson Idea Analyzer"
3
+ emoji: "📚"
4
+ colorFrom: "blue"
5
+ colorTo: "yellow"
6
+ sdk: "static"
7
+ sdk_version: "0.1.0"
8
+ app_file: "index.html"
9
+ pinned: false
10
+ ---
11
+
12
+ # 🧠 CLT Lesson Idea Analyzer
13
+ **Developed by Shift Mind AI Labs**
14
+
15
+ CLT Lesson Idea Analyzer is an open-source, privacy-first tool that helps educators, trainers, and instructional designers analyze and optimize lesson ideas using Cognitive Load Theory (CLT). The tool provides science-based feedback on intrinsic, extraneous, and germane cognitive loads, and actionable recommendations to improve lesson design—across 80+ languages.
16
+
17
+ ---
18
+
19
+ ## 🚀 Features
20
+
21
+ - **Evidence-Based CLT Analysis:** Evaluates lesson ideas for intrinsic, extraneous, and germane load, providing tailored, actionable feedback and improvement strategies.
22
+ - **Multilingual Support:** Instantly translate the interface and feedback into 80+ languages with OpenAI-powered translation.
23
+ - **Professional Recommendations:** Get detailed tips on lesson chunking, scaffolding, presentation design, engagement strategies, and real-world application.
24
+ - **Reflective Prompts:** Receive reflective questions for continuous teacher growth and lesson improvement.
25
+ - **Client-Side Privacy:** All processing, translations, and API keys remain local—never sent to Shift Mind AI Labs or any third party.
26
+
27
+ ---
28
+
29
+ ## 🛠 How to Use
30
+
31
+ 1. **Open the app** in your browser (no installation or login needed).
32
+ 2. **Choose your language** and enter your OpenAI API key.
33
+ 3. **Describe your lesson or activity idea** in detail (minimum ~50 characters).
34
+ 4. **Submit** to receive a full CLT-based analysis, with strengths, improvement areas, and next steps—instantly in your chosen language.
35
+ 5. **Review or copy the output** for lesson planning, PD, or reflection.
36
+
37
+ ---
38
+
39
+ ## 👩‍🏫 For Educators: How It Supports You
40
+
41
+ - **Lesson Optimization:** Instantly improve lesson clarity, reduce cognitive overload, and boost student learning.
42
+ - **PD & Self-Reflection:** Use feedback for professional development, lesson study groups, or teacher collaboration.
43
+ - **Multilingual & Inclusive:** Plan for multilingual or diverse classrooms; all feedback is available in 80+ languages.
44
+ - **Portfolio Evidence:** Output is ready for digital portfolios, accreditation, or appraisals.
45
+
46
+ ---
47
+
48
+ ## 👨‍🎓 For Students/Trainers: Benefits
49
+
50
+ - **Active Learning:** Teachers apply research-based insights directly to classroom practice.
51
+ - **Critical Thinking:** Encourages reflection on how instructional design impacts learning.
52
+ - **Safe & Private:** No logins, accounts, or data collection—ideal for all settings.
53
+
54
+ ---
55
+
56
+ ## 🔐 Data Privacy Notice
57
+
58
+ - Your OpenAI API key and all analysis data are stored only in your browser.
59
+ - No user data is transmitted to Shift Mind AI Labs, Hugging Face, or any third party.
60
+
61
+ ---
62
+
63
+ ## 📄 License
64
+
65
+ Licensed under the [Apache License 2.0](./LICENSE).
66
+
67
+ ---
68
+
69
+ ## 🧠 About Shift Mind AI Labs
70
+
71
+ Shift Mind AI Labs creates open-source, ethical AI tools for global education, teacher growth, and learning science.
72
+
73
+ 🌐 https://www.shiftmind.io
74
+ ✉️ info@shiftmind.io
75
+
76
+ ---
77
+
78
+ ## 🙌 Contributing
79
+
80
+ Feedback, pull requests, and partnerships welcome!
81
+ For school pilots, custom integrations, or workshops: **info@shiftmind.io**
82
+
83
+ ---
84
+
85
+ *Bringing research-based lesson improvement to every teacher—one analysis at a time.*
index.html ADDED
@@ -0,0 +1,1315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" dir="ltr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>CLT Lesson Idea Analyzer</title>
7
+
8
+ <style>
9
+ /* CSS Custom Properties */
10
+ :root {
11
+ /* Color System - Educational theme */
12
+ --color-primary: #007acc;
13
+ --color-primary-hover: #005fa3;
14
+ --color-secondary: #4a90e2;
15
+ --color-accent: #f39c12;
16
+ --color-success: #27ae60;
17
+ --color-warning: #f39c12;
18
+ --color-error: #e74c3c;
19
+
20
+ /* Neutral Colors - Light Mode */
21
+ --color-background: #f9f9f9;
22
+ --color-surface: #ffffff;
23
+ --color-surface-elevated: #ffffff;
24
+ --color-border: #cccccc;
25
+ --color-border-focus: #007acc;
26
+ --color-text-primary: #333333;
27
+ --color-text-secondary: #666666;
28
+ --color-text-muted: #999999;
29
+
30
+ /* Typography */
31
+ --font-family-primary: Arial, sans-serif;
32
+
33
+ /* Spacing System */
34
+ --spacing-xs: 0.25rem;
35
+ --spacing-sm: 0.5rem;
36
+ --spacing-md: 0.75rem;
37
+ --spacing-lg: 1rem;
38
+ --spacing-xl: 1.25rem;
39
+ --spacing-2xl: 1.5rem;
40
+ --spacing-3xl: 2rem;
41
+
42
+ /* Border Radius */
43
+ --radius-sm: 4px;
44
+ --radius-md: 6px;
45
+ --radius-lg: 8px;
46
+ --radius-xl: 12px;
47
+
48
+ /* Shadows */
49
+ --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
50
+ --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
51
+ --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
52
+
53
+ /* Transitions */
54
+ --transition-fast: 150ms ease-in-out;
55
+ --transition-normal: 250ms ease-in-out;
56
+ --transition-slow: 350ms ease-in-out;
57
+ }
58
+
59
+ /* RTL Support */
60
+ [dir="rtl"] {
61
+ text-align: right;
62
+ }
63
+
64
+ [dir="rtl"] .language-switcher {
65
+ right: auto;
66
+ left: var(--spacing-lg);
67
+ }
68
+
69
+ /* Base Styles */
70
+ html {
71
+ font-size: 16px;
72
+ line-height: 1.6;
73
+ scroll-behavior: smooth;
74
+ }
75
+
76
+ body {
77
+ font-family: var(--font-family-primary);
78
+ background: var(--color-background);
79
+ color: var(--color-text-primary);
80
+ line-height: 1.6;
81
+ margin: 0;
82
+ padding: 0;
83
+ min-height: 100vh;
84
+ transition: all 0.3s ease;
85
+ }
86
+
87
+ /* Language Selection Landing */
88
+ .language-landing {
89
+ display: block;
90
+ max-width: 600px;
91
+ margin: 50px auto;
92
+ background: var(--color-surface);
93
+ border-radius: var(--radius-xl);
94
+ box-shadow: var(--shadow-lg);
95
+ padding: 40px;
96
+ text-align: center;
97
+ }
98
+
99
+ .language-landing h1 {
100
+ font-size: 2.5rem;
101
+ font-weight: bold;
102
+ background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
103
+ -webkit-background-clip: text;
104
+ -webkit-text-fill-color: transparent;
105
+ background-clip: text;
106
+ margin-bottom: 15px;
107
+ }
108
+
109
+ .language-landing p {
110
+ font-size: 1.1rem;
111
+ color: var(--color-text-secondary);
112
+ margin-bottom: 30px;
113
+ }
114
+
115
+ .language-selector {
116
+ margin-bottom: 25px;
117
+ }
118
+
119
+ .language-selector label {
120
+ display: block;
121
+ margin-bottom: 10px;
122
+ font-weight: bold;
123
+ color: var(--color-text-primary);
124
+ font-size: 1.1rem;
125
+ }
126
+
127
+ .language-selector select {
128
+ width: 100%;
129
+ padding: 15px 20px;
130
+ border: 2px solid var(--color-border);
131
+ border-radius: var(--radius-lg);
132
+ font-size: 1.1rem;
133
+ font-family: inherit;
134
+ background: var(--color-surface);
135
+ transition: all 0.2s ease;
136
+ margin-bottom: 20px;
137
+ color: var(--color-text-primary);
138
+ }
139
+
140
+ .language-selector select:focus {
141
+ outline: none;
142
+ border-color: var(--color-border-focus);
143
+ box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
144
+ }
145
+
146
+ .api-key-landing {
147
+ margin-bottom: 25px;
148
+ }
149
+
150
+ .api-key-landing label {
151
+ display: block;
152
+ margin-bottom: 10px;
153
+ font-weight: bold;
154
+ color: var(--color-text-primary);
155
+ font-size: 1.1rem;
156
+ }
157
+
158
+ .api-key-landing input {
159
+ width: 100%;
160
+ padding: 15px 20px;
161
+ border: 2px solid var(--color-border);
162
+ border-radius: var(--radius-lg);
163
+ font-size: 1.1rem;
164
+ background: var(--color-surface);
165
+ transition: all 0.2s ease;
166
+ font-family: 'Courier New', monospace;
167
+ color: var(--color-text-primary);
168
+ box-sizing: border-box;
169
+ }
170
+
171
+ .api-key-landing input:focus {
172
+ outline: none;
173
+ border-color: var(--color-border-focus);
174
+ box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
175
+ }
176
+
177
+ .start-btn {
178
+ background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
179
+ color: white;
180
+ padding: 18px 40px;
181
+ border: none;
182
+ border-radius: var(--radius-lg);
183
+ font-size: 1.2rem;
184
+ font-weight: bold;
185
+ cursor: pointer;
186
+ transition: all 0.3s ease;
187
+ width: 100%;
188
+ }
189
+
190
+ .start-btn:hover {
191
+ transform: translateY(-2px);
192
+ box-shadow: 0 12px 24px -8px rgba(0, 122, 204, 0.4);
193
+ }
194
+
195
+ .start-btn:disabled {
196
+ opacity: 0.7;
197
+ cursor: not-allowed;
198
+ transform: none;
199
+ }
200
+
201
+ /* Cache Management Section */
202
+ .cache-management {
203
+ background: rgba(0, 122, 204, 0.05);
204
+ border: 1px solid rgba(0, 122, 204, 0.1);
205
+ border-radius: var(--radius-lg);
206
+ padding: 20px;
207
+ margin-bottom: 25px;
208
+ text-align: center;
209
+ }
210
+
211
+ .cache-management h3 {
212
+ color: var(--color-primary);
213
+ margin-bottom: 15px;
214
+ font-size: 1.1rem;
215
+ font-weight: bold;
216
+ }
217
+
218
+ .cache-status-display {
219
+ background: rgba(39, 174, 96, 0.1);
220
+ border: 1px solid rgba(39, 174, 96, 0.2);
221
+ color: var(--color-success);
222
+ padding: 12px 16px;
223
+ border-radius: var(--radius-md);
224
+ margin-bottom: 15px;
225
+ font-size: 0.9rem;
226
+ font-weight: 500;
227
+ }
228
+
229
+ .cache-status-display.no-cache {
230
+ background: rgba(153, 153, 153, 0.1);
231
+ border-color: rgba(153, 153, 153, 0.2);
232
+ color: var(--color-text-secondary);
233
+ }
234
+
235
+ .clear-cache-btn {
236
+ background: linear-gradient(135deg, var(--color-warning) 0%, #e67e22 100%);
237
+ color: white;
238
+ padding: 12px 24px;
239
+ border: none;
240
+ border-radius: var(--radius-md);
241
+ font-size: 0.9rem;
242
+ font-weight: bold;
243
+ cursor: pointer;
244
+ transition: all 0.3s ease;
245
+ }
246
+
247
+ .clear-cache-btn:hover {
248
+ transform: translateY(-1px);
249
+ box-shadow: 0 6px 12px -4px rgba(243, 156, 18, 0.4);
250
+ }
251
+
252
+ .clear-cache-btn:disabled {
253
+ opacity: 0.5;
254
+ cursor: not-allowed;
255
+ transform: none;
256
+ }
257
+
258
+ /* Cache Status Indicator */
259
+ .cache-status {
260
+ background: rgba(39, 174, 96, 0.1);
261
+ border: 1px solid rgba(39, 174, 96, 0.2);
262
+ color: var(--color-success);
263
+ padding: 8px 12px;
264
+ border-radius: var(--radius-sm);
265
+ margin-bottom: 15px;
266
+ font-size: 0.85rem;
267
+ text-align: center;
268
+ font-weight: 500;
269
+ display: none;
270
+ }
271
+
272
+ .cache-status.cached {
273
+ display: block;
274
+ }
275
+
276
+ .cache-status.translating {
277
+ background: rgba(0, 122, 204, 0.1);
278
+ border-color: rgba(0, 122, 204, 0.2);
279
+ color: var(--color-primary);
280
+ }
281
+
282
+ /* Translation Loading Overlay */
283
+ .translation-overlay {
284
+ position: fixed;
285
+ top: 0;
286
+ left: 0;
287
+ width: 100%;
288
+ height: 100%;
289
+ background: rgba(0, 122, 204, 0.9);
290
+ display: none;
291
+ justify-content: center;
292
+ align-items: center;
293
+ z-index: 10000;
294
+ color: white;
295
+ text-align: center;
296
+ }
297
+
298
+ .translation-content {
299
+ background: rgba(255, 255, 255, 0.1);
300
+ padding: 40px;
301
+ border-radius: var(--radius-xl);
302
+ backdrop-filter: blur(10px);
303
+ }
304
+
305
+ .translation-spinner {
306
+ width: 50px;
307
+ height: 50px;
308
+ border: 4px solid rgba(255, 255, 255, 0.3);
309
+ border-radius: 50%;
310
+ border-top-color: white;
311
+ animation: spin 1s ease-in-out infinite;
312
+ margin: 0 auto 20px;
313
+ }
314
+
315
+ @keyframes spin {
316
+ from { transform: rotate(0deg); }
317
+ to { transform: rotate(360deg); }
318
+ }
319
+
320
+ /* Main Application (Hidden Initially) */
321
+ .main-app {
322
+ display: none;
323
+ margin: var(--spacing-3xl);
324
+ background: var(--color-background);
325
+ }
326
+
327
+ /* Language Switcher in Main App */
328
+ .language-switcher {
329
+ position: absolute;
330
+ top: var(--spacing-lg);
331
+ right: var(--spacing-lg);
332
+ display: flex;
333
+ gap: 10px;
334
+ align-items: center;
335
+ z-index: 10;
336
+ }
337
+
338
+ .language-switch-btn {
339
+ background: rgba(0, 122, 204, 0.05);
340
+ border: 1px solid rgba(0, 122, 204, 0.1);
341
+ border-radius: var(--radius-md);
342
+ padding: 8px 12px;
343
+ font-size: 12px;
344
+ cursor: pointer;
345
+ transition: all 0.2s ease;
346
+ color: var(--color-primary);
347
+ font-weight: 500;
348
+ }
349
+
350
+ .language-switch-btn:hover {
351
+ background: rgba(0, 122, 204, 0.1);
352
+ }
353
+
354
+ .mini-clear-cache {
355
+ background: rgba(243, 156, 18, 0.1);
356
+ border: 1px solid rgba(243, 156, 18, 0.2);
357
+ color: var(--color-warning);
358
+ padding: 6px 10px;
359
+ border-radius: var(--radius-sm);
360
+ font-size: 11px;
361
+ cursor: pointer;
362
+ transition: all 0.2s ease;
363
+ font-weight: 500;
364
+ }
365
+
366
+ .mini-clear-cache:hover {
367
+ background: rgba(243, 156, 18, 0.2);
368
+ }
369
+
370
+ /* Main Container */
371
+ .container {
372
+ max-width: 800px;
373
+ margin: 0 auto;
374
+ padding: var(--spacing-3xl);
375
+ background-color: var(--color-surface);
376
+ box-shadow: var(--shadow-lg);
377
+ border-radius: var(--radius-lg);
378
+ position: relative;
379
+ }
380
+
381
+ h1, h2 {
382
+ color: var(--color-text-primary);
383
+ }
384
+
385
+ h1 {
386
+ font-size: 2rem;
387
+ margin-bottom: var(--spacing-xl);
388
+ text-align: center;
389
+ background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
390
+ -webkit-background-clip: text;
391
+ -webkit-text-fill-color: transparent;
392
+ background-clip: text;
393
+ }
394
+
395
+ label {
396
+ display: block;
397
+ font-weight: bold;
398
+ margin-top: var(--spacing-lg);
399
+ color: var(--color-text-primary);
400
+ }
401
+
402
+ input[type="text"],
403
+ textarea {
404
+ width: 100%;
405
+ padding: 0.75rem;
406
+ margin-top: 0.5rem;
407
+ border: 1px solid var(--color-border);
408
+ border-radius: var(--radius-sm);
409
+ font-family: inherit;
410
+ font-size: 1rem;
411
+ transition: border-color 0.2s ease;
412
+ box-sizing: border-box;
413
+ }
414
+
415
+ input[type="text"]:focus,
416
+ textarea:focus {
417
+ outline: none;
418
+ border-color: var(--color-border-focus);
419
+ box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
420
+ }
421
+
422
+ textarea {
423
+ min-height: 150px;
424
+ resize: vertical;
425
+ }
426
+
427
+ button {
428
+ margin-top: var(--spacing-lg);
429
+ padding: 0.75rem 1.5rem;
430
+ font-size: 1rem;
431
+ color: white;
432
+ background-color: var(--color-primary);
433
+ border: none;
434
+ border-radius: var(--radius-sm);
435
+ cursor: pointer;
436
+ transition: background-color 0.2s ease;
437
+ }
438
+
439
+ button:hover {
440
+ background-color: var(--color-primary-hover);
441
+ }
442
+
443
+ button:disabled {
444
+ opacity: 0.6;
445
+ cursor: not-allowed;
446
+ }
447
+
448
+ #result {
449
+ margin-top: var(--spacing-3xl);
450
+ padding: 1.5rem;
451
+ background-color: #eef;
452
+ border-radius: var(--radius-sm);
453
+ white-space: pre-wrap;
454
+ border: 1px solid #dde;
455
+ }
456
+
457
+ /* Responsive Design */
458
+ @media (max-width: 768px) {
459
+ .language-landing {
460
+ margin: 20px auto;
461
+ padding: 30px 20px;
462
+ }
463
+
464
+ .language-switcher {
465
+ position: relative;
466
+ top: auto;
467
+ right: auto;
468
+ margin-bottom: var(--spacing-xl);
469
+ justify-content: center;
470
+ }
471
+
472
+ .main-app {
473
+ margin: var(--spacing-lg);
474
+ }
475
+
476
+ .container {
477
+ padding: var(--spacing-xl);
478
+ }
479
+ }
480
+
481
+ /* Accessibility */
482
+ .sr-only {
483
+ position: absolute;
484
+ width: 1px;
485
+ height: 1px;
486
+ padding: 0;
487
+ margin: -1px;
488
+ overflow: hidden;
489
+ clip: rect(0, 0, 0, 0);
490
+ white-space: nowrap;
491
+ border: 0;
492
+ }
493
+
494
+ /* Focus styles */
495
+ button:focus,
496
+ input:focus,
497
+ select:focus,
498
+ textarea:focus {
499
+ outline: 2px solid var(--color-primary);
500
+ outline-offset: 2px;
501
+ }
502
+ </style>
503
+ </head>
504
+
505
+ <body>
506
+ <!-- Translation Loading Overlay -->
507
+ <div class="translation-overlay" id="translationOverlay">
508
+ <div class="translation-content">
509
+ <div class="translation-spinner"></div>
510
+ <h2 id="translationTitle" data-translate="translating_interface">Translating Interface...</h2>
511
+ <p id="translationMessage" data-translate="translation_wait_message">Please wait while we translate the interface to your selected language.</p>
512
+ </div>
513
+ </div>
514
+
515
+ <!-- Language Selection Landing Page -->
516
+ <div class="language-landing" id="languageLanding">
517
+ <h1 data-translate="app_title">CLT Lesson Idea Analyzer</h1>
518
+ <p data-translate="welcome_message">Welcome! Please select your preferred language and enter your API key to get started with Cognitive Load Theory lesson analysis.</p>
519
+
520
+ <!-- Cache Status Indicator -->
521
+ <div class="cache-status" id="cacheStatus">
522
+ <span data-translate="cache_status_cached">💾 Translations cached - instant loading!</span>
523
+ </div>
524
+
525
+ <!-- Cache Management Section -->
526
+ <div class="cache-management" id="cacheManagement">
527
+ <h3 data-translate="cache_management_title">🗂️ Translation Cache Management</h3>
528
+ <div class="cache-status-display" id="cacheStatusDisplay">
529
+ <span data-translate="cache_status_checking">Checking cache status...</span>
530
+ </div>
531
+ <button class="clear-cache-btn" id="clearCacheBtn" data-translate="clear_cache_button">
532
+ 🗑️ Clear All Cached Translations
533
+ </button>
534
+ </div>
535
+
536
+ <div class="language-selector">
537
+ <label for="languageSelect" data-translate="select_language">🌐 Select Language</label>
538
+ <select id="languageSelect">
539
+ <option value="en">🇺🇸 English</option>
540
+ <option value="es">🇪🇸 Español (Spanish)</option>
541
+ <option value="fr">🇫🇷 Français (French)</option>
542
+ <option value="de">🇩🇪 Deutsch (German)</option>
543
+ <option value="zh">🇨🇳 中文 (Chinese)</option>
544
+ <option value="ja">🇯🇵 日本語 (Japanese)</option>
545
+ <option value="ko">🇰🇷 한국어 (Korean)</option>
546
+ <option value="pt">🇵🇹 Português (Portuguese)</option>
547
+ <option value="it">🇮🇹 Italiano (Italian)</option>
548
+ <option value="ar">🇸🇦 العربية (Arabic)</option>
549
+ <option value="ru">🇷🇺 Русский (Russian)</option>
550
+ <option value="hi">🇮🇳 हिन्दी (Hindi)</option>
551
+ <option value="bn">🇧🇩 বাংলা (Bengali)</option>
552
+ <option value="ur">🇵🇰 اردو (Urdu)</option>
553
+ <option value="tr">🇹🇷 Türkçe (Turkish)</option>
554
+ <option value="pl">🇵🇱 Polski (Polish)</option>
555
+ <option value="nl">🇳🇱 Nederlands (Dutch)</option>
556
+ <option value="sv">🇸🇪 Svenska (Swedish)</option>
557
+ <option value="da">🇩🇰 Dansk (Danish)</option>
558
+ <option value="no">🇳🇴 Norsk (Norwegian)</option>
559
+ <option value="fi">🇫🇮 Suomi (Finnish)</option>
560
+ <option value="is">🇮🇸 Íslenska (Icelandic)</option>
561
+ <option value="cs">🇨🇿 Čeština (Czech)</option>
562
+ <option value="sk">🇸🇰 Slovenčina (Slovak)</option>
563
+ <option value="hu">🇭🇺 Magyar (Hungarian)</option>
564
+ <option value="ro">🇷🇴 Română (Romanian)</option>
565
+ <option value="bg">🇧🇬 Български (Bulgarian)</option>
566
+ <option value="hr">🇭🇷 Hrvatski (Croatian)</option>
567
+ <option value="sr">🇷🇸 Српски (Serbian)</option>
568
+ <option value="sl">🇸🇮 Slovenščina (Slovenian)</option>
569
+ <option value="mk">🇲🇰 Македонски (Macedonian)</option>
570
+ <option value="sq">🇦🇱 Shqip (Albanian)</option>
571
+ <option value="lv">🇱🇻 Latviešu (Latvian)</option>
572
+ <option value="lt">🇱🇹 Lietuvių (Lithuanian)</option>
573
+ <option value="et">🇪🇪 Eesti (Estonian)</option>
574
+ <option value="mt">🇲🇹 Malti (Maltese)</option>
575
+ <option value="ga">🇮🇪 Gaeilge (Irish)</option>
576
+ <option value="cy">🏴󠁧󠁢󠁷󠁬󠁳󠁿 Cymraeg (Welsh)</option>
577
+ <option value="eu">🏴󠁥󠁳󠁰󠁶󠁿 Euskera (Basque)</option>
578
+ <option value="ca">🏴󠁥󠁳󠁣󠁴󠁿 Català (Catalan)</option>
579
+ <option value="gl">🏴󠁥󠁳󠁧󠁡󠁿 Galego (Galician)</option>
580
+ <option value="el">🇬🇷 Ελληνικά (Greek)</option>
581
+ <option value="he">🇮🇱 עברית (Hebrew)</option>
582
+ <option value="fa">🇮🇷 فارسی (Persian)</option>
583
+ <option value="ps">🇦🇫 پښتو (Pashto)</option>
584
+ <option value="ku">🏴󠁩󠁱󠁫󠁲󠁿 کوردی (Kurdish)</option>
585
+ <option value="az">🇦🇿 Azərbaycan (Azerbaijani)</option>
586
+ <option value="kk">🇰🇿 Қазақша (Kazakh)</option>
587
+ <option value="ky">🇰🇬 Кыргызча (Kyrgyz)</option>
588
+ <option value="uz">🇺🇿 O'zbek (Uzbek)</option>
589
+ <option value="tk">🇹🇲 Türkmen (Turkmen)</option>
590
+ <option value="tg">🇹🇯 Тоҷикӣ (Tajik)</option>
591
+ <option value="mn">🇲🇳 Монгол (Mongolian)</option>
592
+ <option value="ka">🇬🇪 ქართული (Georgian)</option>
593
+ <option value="hy">🇦🇲 Հայերեն (Armenian)</option>
594
+ <option value="th">🇹🇭 ไทย (Thai)</option>
595
+ <option value="vi">🇻🇳 Tiếng Việt (Vietnamese)</option>
596
+ <option value="lo">🇱🇦 ລາວ (Lao)</option>
597
+ <option value="km">🇰🇭 ខ្មែរ (Khmer)</option>
598
+ <option value="my">🇲🇲 မြန်မာ (Myanmar)</option>
599
+ <option value="si">🇱🇰 සිංහල (Sinhala)</option>
600
+ <option value="ta">🇱🇰 தமிழ் (Tamil)</option>
601
+ <option value="te">🇮🇳 తెలుగు (Telugu)</option>
602
+ <option value="kn">🇮🇳 ಕನ್ನಡ (Kannada)</option>
603
+ <option value="ml">🇮🇳 മലയാളം (Malayalam)</option>
604
+ <option value="gu">🇮🇳 ગુજરાતી (Gujarati)</option>
605
+ <option value="pa">🇮🇳 ਪੰਜਾਬੀ (Punjabi)</option>
606
+ <option value="or">🇮🇳 ଓଡ଼ିଆ (Odia)</option>
607
+ <option value="as">🇮🇳 অসমীয়া (Assamese)</option>
608
+ <option value="ne">🇳🇵 नेपाली (Nepali)</option>
609
+ <option value="dz">🇧🇹 རྫོང་ཁ (Dzongkha)</option>
610
+ <option value="bo">🏔️ བོད་ཡིག (Tibetan)</option>
611
+ <option value="id">🇮🇩 Bahasa Indonesia</option>
612
+ <option value="ms">🇲🇾 Bahasa Melayu (Malay)</option>
613
+ <option value="tl">🇵🇭 Filipino (Tagalog)</option>
614
+ <option value="ceb">🇵🇭 Cebuano</option>
615
+ <option value="haw">🏝️ ʻŌlelo Hawaiʻi (Hawaiian)</option>
616
+ <option value="mi">🇳🇿 Te Reo Māori (Maori)</option>
617
+ <option value="sm">🇼🇸 Gagana Samoa (Samoan)</option>
618
+ <option value="to">🇹🇴 Lea Fakatonga (Tongan)</option>
619
+ <option value="fj">🇫🇯 Na Vosa Vakaviti (Fijian)</option>
620
+ <option value="mg">🇲🇬 Malagasy</option>
621
+ <option value="sw">🇰🇪 Kiswahili (Swahili)</option>
622
+ <option value="zu">🇿🇦 isiZulu (Zulu)</option>
623
+ <option value="xh">🇿🇦 isiXhosa (Xhosa)</option>
624
+ <option value="af">🇿🇦 Afrikaans</option>
625
+ <option value="st">🇱🇸 Sesotho (Southern Sotho)</option>
626
+ <option value="tn">🇧🇼 Setswana (Tswana)</option>
627
+ <option value="ss">🇸🇿 siSwati (Swati)</option>
628
+ <option value="ve">🇿🇦 Tshivenḓa (Venda)</option>
629
+ <option value="ts">🇿🇦 Xitsonga (Tsonga)</option>
630
+ <option value="nr">🇿🇦 isiNdebele (Southern Ndebele)</option>
631
+ <option value="am">🇪🇹 አማርኛ (Amharic)</option>
632
+ <option value="ti">🇪🇷 ትግርኛ (Tigrinya)</option>
633
+ <option value="om">🇪🇹 Afaan Oromoo (Oromo)</option>
634
+ <option value="so">🇸🇴 Soomaali (Somali)</option>
635
+ <option value="ha">🇳🇬 Hausa</option>
636
+ <option value="yo">🇳🇬 Yorùbá (Yoruba)</option>
637
+ <option value="ig">🇳🇬 Igbo</option>
638
+ <option value="ff">🇸🇳 Fulfulde (Fulani)</option>
639
+ <option value="wo">🇸🇳 Wolof</option>
640
+ <option value="bm">🇲🇱 Bamanankan (Bambara)</option>
641
+ <option value="rn">🇧🇮 Kirundi (Rundi)</option>
642
+ <option value="rw">🇷🇼 Kinyarwanda (Rwanda)</option>
643
+ <option value="lg">🇺🇬 Luganda</option>
644
+ <option value="ny">🇲🇼 Chichewa (Nyanja)</option>
645
+ <option value="sn">🇿🇼 chiShona (Shona)</option>
646
+ <option value="nd">🇿🇼 isiNdebele (Northern Ndebele)</option>
647
+ </select>
648
+ </div>
649
+
650
+ <div class="api-key-landing">
651
+ <label for="apiKeyLanding" data-translate="api_key_label">🔑 OpenAI API Key</label>
652
+ <input type="password" id="apiKeyLanding" placeholder="Enter your OpenAI API key" data-translate-placeholder="api_key_placeholder">
653
+ </div>
654
+
655
+ <button class="start-btn" id="startBtn" data-translate="start_button">🚀 Start CLT Analyzer</button>
656
+ </div>
657
+
658
+ <!-- Main Application -->
659
+ <div class="main-app" id="mainApp">
660
+ <!-- Language Switcher -->
661
+ <div class="language-switcher" id="languageSwitcher">
662
+ <div class="language-switch-btn" onclick="showLanguageLanding()">
663
+ <span data-translate="change_language">🌐 Change Language</span>
664
+ </div>
665
+ <div class="mini-clear-cache" onclick="clearAllTranslationCache()" title="Clear translation cache">
666
+ <span data-translate="clear_cache_mini">🗑️ Clear Cache</span>
667
+ </div>
668
+ </div>
669
+
670
+ <div class="container">
671
+ <h1 data-translate="app_title">CLT Lesson Idea Analyzer</h1>
672
+
673
+ <!-- Application Description -->
674
+ <div class="app-description" style="background: rgba(0, 122, 204, 0.05); border: 1px solid rgba(0, 122, 204, 0.1); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 30px; text-align: center;">
675
+ <p data-translate="app_description" style="margin: 0; color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.6;">
676
+ 🧠 Transform your teaching with science-backed lesson analysis! This AI-powered tool evaluates your lesson ideas through the lens of <strong>Cognitive Load Theory (CLT)</strong>, providing detailed insights on intrinsic, extraneous, and germane cognitive loads. Get professional recommendations to optimize student learning, reduce cognitive overload, and enhance educational effectiveness with evidence-based pedagogical strategies.
677
+ </p>
678
+ </div>
679
+
680
+ <form id="lessonForm">
681
+ <label for="lessonIdea" data-translate="lesson_idea_label">Lesson or Activity Idea</label>
682
+ <textarea id="lessonIdea" name="lessonIdea" placeholder="Enter your lesson or activity idea" data-translate-placeholder="lesson_idea_placeholder" required></textarea>
683
+
684
+ <button type="submit" data-translate="submit_button">Submit</button>
685
+ </form>
686
+
687
+ <div id="result"></div>
688
+ </div>
689
+ </div>
690
+
691
+ <script>
692
+ // RTL languages list
693
+ const rtlLanguages = ['ar', 'he', 'fa', 'ur', 'ps', 'ku'];
694
+
695
+ // Current language and API key
696
+ let currentLanguage = 'en';
697
+ let currentApiKey = '';
698
+
699
+ // Language names mapping
700
+ const languageNames = {
701
+ en: 'English', es: 'Spanish', fr: 'French', de: 'German', zh: 'Chinese',
702
+ ja: 'Japanese', ko: 'Korean', pt: 'Portuguese', it: 'Italian', ar: 'Arabic',
703
+ ru: 'Russian', hi: 'Hindi', bn: 'Bengali', ur: 'Urdu', tr: 'Turkish',
704
+ pl: 'Polish', nl: 'Dutch', sv: 'Swedish', da: 'Danish', no: 'Norwegian',
705
+ fi: 'Finnish', is: 'Icelandic', cs: 'Czech', sk: 'Slovak', hu: 'Hungarian',
706
+ ro: 'Romanian', bg: 'Bulgarian', hr: 'Croatian', sr: 'Serbian', sl: 'Slovenian',
707
+ mk: 'Macedonian', sq: 'Albanian', lv: 'Latvian', lt: 'Lithuanian', et: 'Estonian',
708
+ mt: 'Maltese', ga: 'Irish', cy: 'Welsh', eu: 'Basque', ca: 'Catalan',
709
+ gl: 'Galician', el: 'Greek', he: 'Hebrew', fa: 'Persian', ps: 'Pashto',
710
+ ku: 'Kurdish', az: 'Azerbaijani', kk: 'Kazakh', ky: 'Kyrgyz', uz: 'Uzbek',
711
+ tk: 'Turkmen', tg: 'Tajik', mn: 'Mongolian', ka: 'Georgian', hy: 'Armenian',
712
+ th: 'Thai', vi: 'Vietnamese', lo: 'Lao', km: 'Khmer', my: 'Myanmar',
713
+ si: 'Sinhala', ta: 'Tamil', te: 'Telugu', kn: 'Kannada', ml: 'Malayalam',
714
+ gu: 'Gujarati', pa: 'Punjabi', or: 'Odia', as: 'Assamese', ne: 'Nepali',
715
+ dz: 'Dzongkha', bo: 'Tibetan', id: 'Indonesian', ms: 'Malay', tl: 'Filipino',
716
+ ceb: 'Cebuano', haw: 'Hawaiian', mi: 'Maori', sm: 'Samoan', to: 'Tongan',
717
+ fj: 'Fijian', mg: 'Malagasy', sw: 'Swahili', zu: 'Zulu', xh: 'Xhosa',
718
+ af: 'Afrikaans', st: 'Southern Sotho', tn: 'Tswana', ss: 'Swati', ve: 'Venda',
719
+ ts: 'Tsonga', nr: 'Southern Ndebele', am: 'Amharic', ti: 'Tigrinya', om: 'Oromo',
720
+ so: 'Somali', ha: 'Hausa', yo: 'Yoruba', ig: 'Igbo', ff: 'Fulani',
721
+ wo: 'Wolof', bm: 'Bambara', rn: 'Rundi', rw: 'Rwanda', lg: 'Luganda',
722
+ ny: 'Chichewa', sn: 'Shona', nd: 'Northern Ndebele'
723
+ };
724
+
725
+ // Translation cache management
726
+ const CACHE_PREFIX = 'clt_translations_';
727
+ const CACHE_VERSION = '1.0';
728
+
729
+ // Check if translations are cached for a language
730
+ function isLanguageCached(language) {
731
+ const cacheKey = CACHE_PREFIX + language;
732
+ const cached = localStorage.getItem(cacheKey);
733
+ return cached !== null;
734
+ }
735
+
736
+ // Save translations to cache
737
+ function saveTranslationsToCache(language, translations) {
738
+ const cacheKey = CACHE_PREFIX + language;
739
+ const cacheData = {
740
+ version: CACHE_VERSION,
741
+ timestamp: Date.now(),
742
+ translations: translations
743
+ };
744
+ localStorage.setItem(cacheKey, JSON.stringify(cacheData));
745
+ console.log(`Translations cached for ${language}`);
746
+ }
747
+
748
+ // Load translations from cache
749
+ function loadTranslationsFromCache(language) {
750
+ const cacheKey = CACHE_PREFIX + language;
751
+ const cached = localStorage.getItem(cacheKey);
752
+
753
+ if (cached) {
754
+ try {
755
+ const cacheData = JSON.parse(cached);
756
+ if (cacheData.version === CACHE_VERSION) {
757
+ console.log(`Translations loaded from cache for ${language}`);
758
+ return cacheData.translations;
759
+ }
760
+ } catch (error) {
761
+ console.error('Error parsing cached translations:', error);
762
+ }
763
+ }
764
+ return null;
765
+ }
766
+
767
+ // Get all cached languages
768
+ function getCachedLanguages() {
769
+ const cachedLanguages = [];
770
+ for (let i = 0; i < localStorage.length; i++) {
771
+ const key = localStorage.key(i);
772
+ if (key && key.startsWith(CACHE_PREFIX)) {
773
+ const language = key.replace(CACHE_PREFIX, '');
774
+ cachedLanguages.push(language);
775
+ }
776
+ }
777
+ return cachedLanguages;
778
+ }
779
+
780
+ // Clear all translation cache
781
+ function clearAllTranslationCache() {
782
+ const cachedLanguages = getCachedLanguages();
783
+
784
+ if (cachedLanguages.length === 0) {
785
+ alert('No cached translations to clear.');
786
+ return;
787
+ }
788
+
789
+ const languageList = cachedLanguages.map(lang => languageNames[lang] || lang).join(', ');
790
+ const confirmMessage = `Are you sure you want to clear all cached translations?\n\nCached languages: ${languageList}\n\nThis will require re-downloading translations when switching languages.`;
791
+
792
+ if (confirm(confirmMessage)) {
793
+ // Clear all translation caches
794
+ cachedLanguages.forEach(language => {
795
+ const cacheKey = CACHE_PREFIX + language;
796
+ localStorage.removeItem(cacheKey);
797
+ });
798
+
799
+ // Update cache status
800
+ updateCacheStatus(currentLanguage);
801
+ updateCacheStatusDisplay();
802
+
803
+ alert(`Cache cleared successfully!\n\n${cachedLanguages.length} language(s) removed from cache.`);
804
+
805
+ // Ask if user wants to reload current language translations
806
+ if (currentLanguage !== 'en' && cachedLanguages.includes(currentLanguage)) {
807
+ if (confirm('Would you like to reload the current language translations?')) {
808
+ applyLanguage(currentLanguage);
809
+ }
810
+ }
811
+ }
812
+ }
813
+
814
+ // Update cache status indicator
815
+ function updateCacheStatus(language) {
816
+ const cacheStatus = document.getElementById('cacheStatus');
817
+ const isCached = isLanguageCached(language);
818
+
819
+ if (language === 'en') {
820
+ cacheStatus.classList.remove('cached', 'translating');
821
+ return;
822
+ }
823
+
824
+ if (isCached) {
825
+ cacheStatus.querySelector('[data-translate="cache_status_cached"]').textContent = '💾 Translations cached - instant loading!';
826
+ cacheStatus.classList.add('cached');
827
+ cacheStatus.classList.remove('translating');
828
+ } else {
829
+ cacheStatus.querySelector('[data-translate="cache_status_cached"]').textContent = '🔄 First time translation - will be cached for future use';
830
+ cacheStatus.classList.add('translating');
831
+ cacheStatus.classList.remove('cached');
832
+ }
833
+ }
834
+
835
+ // Update cache status display in management section
836
+ function updateCacheStatusDisplay() {
837
+ const cacheStatusDisplay = document.getElementById('cacheStatusDisplay');
838
+ const clearCacheBtn = document.getElementById('clearCacheBtn');
839
+ const cachedLanguages = getCachedLanguages();
840
+
841
+ if (cachedLanguages.length === 0) {
842
+ cacheStatusDisplay.querySelector('[data-translate="cache_status_checking"]').textContent = '📭 No cached translations';
843
+ cacheStatusDisplay.className = 'cache-status-display no-cache';
844
+ clearCacheBtn.disabled = true;
845
+ } else {
846
+ const languageList = cachedLanguages.map(lang => languageNames[lang] || lang).join(', ');
847
+ cacheStatusDisplay.querySelector('[data-translate="cache_status_checking"]').textContent = `💾 ${cachedLanguages.length} language(s) cached: ${languageList}`;
848
+ cacheStatusDisplay.className = 'cache-status-display';
849
+ clearCacheBtn.disabled = false;
850
+ }
851
+ }
852
+
853
+ // API call function for translation
854
+ async function translateText(text, targetLanguage) {
855
+ if (!currentApiKey) {
856
+ throw new Error('API key is required for translation');
857
+ }
858
+
859
+ const languageName = languageNames[targetLanguage] || 'English';
860
+
861
+ const prompt = `Translate the following text to ${languageName}. Provide ONLY the exact translation without any explanations, additional information, or formatting:
862
+
863
+ "${text}"`;
864
+
865
+ const payload = {
866
+ model: "gpt-4o-mini",
867
+ messages: [{ role: "user", content: prompt }],
868
+ max_tokens: 500,
869
+ temperature: 0.1
870
+ };
871
+
872
+ const response = await fetch("https://api.openai.com/v1/chat/completions", {
873
+ method: "POST",
874
+ headers: {
875
+ "Content-Type": "application/json",
876
+ "Authorization": `Bearer ${currentApiKey}`
877
+ },
878
+ body: JSON.stringify(payload)
879
+ });
880
+
881
+ if (!response.ok) {
882
+ const errorData = await response.json();
883
+ throw new Error(errorData.error?.message || "Translation API request failed");
884
+ }
885
+
886
+ const data = await response.json();
887
+ return data.choices[0].message.content.trim();
888
+ }
889
+
890
+ // Apply cached translations to UI
891
+ function applyCachedTranslations(translations) {
892
+ // Apply text translations
893
+ Object.keys(translations.texts).forEach(originalText => {
894
+ const translation = translations.texts[originalText];
895
+ const elements = document.querySelectorAll(`[data-translate]`);
896
+
897
+ elements.forEach(element => {
898
+ const originalElementText = element.getAttribute('data-original-text') || element.textContent;
899
+ if (originalElementText === originalText) {
900
+ element.textContent = translation;
901
+ }
902
+ });
903
+ });
904
+
905
+ // Apply placeholder translations
906
+ Object.keys(translations.placeholders).forEach(originalPlaceholder => {
907
+ const translation = translations.placeholders[originalPlaceholder];
908
+ const elements = document.querySelectorAll(`[data-translate-placeholder]`);
909
+
910
+ elements.forEach(element => {
911
+ const originalElementPlaceholder = element.getAttribute('data-original-placeholder') || element.placeholder;
912
+ if (originalElementPlaceholder === originalPlaceholder) {
913
+ element.placeholder = translation;
914
+ }
915
+ });
916
+ });
917
+ }
918
+
919
+ // Translate all UI elements
920
+ async function translateInterface(targetLanguage) {
921
+ if (targetLanguage === 'en') {
922
+ // Reset to English - no translation needed
923
+ return;
924
+ }
925
+
926
+ // Check if translations are cached
927
+ const cachedTranslations = loadTranslationsFromCache(targetLanguage);
928
+ if (cachedTranslations) {
929
+ // Use cached translations
930
+ console.log('Using cached translations for', targetLanguage);
931
+ applyCachedTranslations(cachedTranslations);
932
+ return;
933
+ }
934
+
935
+ // Need to translate via API
936
+ showTranslationOverlay();
937
+
938
+ try {
939
+ // Get all elements with data-translate attribute
940
+ const elements = document.querySelectorAll('[data-translate]');
941
+ const placeholderElements = document.querySelectorAll('[data-translate-placeholder]');
942
+
943
+ // Collect all texts to translate
944
+ const textsToTranslate = [];
945
+ const placeholdersToTranslate = [];
946
+ const elementMap = new Map();
947
+
948
+ elements.forEach(element => {
949
+ const originalText = element.getAttribute('data-original-text') || element.textContent;
950
+ if (!element.getAttribute('data-original-text')) {
951
+ element.setAttribute('data-original-text', originalText);
952
+ }
953
+ textsToTranslate.push(originalText);
954
+ elementMap.set(originalText, element);
955
+ });
956
+
957
+ placeholderElements.forEach(element => {
958
+ const originalPlaceholder = element.getAttribute('data-original-placeholder') || element.placeholder;
959
+ if (!element.getAttribute('data-original-placeholder')) {
960
+ element.setAttribute('data-original-placeholder', originalPlaceholder);
961
+ }
962
+ placeholdersToTranslate.push(originalPlaceholder);
963
+ elementMap.set(originalPlaceholder, element);
964
+ });
965
+
966
+ // Prepare cache structure
967
+ const translationsCache = {
968
+ texts: {},
969
+ placeholders: {}
970
+ };
971
+
972
+ // Translate texts in batches
973
+ const batchSize = 8;
974
+ const allTexts = [...textsToTranslate, ...placeholdersToTranslate];
975
+
976
+ for (let i = 0; i < allTexts.length; i += batchSize) {
977
+ const batch = allTexts.slice(i, i + batchSize);
978
+
979
+ // Update progress
980
+ updateTranslationProgress(i, allTexts.length);
981
+
982
+ // Translate batch
983
+ const translations = await Promise.all(
984
+ batch.map(text => translateText(text, targetLanguage))
985
+ );
986
+
987
+ // Apply translations and cache them
988
+ batch.forEach((originalText, index) => {
989
+ const translation = translations[index];
990
+
991
+ if (textsToTranslate.includes(originalText)) {
992
+ const element = elementMap.get(originalText);
993
+ element.textContent = translation;
994
+ translationsCache.texts[originalText] = translation;
995
+ } else if (placeholdersToTranslate.includes(originalText)) {
996
+ const element = elementMap.get(originalText);
997
+ element.placeholder = translation;
998
+ translationsCache.placeholders[originalText] = translation;
999
+ }
1000
+ });
1001
+ }
1002
+
1003
+ // Save translations to cache
1004
+ saveTranslationsToCache(targetLanguage, translationsCache);
1005
+
1006
+ // Update cache status
1007
+ updateCacheStatus(targetLanguage);
1008
+ updateCacheStatusDisplay();
1009
+
1010
+ } catch (error) {
1011
+ console.error('Translation error:', error);
1012
+ alert('Translation failed: ' + error.message);
1013
+ } finally {
1014
+ hideTranslationOverlay();
1015
+ }
1016
+ }
1017
+
1018
+ // Show translation overlay
1019
+ function showTranslationOverlay() {
1020
+ document.getElementById('translationOverlay').style.display = 'flex';
1021
+ }
1022
+
1023
+ // Hide translation overlay
1024
+ function hideTranslationOverlay() {
1025
+ document.getElementById('translationOverlay').style.display = 'none';
1026
+ }
1027
+
1028
+ // Update translation progress
1029
+ function updateTranslationProgress(current, total) {
1030
+ const percentage = Math.round((current / total) * 100);
1031
+ document.getElementById('translationMessage').textContent =
1032
+ `Translating interface... ${percentage}% complete (will be cached for future use)`;
1033
+ }
1034
+
1035
+ // Apply language direction
1036
+ function applyDirection(language) {
1037
+ currentLanguage = language;
1038
+
1039
+ // Set document language and direction
1040
+ document.documentElement.lang = language;
1041
+ document.documentElement.dir = rtlLanguages.includes(language) ? 'rtl' : 'ltr';
1042
+
1043
+ // Save language preference
1044
+ localStorage.setItem('clt_language', language);
1045
+
1046
+ // Update cache status
1047
+ updateCacheStatus(language);
1048
+ }
1049
+
1050
+ // Apply language with API translation or cache
1051
+ async function applyLanguage(language) {
1052
+ applyDirection(language);
1053
+
1054
+ if (language !== 'en') {
1055
+ await translateInterface(language);
1056
+ }
1057
+ }
1058
+
1059
+ // Show language landing page
1060
+ function showLanguageLanding() {
1061
+ document.getElementById('languageLanding').style.display = 'block';
1062
+ document.getElementById('mainApp').style.display = 'none';
1063
+ }
1064
+
1065
+ // Show main application
1066
+ function showMainApp() {
1067
+ document.getElementById('languageLanding').style.display = 'none';
1068
+ document.getElementById('mainApp').style.display = 'block';
1069
+ }
1070
+
1071
+ // Get language name for AI prompts
1072
+ function getLanguageName() {
1073
+ return languageNames[currentLanguage] || 'English';
1074
+ }
1075
+
1076
+ // Initialize the application
1077
+ function initializeApp() {
1078
+ // Load saved language and API key
1079
+ const savedLanguage = localStorage.getItem('clt_language') || 'en';
1080
+ const savedApiKey = localStorage.getItem('clt_api_key') || '';
1081
+
1082
+ currentLanguage = savedLanguage;
1083
+ currentApiKey = savedApiKey;
1084
+
1085
+ // Set language selector
1086
+ document.getElementById('languageSelect').value = currentLanguage;
1087
+ document.getElementById('apiKeyLanding').value = currentApiKey;
1088
+
1089
+ // Apply direction for current language
1090
+ applyDirection(currentLanguage);
1091
+
1092
+ // Update cache status
1093
+ updateCacheStatus(currentLanguage);
1094
+ updateCacheStatusDisplay();
1095
+
1096
+ // ALWAYS show language landing page first
1097
+ showLanguageLanding();
1098
+ }
1099
+
1100
+ // Initialize the application
1101
+ document.addEventListener('DOMContentLoaded', function() {
1102
+ initializeApp();
1103
+ initializeEventListeners();
1104
+ });
1105
+
1106
+ // Initialize event listeners
1107
+ function initializeEventListeners() {
1108
+ // Start button
1109
+ document.getElementById('startBtn').addEventListener('click', async function() {
1110
+ const selectedLanguage = document.getElementById('languageSelect').value;
1111
+ const apiKey = document.getElementById('apiKeyLanding').value.trim();
1112
+
1113
+ if (!apiKey) {
1114
+ alert('Please enter your OpenAI API key');
1115
+ return;
1116
+ }
1117
+
1118
+ currentLanguage = selectedLanguage;
1119
+ currentApiKey = apiKey;
1120
+
1121
+ // Save API key
1122
+ localStorage.setItem('clt_api_key', apiKey);
1123
+
1124
+ // Apply language with translation (cached or API)
1125
+ await applyLanguage(selectedLanguage);
1126
+
1127
+ // Show main app
1128
+ showMainApp();
1129
+ });
1130
+
1131
+ // Language selector change
1132
+ document.getElementById('languageSelect').addEventListener('change', async function() {
1133
+ const selectedLanguage = this.value;
1134
+ updateCacheStatus(selectedLanguage);
1135
+
1136
+ if (currentApiKey) {
1137
+ await applyLanguage(selectedLanguage);
1138
+ } else {
1139
+ applyDirection(selectedLanguage);
1140
+ }
1141
+ });
1142
+
1143
+ // Clear cache button
1144
+ document.getElementById('clearCacheBtn').addEventListener('click', clearAllTranslationCache);
1145
+
1146
+ // API key sync
1147
+ document.getElementById('apiKeyLanding').addEventListener('input', function() {
1148
+ currentApiKey = this.value;
1149
+ localStorage.setItem('clt_api_key', this.value);
1150
+ });
1151
+
1152
+ // Form submission
1153
+ document.getElementById('lessonForm').addEventListener('submit', handleFormSubmission);
1154
+ }
1155
+
1156
+ // Handle form submission
1157
+ async function handleFormSubmission(e) {
1158
+ e.preventDefault();
1159
+
1160
+ // Retrieve input values
1161
+ const lessonIdea = document.getElementById("lessonIdea").value.trim();
1162
+
1163
+ if (!lessonIdea) {
1164
+ alert('Please enter your lesson or activity idea');
1165
+ return;
1166
+ }
1167
+
1168
+ if (!currentApiKey) {
1169
+ alert('API key is required');
1170
+ return;
1171
+ }
1172
+
1173
+ // Get the selected language name for the AI response
1174
+ const languageName = getLanguageName();
1175
+
1176
+ // Construct the agent prompt using CLT guidelines
1177
+ const promptText =
1178
+ `You are an AI educational design consultant with deep expertise in Cognitive Load Theory (CLT). Your task is to assist educators by providing a detailed, insightful, and actionable analysis of their lesson or activity ideas based on CLT principles. Your response must be professional, comprehensive, and solution-oriented. Follow the detailed structure below precisely, ensuring that each section is thoroughly addressed with practical insights, specific recommendations, and evidence-based practices.
1179
+
1180
+ **CRITICAL: Generate the ENTIRE response in ${languageName}. Every single word, phrase, sentence, analysis, recommendation, and insight MUST be written in ${languageName}. Do not mix languages.**
1181
+
1182
+ ### 1. Lesson Overview
1183
+ - **Lesson Title & Summary:**
1184
+ Provide a succinct summary of the teacher's lesson idea, including subject matter, teaching context, core objectives, key content areas, and intended learning outcomes. This should encapsulate the essence of the lesson in a way that makes it clear what the teacher aims to achieve and what students will learn.
1185
+
1186
+ - **Learning Objectives:**
1187
+ Clearly enumerate measurable objectives or skills the lesson is designed to achieve. Use action verbs from Bloom's Taxonomy to ensure that objectives are specific and assessable (e.g., "Students will analyze...", "Students will create...").
1188
+
1189
+ - **Target Audience:**
1190
+ Specify the intended student demographic (e.g., grade level, learning needs, background) to tailor recommendations appropriately. This context will help in customizing the analysis to better fit the unique characteristics of the learners.
1191
+
1192
+ ### 2. Cognitive Load Analysis
1193
+ A. **Intrinsic Load**
1194
+ - **Content Complexity Assessment:**
1195
+ Analyze the inherent complexity of the lesson content, highlighting key concepts and their difficulty, referencing credible research when applicable. For example, if teaching a complex concept like photosynthesis, consider how many steps or processes are involved and their difficulty.
1196
+
1197
+ - **Recommendations:**
1198
+ Advise on strategies such as chunking, scaffolding, or dividing the content into smaller segments. For instance, introduce photosynthesis in stages: start with the basic definitions, then move to the role of sunlight, followed by the chemical processes involved. Include ideas for prerequisite activation, such as reviewing prior knowledge on plant biology. Research indicates that chunking information can significantly reduce cognitive overload (Sweller, 1988).
1199
+
1200
+ - **Reflective Questions:**
1201
+ Ask whether the current sequencing of content logically builds on prior knowledge and if additional background information is necessary. Questions might include, "Have students had sufficient exposure to related concepts?" or "Is the lesson scaffolded appropriately for student understanding?"
1202
+
1203
+ B. **Extraneous Load**
1204
+ - **Presentation Analysis:**
1205
+ Examine how the material is currently presented, noting potential sources of unnecessary cognitive strain (e.g., overly dense text, confusing visuals). For example, if the lesson uses a PowerPoint presentation with too much text per slide, it could hinder comprehension.
1206
+
1207
+ - **Recommendations:**
1208
+ Provide concrete suggestions for streamlining content—such as simplifying language, organizing information with clear headings, integrating informative visuals or diagrams, and removing non-essential elements. An example could be using infographics to summarize photosynthesis visually, making it easier for students to digest.
1209
+
1210
+ - **Reflective Questions:**
1211
+ Consider if the design elements could be overwhelming learners and if redesigning the layout could enhance clarity. Ask, "Are there areas in the presentation that could be simplified?" or "Is the visual content aiding or hindering understanding?"
1212
+
1213
+ C. **Germane Load**
1214
+ - **Cognitive Engagement Evaluation:**
1215
+ Assess how well the lesson encourages active processing, schema construction, and deep understanding, referencing relevant practices. For instance, does the lesson include opportunities for students to apply their knowledge through hands-on experiments?
1216
+
1217
+ - **Recommendations:**
1218
+ Propose interactive activities such as problem-solving tasks, collaborative group discussions, concept mapping, or reflective writing exercises that engage students in connecting new information with existing knowledge. For example, students can create a concept map on photosynthesis linking different components together, facilitating deeper cognitive processing.
1219
+
1220
+ - **Reflective Questions:**
1221
+ Ask if there are opportunities to incorporate formative assessments or knowledge-checks that encourage students to integrate and reflect on new concepts. Consider, "How can students demonstrate their understanding throughout the lesson?" or "Are there checkpoints to assess understanding before moving on?"
1222
+
1223
+ ### 3. Enhanced Scenario-Based Applications
1224
+ - **Real-World Application Scenarios:**
1225
+ Propose detailed scenarios where the lesson can be applied in practice, discussing implementations in various learning environments. For instance, students could conduct a project on local plants and their photosynthetic processes, fostering collaborative learning and practical application of concepts.
1226
+
1227
+ - **Differentiation Strategies:**
1228
+ Recommend adaptations and tailored approaches for learners with varying skill levels or learning preferences, including ideas for supporting diverse learning needs. For example, provide visual aids for English language learners or hands-on activities for kinesthetic learners, ensuring that all students can engage with the material effectively.
1229
+
1230
+ - **Additional Insights:**
1231
+ Explain how these scenarios improve student engagement, promote active learning, and maximize retention by aligning with CLT principles. Discuss the role of context in enhancing motivation and the effectiveness of learning experiences.
1232
+
1233
+ ### 4. Specific Feedback & Areas for Enhancement
1234
+ - **Strengths:**
1235
+ Summarize the effective aspects of the lesson idea, highlighting clear objectives, well-structured content, and any innovative practices already in place. Recognizing strengths can help in building confidence and motivation for the teacher.
1236
+
1237
+ - **Areas for Improvement:**
1238
+ Identify specific areas for enhancement related to intrinsic, extraneous, and germane load, noting if sections of the lesson are too complex, if the presentation distracts learners, or if engagement activities could be deepened.
1239
+
1240
+ - **Actionable Recommendations:**
1241
+ Provide a detailed list of step-by-step solutions or alternative approaches, offering examples or tips for reorganizing the lesson, clarifying complex points, or integrating more interactive components that promote deeper learning.
1242
+
1243
+ ### 5. Action Plan & Implementation Suggestions
1244
+ - **Revision Roadmap:**
1245
+ Offer a prioritized, step-by-step plan for revising the lesson, suggesting a timeline or checkpoints for evaluating progress. This could include a phased approach to implementing changes, such as starting with the most critical areas first.
1246
+
1247
+ - **Technology & Multimedia Integration:**
1248
+ Recommend digital tools or resources (e.g., interactive whiteboards, educational videos, simulation software, online quizzes) that can support lesson revisions and enhance content delivery. Highlight how these tools can enrich the learning experience and provide additional support for diverse learners.
1249
+
1250
+ - **Assessment Strategies:**
1251
+ Propose methods for formative and summative assessments that allow the teacher to gauge learner understanding and gather feedback for continuous improvement. This could include strategies like peer assessments, self-reflections, or exit tickets that provide insights into student comprehension.
1252
+
1253
+ ### 6. Summary & Next Steps
1254
+ - **Recap of Key Findings:**
1255
+ Concisely summarize the main strengths and critical areas for improvement discovered during the analysis, ensuring the teacher has a clear understanding of the feedback provided.
1256
+
1257
+ - **Final Action Points:**
1258
+ List the essential next steps for the teacher to optimize the lesson plan according to CLT principles. This could involve specific actions to take before the next lesson or priorities for longer-term revisions.
1259
+
1260
+ - **Follow-Up Considerations:**
1261
+ Provide reflective questions or suggestions for further professional development, encouraging the teacher to monitor results and adjust the lesson plan iteratively. Consider recommending relevant workshops, online courses, or professional learning communities focused on CLT and instructional design.
1262
+
1263
+ **Teacher's Lesson Idea:** ${lessonIdea}
1264
+
1265
+ **IMPORTANT: Generate the ENTIRE analysis in ${languageName}. All sections, recommendations, insights, and feedback must be written in ${languageName}.**`;
1266
+
1267
+ // Prepare the payload for the API request
1268
+ const payload = {
1269
+ model: 'gpt-4o-mini',
1270
+ messages: [
1271
+ { role: 'system', content: `You are a helpful assistant. Please respond in ${languageName}. **CRITICAL: Generate the ENTIRE response in ${languageName}. Every single word, phrase, sentence, analysis, recommendation, and insight MUST be written in ${languageName}.**` },
1272
+ { role: 'user', content: promptText }
1273
+ ],
1274
+ temperature: 0.7,
1275
+ max_tokens: 5000
1276
+ };
1277
+
1278
+ // Show loading state
1279
+ const submitButton = document.querySelector('button[type="submit"]');
1280
+ const originalButtonText = submitButton.textContent;
1281
+ submitButton.textContent = 'Analyzing...';
1282
+ submitButton.disabled = true;
1283
+
1284
+ // Make a POST request to OpenAI's chat completions endpoint
1285
+ try {
1286
+ const response = await fetch('https://api.openai.com/v1/chat/completions', {
1287
+ method: 'POST',
1288
+ headers: {
1289
+ 'Content-Type': 'application/json',
1290
+ 'Authorization': `Bearer ${currentApiKey}`
1291
+ },
1292
+ body: JSON.stringify(payload)
1293
+ });
1294
+
1295
+ if (!response.ok) {
1296
+ throw new Error(`API request failed with status ${response.status}`);
1297
+ }
1298
+
1299
+ const data = await response.json();
1300
+ // Display the generated analysis
1301
+ document.getElementById("result").innerHTML =
1302
+ `<h2>CLT Analysis Results</h2><div>${data.choices[0].message.content.replace(/\n/g, '<br>')}</div>`;
1303
+ } catch (error) {
1304
+ document.getElementById("result").innerHTML =
1305
+ `<p style="color: red;">Error: ${error.message}</p>`;
1306
+ } finally {
1307
+ // Reset button state
1308
+ submitButton.textContent = originalButtonText;
1309
+ submitButton.disabled = false;
1310
+ }
1311
+ }
1312
+ </script>
1313
+ </body>
1314
+ </html>
1315
+
📘 Educator & Student Guide CLT Les.txt ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 📘 Educator & Student Guide: CLT Lesson Idea Analyzer
2
+ 1. Purpose & Impact
3
+ The CLT Lesson Idea Analyzer empowers teachers and trainers to make evidence-based decisions when planning or refining lessons. By analyzing your idea through the lens of Cognitive Load Theory, the tool helps you create more effective, accessible, and student-centered instruction.
4
+
5
+ 2. Step-by-Step Instructions
6
+ A. Getting Started
7
+ Open the Tool:
8
+ Launch the HTML file or use the hosted Hugging Face Space.
9
+
10
+ Select Your Preferred Language:
11
+ Choose from 80+ options for full interface and feedback translation.
12
+
13
+ Enter Your OpenAI API Key:
14
+ Needed for both analysis and translation (kept private in your browser).
15
+
16
+ Describe Your Lesson Idea:
17
+ Be specific! Example:
18
+ “Students learn the process of photosynthesis via group discussion, textbook reading, teacher demonstration, and a written quiz.”
19
+
20
+ Submit for Analysis:
21
+ Click “Submit” and the AI will generate a full CLT-based analysis, in your chosen language.
22
+
23
+ B. Reading & Applying the Results
24
+ Lesson Overview:
25
+ Summarizes your lesson, its goals, and intended student outcomes.
26
+
27
+ Learning Objectives:
28
+ Lists clear, actionable objectives using Bloom’s verbs.
29
+
30
+ Target Audience:
31
+ Analysis tailored to your described student group.
32
+
33
+ Cognitive Load Analysis:
34
+
35
+ Intrinsic Load: Are concepts too complex? Are they sequenced logically?
36
+ Recommendations: Chunking, scaffolding, prerequisite review.
37
+
38
+ Extraneous Load: Is the presentation clear? Are there distractions?
39
+ Recommendations: Simplify visuals, reduce clutter, streamline content.
40
+
41
+ Germane Load: How well do students engage and process deeply?
42
+ Recommendations: Add formative checks, group work, concept mapping, or reflective activities.
43
+
44
+ Scenario-Based Applications:
45
+ Shows real-world uses, differentiation tips, and strategies for all learners.
46
+
47
+ Feedback & Action Plan:
48
+ Lists strengths, areas to improve, and a concrete revision roadmap.
49
+
50
+ C. Multilingual Support
51
+ Select any language at the start or switch anytime.
52
+
53
+ The whole UI and your personalized feedback are translated via OpenAI.
54
+
55
+ Translation cache keeps things fast and secure.
56
+
57
+ D. Classroom & PD Applications
58
+ Lesson Study & Peer Coaching:
59
+ Share analyses with colleagues or in PD workshops for collaborative improvement.
60
+
61
+ Self-Reflection & Portfolio:
62
+ Use reports for evidence of professional growth, teacher appraisals, or accreditation.
63
+
64
+ Accreditation & Quality Assurance:
65
+ Provide structured, research-backed analysis to demonstrate evidence-based practice.
66
+
67
+ 3. Best Practices
68
+ Use with all new or revised lessons.
69
+
70
+ Iterate: Rerun after each major revision to get new insights.
71
+
72
+ Save and compare analyses over time for personal growth tracking.
73
+
74
+ 4. Support & Troubleshooting
75
+ Ensure your OpenAI API key is correct and has sufficient quota.
76
+
77
+ For translation errors, try clearing the cache or reloading.
78
+
79
+ If you experience issues, contact: info@shiftmind.io
80
+
81
+ With CLT Lesson Idea Analyzer, every teacher has a research partner for better, evidence-based instruction—instantly and in any language.