+
+ {words.map((word, index) => {
+ if (word.trim() === '' || /^[.,!?;:\s]+$/.test(word)) {
+ return {word}
+ }
+
+ const className = getWordClass(word)
+ const icon = getWordIcon(word)
+
+ return (
+ handleWordClick(word, e)}
+ >
+ {word}
+ {icon}
+
+ )
+ })}
+
+
+
+)
+```
+
+### **統計卡片展示**
+
+#### **四張統計卡片實現**
+```tsx
+// 位置: frontend/app/generate/page.tsx:581-605
+{vocabularyStats && (
+