How virtualvinodh/avalokitam works
Avalokitam is a Tamil prosody analyzer and learning application. A user submits a verse in the analyzer; the frontend sends it to the PHP parser, then presents its metre and prosodic analysis. Separate branches support rhyme-word search, learning, and Venpaa correction. The AI workflow is routed through the Node backend, which calls the parser and Gemini; saved compositions use the backend database. Source excerpts show key calls, while some page-to-service links and unsampled parser internals are supported only by documentation or remain unverified.
Main entry points: Index.vue Verse analyzer · server.js Backend routes · geminiLoop.js Generation loop · api.php Parser API
Components 23
Frontend experience
- Verse analyzer
src/pages/Index.vue - Parser client
src/mixin/LinkMixin.js - Analysis display
src/components/ScansionDisplay.vue - Linkage display
src/components/LinkageDisplay.vue - Ornament display
src/components/OrnamentDisplay.vue - Rule feedback
src/components/RuleList.vue - Venpaa fixer
src/pages/VenpaaFixer.vue - AI verse page
src/pages/AI.vue - Save and share
src/mixin/ShareMixin.js
Prosody services
- Parser API
phpbackend/api.php - Prosody parse tree
phpbackend/parsetreeclass.php - Syllable analysis
phpbackend/yapparungalaparsetree.php - Rhyme-word service
phpbackend/getRhymingWords.php
AI and persistence
- Backend routes
backend/server.js - Generation loop
backend/geminiLoop.js - Prompt rules
backend/systemPrompt.js - Correction feedback
backend/errorFeedback.js - Composition store
backend/db.js
Learning and discovery
- Rhyme search
src/pages/search.vue - Prosody learning
src/pages/wizard.vue - Prosody reference
src/pages/learn.vue
Other components
- Verse author
- Gemini service
Connections 26
- Verse author → Verse analyzer: submits verse
src/pages/Index.vue - Verse analyzer → Parser client: requests analysis
src/pages/Index.vue - Parser client → Parser API: posts verse
src/mixin/LinkMixin.js - Parser API → Prosody parse tree: builds parse tree
- Parser API → Syllable analysis: renders syllables
- Verse analyzer → Analysis display: renders analysis
src/pages/Index.vue - Verse analyzer → Linkage display: renders linkage
src/pages/Index.vue - Verse analyzer → Ornament display: renders ornaments
src/pages/Index.vue - Verse analyzer → Rule feedback: renders rules
src/pages/Index.vue - Verse author → Rhyme search: searches word
src/pages/search.vue - Rhyme search → Rhyme-word service: requests rhymes
src/pages/search.vue - Rhyme-word service → Prosody parse tree: uses parse tree
phpbackend/getRhymingWords.php - Verse author → Prosody learning: studies prosody
- Verse author → Prosody reference: opens reference
- Verse author → Venpaa fixer: requests correction
- Venpaa fixer → Backend routes: suggests fixes
- Verse author → AI verse page: requests AI verse
- AI verse page → Backend routes: sends AI request
- Backend routes → Generation loop: runs generation
backend/server.js - Backend routes → Correction feedback: gets suggestions
backend/server.js - Generation loop → Prompt rules: builds prompts
backend/geminiLoop.js - Generation loop → Correction feedback: formats feedback
backend/geminiLoop.js - Generation loop → Parser API: validates verse
README.md - Generation loop → Gemini service: requests generation
- Save and share → Backend routes: saves composition
src/mixin/ShareMixin.js - Backend routes → Composition store: stores compositions
backend/server.js