You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replaced mock linguistic data with a production-grade Universal Linguistic Engine.
- Added `UniversalLinguisticEngine.js` with rule-based G2P phonetics and feature-based constrained grammar.
- Updated `App.jsx` to utilize `UniversalLinguisticEngine` for:
- Dynamic rhyme detection (replacing hardcoded groups).
- Accurate syllable counting via phonetic analysis.
- Grammar generation for the CYK parser.
- Implemented `UPDATES_STRATEGY.md` outlining the roadmap.
- Fixed regex logic in PhoneticEngine to handle multiple occurrences correctly.
This document outlines three major quarter-yearly scale updates envisioned for the AG-TUNE model, aimed at evolving it from a prototype to a production-grade neuro-symbolic poetry engine.
4
+
5
+
## 1. Deep-Linguistic Neuro-Symbolic Core (Selected for Implementation)
6
+
**Goal:** Replace shallow, hardcoded linguistic data with a robust, logic-driven generative engine.
7
+
***Current State:** Uses a tiny hardcoded grammar (~30 words) and a lookup table for rhymes (~16 words).
8
+
***Upgrade:** Implement a feature-based Context-Free Grammar (CFG) with agreement enforcement (Subject-Verb-Object consistency). Replace dictionary lookups with an algorithmic Grapheme-to-Phoneme (G2P) engine for dynamic rhyme and meter detection on *any* English word.
9
+
***Benefit:** Enables infinite vocabulary usage, grammatical correctness, and true poetic structure without relying on massive pre-trained datasets.
10
+
11
+
## 2. Hierarchical Narrative Planner
12
+
**Goal:** Enable the model to "think" in stories rather than just lines.
13
+
***Current State:** Generates line-by-line using a limited look-behind buffer.
14
+
***Upgrade:** Introduce a "Director" agent that plans a stanza-level emotional arc (e.g., "Stanza 1: Loss -> Stanza 2: Bargaining -> Stanza 3: Acceptance"). Use the Rete engine to enforce these high-level constraints during the beam search of each line.
15
+
***Benefit:** Poems will have a cohesive theme and narrative progression.
16
+
17
+
## 3. Cross-Modal Synesthetic Training
18
+
**Goal:** Ground the poem's imagery in sensory reality.
19
+
***Current State:** Embeddings are learned from text co-occurrence only.
20
+
***Upgrade:** Train the emotional embedding space using multimodal data (image-caption pairs or audio-lyrics pairs). Map visual features (brightness, color entropy) to poetic features.
21
+
***Benefit:** The model could generate poetry based on an image or a melody, with grounded metaphors (e.g., describing "yellow" not just as a word, but as a sensation linked to the trained visual concept).
22
+
23
+
---
24
+
25
+
## Implementation Selection
26
+
We will implement **Update #1: Deep-Linguistic Neuro-Symbolic Core**. This is the most critical foundation; without a robust way to understand and generate language structure, higher-level planning or multimodal inputs cannot be effectively expressed. This update effectively "productionizes" the core generation capability.
0 commit comments