diff --git a/tests/README_chandas.md b/tests/README_chandas.md new file mode 100644 index 0000000..7f121d1 --- /dev/null +++ b/tests/README_chandas.md @@ -0,0 +1,74 @@ +# Sanskrit Poetry Chandas Verifier + +[Generated - may be outdated] + +This project provides an end-to-end pipeline for generating, verifying, and evaluating Sanskrit poetry with respect to traditional metrical constraints (Chandas). It leverages the [chandas](https://github.com/sanskrit-coders/chandas) library for meter analysis and OpenAI LLMs for both verse generation and semantic grading. + +--- + +## Features + +- **Prompt Generation:** Randomly generates Sanskrit poetry prompts with a specified topic and meter. +- **Verse Generation:** Uses OpenAI LLMs to generate Sanskrit verses according to the prompt. +- **Meter Verification:** Analyzes the generated verse using the chandas library to check if it matches the requested meter, with robust Devanagari-to-IAST normalization. +- **Semantic Grading:** Uses an LLM (optionally a different "thinking" model) to grade the verse for meaning, topic relevance, authenticity, and completeness. +- **Syllable Analysis:** Breaks down the verse into syllables for further analysis. +- **Result Storage and Analysis:** Saves results and provides meter-wise performance statistics. + +--- + +## Usage + +1. **Install dependencies:** + ```bash + pip install git+https://github.com/sanskrit-coders/chandas indic-transliteration openai + ``` + +2. **Set your OpenAI API key:** + ```bash + export OPENAI_API_KEY=your-key-here + ``` + +3. **Run the script:** + ```bash + python sanskrit_poetry_chandas_verifier.py + ``` + +4. **Review the output:** + Results, including meter match statistics and semantic grading, will be printed and saved to disk. + +--- + +## File Structure + +- `sanskrit_poetry_chandas_verifier.py` — Main pipeline for prompt generation, verse generation, meter verification, grading, and analysis. + +--- + +## Next Steps + +1. **Complete Function Implementations:** + Fill in the missing logic for all functions in the script, ensuring robust error handling and logging. + +2. **Test the Pipeline:** + Run the full pipeline on a small dataset and verify that meter and semantic grading work as expected. + +3. **Refine LLM Prompts:** + Improve prompts for both generation and grading. Consider using a different model for grading to reduce bias. + +4. **Expand Dataset and Metrics:** + Add more topics, meters, and prompt styles. Include more detailed evaluation metrics. + +5. **Add Human Evaluation (Optional):** + Manually review a sample of outputs to benchmark LLM grader reliability. + +6. **Document and Share:** + Write clear documentation and consider adding a CLI or notebook interface. Share your results and code with the community. + +--- + +## References + +- [chandas library](https://github.com/sanskrit-coders/chandas) +- [OpenAI API documentation](https://platform.openai.com/docs/) +- [Indic Transliteration](https://github.com/indic-transliteration/indic_transliteration_py) diff --git a/tests/data/sanskrit_dataset.json b/tests/data/sanskrit_dataset.json new file mode 100644 index 0000000..7bb6f60 --- /dev/null +++ b/tests/data/sanskrit_dataset.json @@ -0,0 +1,1542 @@ +[ + { + "id": 0, + "topic": "धर्म", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about धर्म in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "गुरु", + "meter": "मन्दाक्रान्ता", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "शान्ति", + "meter": "मन्दाक्रान्ता", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "मित्रता", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about मित्रता in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "प्रकृति", + "meter": "अनुष्टुप्", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "शौर्य", + "meter": "शार्दूलविक्रीडित", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "प्रकृति", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about प्रकृति in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "मित्रता", + "meter": "शार्दूलविक्रीडित", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "धर्म", + "meter": "मन्दाक्रान्ता", + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "शान्ति", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about शान्ति in मालिनी meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "धर्म", + "meter": "मालिनी", + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "प्रकृति", + "meter": "मन्दाक्रान्ता", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "सौंदर्य", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about सौंदर्य in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "भक्ति", + "meter": "वसन्ततिलका", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "विद्या", + "meter": "इन्द्रवज्रा", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "धर्म", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about धर्म in मालिनी meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "गुरु", + "meter": "मन्दाक्रान्ता", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "विद्या", + "meter": "मालिनी", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "प्रकृति", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about प्रकृति in वसन्ततिलका meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "सत्य", + "meter": "मन्दाक्रान्ता", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "भक्ति", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about भक्ति in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "गुरु", + "meter": "शार्दूलविक्रीडित", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "करुणा", + "meter": "मालिनी", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "सौंदर्य", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about सौंदर्य in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "मातृभूमि", + "meter": "मालिनी", + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "सौंदर्य", + "meter": "अनुष्टुप्", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "प्रकृति", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about प्रकृति in वसन्ततिलका meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "मातृभूमि", + "meter": "मन्दाक्रान्ता", + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "विद्या", + "meter": "अनुष्टुप्", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "विद्या", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about विद्या in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "करुणा", + "meter": "अनुष्टुप्", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "शौर्य", + "meter": "मन्दाक्रान्ता", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "शान्ति", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about शान्ति in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "गुरु", + "meter": "इन्द्रवज्रा", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "विद्या", + "meter": "मालिनी", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "सौंदर्य", + "meter": "अनुष्टुप्", + "prompt": "Write a Sanskrit verse about सौंदर्य in अनुष्टुप् meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "मातृभूमि", + "meter": "इन्द्रवज्रा", + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "विद्या", + "meter": "अनुष्टुप्", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "मातृभूमि", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about मातृभूमि in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "करुणा", + "meter": "मन्दाक्रान्ता", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "धर्म", + "meter": "अनुष्टुप्", + "prompt": "Write a Sanskrit verse about धर्म in अनुष्टुप् meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "सौंदर्य", + "meter": "मालिनी", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "करुणा", + "meter": "मालिनी", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "सौंदर्य", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about सौंदर्य in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "शान्ति", + "meter": "अनुष्टुप्", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "शौर्य", + "meter": "मन्दाक्रान्ता", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "मातृभूमि", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about मातृभूमि in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "भक्ति", + "meter": "इन्द्रवज्रा", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "शान्ति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "मातृभूमि", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about मातृभूमि in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "गुरु", + "meter": "मालिनी", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "प्रकृति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "विद्या", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about विद्या in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "विद्या", + "meter": "शार्दूलविक्रीडित", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "विद्या", + "meter": "वसन्ततिलका", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about मित्रता in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "प्रकृति", + "meter": "इन्द्रवज्रा", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "शान्ति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "शौर्य", + "meter": "अनुष्टुप्", + "prompt": "Write a Sanskrit verse about शौर्य in अनुष्टुप् meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "सत्य", + "meter": "वसन्ततिलका", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "भक्ति", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about भक्ति in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "सत्य", + "meter": "वसन्ततिलका", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "सत्य", + "meter": "इन्द्रवज्रा", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "धर्म", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about धर्म in वसन्ततिलका meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "गुरु", + "meter": "मालिनी", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "विद्या", + "meter": "मालिनी", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "सौंदर्य", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about सौंदर्य in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "शौर्य", + "meter": "इन्द्रवज्रा", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "शान्ति", + "meter": "वसन्ततिलका", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "भक्ति", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about भक्ति in मालिनी meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "करुणा", + "meter": "शार्दूलविक्रीडित", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "मातृभूमि", + "meter": "मन्दाक्रान्ता", + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "शान्ति", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about शान्ति in वसन्ततिलका meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "मातृभूमि", + "meter": "अनुष्टुप्", + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "प्रकृति", + "meter": "अनुष्टुप्", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "सौंदर्य", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about सौंदर्य in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "धर्म", + "meter": "अनुष्टुप्", + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "भक्ति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "मातृभूमि", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about मातृभूमि in वसन्ततिलका meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "प्रकृति", + "meter": "मालिनी", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "गुरु", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about गुरु in वसन्ततिलका meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "प्रकृति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "विद्या", + "meter": "इन्द्रवज्रा", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "मातृभूमि", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about मातृभूमि in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "प्रकृति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "सत्य", + "meter": "इन्द्रवज्रा", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "मातृभूमि", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about मातृभूमि in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "सौंदर्य", + "meter": "मन्दाक्रान्ता", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "करुणा", + "meter": "इन्द्रवज्रा", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "शान्ति", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about शान्ति in मालिनी meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "करुणा", + "meter": "इन्द्रवज्रा", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "करुणा", + "meter": "वसन्ततिलका", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about मित्रता in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "विद्या", + "meter": "वसन्ततिलका", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "सत्य", + "meter": "शार्दूलविक्रीडित", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "प्रकृति", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about प्रकृति in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "धर्म", + "meter": "मन्दाक्रान्ता", + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "गुरु", + "meter": "मालिनी", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "धर्म", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about धर्म in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "सौंदर्य", + "meter": "इन्द्रवज्रा", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about मित्रता in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "भक्ति", + "meter": "मन्दाक्रान्ता", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "विद्या", + "meter": "वसन्ततिलका", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "करुणा", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about करुणा in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "मित्रता", + "meter": "वसन्ततिलका", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "सौंदर्य", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about सौंदर्य in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "मित्रता", + "meter": "शार्दूलविक्रीडित", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "भक्ति", + "meter": "वसन्ततिलका", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "सत्य", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about सत्य in वसन्ततिलका meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "करुणा", + "meter": "इन्द्रवज्रा", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "शौर्य", + "meter": "अनुष्टुप्", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "भक्ति", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about भक्ति in मालिनी meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "सौंदर्य", + "meter": "मालिनी", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "प्रकृति", + "meter": "वसन्ततिलका", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "धर्म", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about धर्म in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "मित्रता", + "meter": "अनुष्टुप्", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "गुरु", + "meter": "अनुष्टुप्", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "शान्ति", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about शान्ति in मालिनी meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "धर्म", + "meter": "शार्दूलविक्रीडित", + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "करुणा", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about करुणा in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "विद्या", + "meter": "वसन्ततिलका", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "विद्या", + "meter": "मालिनी", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "भक्ति", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about भक्ति in वसन्ततिलका meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "सौंदर्य", + "meter": "मन्दाक्रान्ता", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "सौंदर्य", + "meter": "इन्द्रवज्रा", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "शौर्य", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about शौर्य in वसन्ततिलका meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "सत्य", + "meter": "इन्द्रवज्रा", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "करुणा", + "meter": "वसन्ततिलका", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "सत्य", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about सत्य in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "मातृभूमि", + "meter": "अनुष्टुप्", + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "प्रकृति", + "meter": "इन्द्रवज्रा", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "धर्म", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about धर्म in मालिनी meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "मातृभूमि", + "meter": "शार्दूलविक्रीडित", + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "शौर्य", + "meter": "शार्दूलविक्रीडित", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "सौंदर्य", + "meter": "अनुष्टुप्", + "prompt": "Write a Sanskrit verse about सौंदर्य in अनुष्टुप् meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "मातृभूमि", + "meter": "वसन्ततिलका", + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "विद्या", + "meter": "इन्द्रवज्रा", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "सौंदर्य", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about सौंदर्य in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "प्रकृति", + "meter": "वसन्ततिलका", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "शौर्य", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about शौर्य in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "भक्ति", + "meter": "मालिनी", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "प्रकृति", + "meter": "अनुष्टुप्", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "विद्या", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about विद्या in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "शौर्य", + "meter": "इन्द्रवज्रा", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "धर्म", + "meter": "मालिनी", + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "विद्या", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about विद्या in मालिनी meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "विद्या", + "meter": "शार्दूलविक्रीडित", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about मित्रता in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "प्रकृति", + "meter": "मन्दाक्रान्ता", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "शान्ति", + "meter": "इन्द्रवज्रा", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "धर्म", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about धर्म in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "शौर्य", + "meter": "वसन्ततिलका", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "भक्ति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "सत्य", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about सत्य in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "गुरु", + "meter": "वसन्ततिलका", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "प्रकृति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "शान्ति", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about शान्ति in वसन्ततिलका meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "सौंदर्य", + "meter": "अनुष्टुप्", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "मातृभूमि", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about मातृभूमि in वसन्ततिलका meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "भक्ति", + "meter": "इन्द्रवज्रा", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "मित्रता", + "meter": "शार्दूलविक्रीडित", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "करुणा", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about करुणा in मालिनी meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "मित्रता", + "meter": "शार्दूलविक्रीडित", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "शान्ति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "मित्रता", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about मित्रता in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "भक्ति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "करुणा", + "meter": "वसन्ततिलका", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "मातृभूमि", + "meter": "अनुष्टुप्", + "prompt": "Write a Sanskrit verse about मातृभूमि in अनुष्टुप् meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "मातृभूमि", + "meter": "वसन्ततिलका", + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "शान्ति", + "meter": "अनुष्टुप्", + "prompt": "Write a Sanskrit verse about शान्ति in अनुष्टुप् meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "शौर्य", + "meter": "अनुष्टुप्", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "सौंदर्य", + "meter": "अनुष्टुप्", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "मित्रता", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about मित्रता in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "प्रकृति", + "meter": "मालिनी", + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "सौंदर्य", + "meter": "मन्दाक्रान्ता", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "मित्रता", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about मित्रता in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "शौर्य", + "meter": "इन्द्रवज्रा", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "शान्ति", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about शान्ति in वसन्ततिलका meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "सौंदर्य", + "meter": "मालिनी", + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "शौर्य", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about शौर्य in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "विद्या", + "meter": "इन्द्रवज्रा", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "विद्या", + "meter": "शार्दूलविक्रीडित", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "शान्ति", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about शान्ति in मालिनी meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "गुरु", + "meter": "इन्द्रवज्रा", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "विद्या", + "meter": "शार्दूलविक्रीडित", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "विद्या", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about विद्या in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "शान्ति", + "meter": "वसन्ततिलका", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "धर्म", + "meter": "शार्दूलविक्रीडित", + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "गुरु", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about गुरु in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "शान्ति", + "meter": "मन्दाक्रान्ता", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "सौंदर्य", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about सौंदर्य in मालिनी meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "भक्ति", + "meter": "मन्दाक्रान्ता", + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "शान्ति", + "meter": "वसन्ततिलका", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "करुणा", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about करुणा in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "सत्य", + "meter": "मालिनी", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 0, + "topic": "सौंदर्य", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about सौंदर्य in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 1, + "topic": "मित्रता", + "meter": "इन्द्रवज्रा", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 2, + "topic": "करुणा", + "meter": "शार्दूलविक्रीडित", + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 3, + "topic": "मित्रता", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about मित्रता in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 4, + "topic": "शान्ति", + "meter": "शार्दूलविक्रीडित", + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 5, + "topic": "मित्रता", + "meter": "अनुष्टुप्", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 6, + "topic": "सत्य", + "meter": "वसन्ततिलका", + "prompt": "Write a Sanskrit verse about सत्य in वसन्ततिलका meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 7, + "topic": "मित्रता", + "meter": "मन्दाक्रान्ता", + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 8, + "topic": "गुरु", + "meter": "वसन्ततिलका", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "basic" + }, + { + "id": 9, + "topic": "विद्या", + "meter": "मालिनी", + "prompt": "Write a Sanskrit verse about विद्या in मालिनी meter with philosophical depth", + "difficulty": "basic" + }, + { + "id": 10, + "topic": "गुरु", + "meter": "वसन्ततिलका", + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 11, + "topic": "सत्य", + "meter": "अनुष्टुप्", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 12, + "topic": "शान्ति", + "meter": "शार्दूलविक्रीडित", + "prompt": "Write a Sanskrit verse about शान्ति in शार्दूलविक्रीडित meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 13, + "topic": "शौर्य", + "meter": "मन्दाक्रान्ता", + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 14, + "topic": "सत्य", + "meter": "मन्दाक्रान्ता", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 15, + "topic": "धर्म", + "meter": "मन्दाक्रान्ता", + "prompt": "Write a Sanskrit verse about धर्म in मन्दाक्रान्ता meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 16, + "topic": "सत्य", + "meter": "मालिनी", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 17, + "topic": "सत्य", + "meter": "वसन्ततिलका", + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "difficulty": "advanced" + }, + { + "id": 18, + "topic": "भक्ति", + "meter": "इन्द्रवज्रा", + "prompt": "Write a Sanskrit verse about भक्ति in इन्द्रवज्रा meter with philosophical depth", + "difficulty": "advanced" + }, + { + "id": 19, + "topic": "विद्या", + "meter": "मन्दाक्रान्ता", + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "difficulty": "advanced" + } +] \ No newline at end of file diff --git a/tests/data/sanskrit_poetry_evaluation.json b/tests/data/sanskrit_poetry_evaluation.json new file mode 100644 index 0000000..66a3123 --- /dev/null +++ b/tests/data/sanskrit_poetry_evaluation.json @@ -0,0 +1,5713 @@ +[ + { + "id": 0, + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "प्रकृति", + "target_meter": "वसन्ततिलका", + "generated_verse": "सद्यः प्रकृतिस्तु मनोहरं विभाति, पुष्पैः सुगन्धैः सुरभीकृतं वसन्तम्। वृक्षाः स्फुरन्ते नवपल्लवैः समृद्धाः, प्रकृतिः सदा हि रमणीया शान्तिदायिनी॥", + "meter_match": false, + "predicted_meter": "", + "meter_details": {}, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThe verse is meaningful and grammatically correct, describing the beauty and aromatic nature of spring, with a clear depiction of nature's charm and tranquility. It directly addresses the topic \"प्रकृति\" (nature) with vivid imagery, staying relevant throughout. The verse has a traditional poetic feel, with appropriate vocabulary and structure, closely aligning with classical Sanskrit poetry. It presents a complete and coherent thought, capturing the essence of spring and its serene beauty.", + "syllables": [ + "सद्", + "यःप्", + "र", + "कृ", + "तिस्", + "तु", + "म", + "नो", + "ह", + "रं", + "वि", + "भा", + "ति", + "पुष्", + "पैः", + "सु", + "गन्", + "धैः", + "सु", + "र", + "भी", + "कृ", + "तं", + "व", + "सन्", + "तम्", + "वृक्", + "षाःस्", + "फु", + "रन्", + "ते", + "न", + "व", + "पल्", + "ल", + "वैः", + "स", + "मृद्", + "धाःप्", + "र", + "कृ", + "तिः", + "स", + "दा", + "हि", + "र", + "म", + "णी", + "या", + "शान्", + "ति", + "दा", + "यि", + "नी" + ] + }, + { + "id": 1, + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "सत्य", + "target_meter": "वसन्ततिलका", + "generated_verse": "सत्यं प्रियं हितमशेषजनाय वक्त्रं, सत्यं विना न खलु धर्मपथः प्रवर्तः। सत्यं हि देवमपि नायकरी भवेत् तत्, सत्ये स्थितो हि पुरुषो जगति प्रसिद्धः॥", + "meter_match": false, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "exact": { + "Vasantatilakā": null + }, + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThe verse is meaningful and grammatically correct, effectively communicating the importance of truth (सत्य) in speech and its role in righteousness and reputation. It directly addresses the topic of \"सत्य\" (truth), making the message clear and relevant. The structure, vocabulary, and style are consistent with traditional Sanskrit poetry, displaying authenticity. The verse presents a complete and coherent thought, emphasizing truth's impact on individuals and society.", + "syllables": [ + "सत्", + "यंप्", + "रि", + "यं", + "हि", + "त", + "म", + "शे", + "ष", + "ज", + "ना", + "य", + "वक्त्", + "रं", + "सत्", + "यं", + "वि", + "ना", + "न", + "ख", + "लु", + "धर्", + "म", + "प", + "थःप्", + "र", + "वर्", + "तः", + "सत्", + "यं", + "हि", + "दे", + "व", + "म", + "पि", + "ना", + "य", + "क", + "री", + "भ", + "वेत्", + "तत्", + "सत्", + "येस्", + "थि", + "तो", + "हि", + "पु", + "रु", + "षो", + "ज", + "ग", + "तिप्", + "र", + "सिद्", + "धः" + ] + }, + { + "id": 2, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "शान्तिः सदा सर्वभूतेषु वर्तते, स्नेहं च दत्त्वा मनुजेन मित्रवत्। हिंसां परित्यज्य सुखं समाश्रितः, धर्मेण जीवन्तु जनाः समाहिताः॥", + "meter_match": false, + "predicted_meter": "Indravaṃśā", + "meter_details": { + "partial": { + "Indravaṃśā": null, + "indravaṃśā": null, + "ratākhyānakī": null, + "induvaṃśā": null, + "varāsikā": null, + "indumā": null, + "manahāsā": null, + "śaṅkhacūḍā": null, + "upameyā": null, + "ramaṇā": null, + "vāsantikā": null, + "puṣṭidā": null, + "vaidhātrī": null, + "śiśirā": null + }, + "accidental": { + "śaṅkhacūḍā": null, + "vāsantikā": null, + "puṣṭidā": null, + "vaidhātrī": null, + "ratākhyānakī": null, + "kumārī": null, + "śiśirā": null, + "indumā": null, + "saurabheyī": null, + "śīlāturā": null, + "upameyā": null, + "ramaṇā": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 9\n\nThis verse is meaningful and grammatically correct, expressing the idea that peace exists in all beings, and by giving love like a friend and abandoning violence, people live happily and righteously. It directly addresses the topic of peace (शान्ति) and does so in a manner consistent with traditional Sanskrit poetry. The verse forms a complete thought, advocating for peace through non-violence and love. The only slight deduction in meaning is for minor stylistic improvements that could be made.", + "syllables": [ + "शान्", + "तिः", + "स", + "दा", + "सर्", + "व", + "भू", + "ते", + "षु", + "वर्", + "त", + "तेस्", + "ने", + "हं", + "च", + "दत्त्", + "वा", + "म", + "नु", + "जे", + "न", + "मित्", + "र", + "वत्", + "हिं", + "सां", + "प", + "रित्", + "यज्", + "य", + "सु", + "खं", + "स", + "माश्", + "रि", + "तः", + "धर्", + "मे", + "ण", + "जी", + "वन्", + "तु", + "ज", + "नाः", + "स", + "मा", + "हि", + "ताः" + ] + }, + { + "id": 3, + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "विद्या", + "target_meter": "मालिनी", + "generated_verse": "विद्या धनं सर्वधनप्रधाना, विद्या विना नास्ति कृपणो जनः। विद्या विना नास्ति गुणः प्रकाशः, विद्या हि मित्रं प्रवसन्नराणाम्॥", + "meter_match": false, + "predicted_meter": "indravajrā", + "meter_details": { + "partial": { + "indravajrā": null, + "mālā": null, + "vāṇī": null, + "kīrtiḥ": null, + "ākhyānikī": null, + "bhadrā": null, + "ākhyānakī": null, + "śālā": null, + "buddhiḥ": null, + "rāmā": null, + "bālā": null, + "jāyā": null, + "ārdrā": null, + "premā": null + }, + "accidental": { + "śālā": null, + "rāmā": null, + "bālā": null, + "viparītākhyānikī": null, + "ārdrā": null, + "māyā": null, + "viparītākhyānakī": null, + "mālā": null, + "haṃsī": null, + "premā": null, + "ṛddhiḥ": null, + "kīrtiḥ": null, + "buddhiḥ": null, + "jāyā": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 10 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThe verse is meaningful and mostly grammatically correct, emphasizing the importance of knowledge (विद्या) as the supreme wealth and a true friend for people, especially when away from home. It effectively addresses the given topic of \"विद्या\" (knowledge/education) and aligns well with traditional Sanskrit themes, showcasing the value of learning. While the verse is a complete thought, the meter is not perfectly aligned with मालिनी, which affects its overall poetic authenticity slightly.", + "syllables": [ + "विद्", + "या", + "ध", + "नं", + "सर्", + "व", + "ध", + "नप्", + "र", + "धा", + "ना", + "विद्", + "या", + "वि", + "ना", + "नास्", + "ति", + "कृ", + "प", + "णो", + "ज", + "नः", + "विद्", + "या", + "वि", + "ना", + "नास्", + "ति", + "गु", + "णःप्", + "र", + "का", + "शः", + "विद्", + "या", + "हि", + "मित्", + "रंप्", + "र", + "व", + "सन्", + "न", + "रा", + "णाम्" + ] + }, + { + "id": 4, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "वसन्ततिलका", + "generated_verse": "वज्रादपि कठोराणि संग्रामे धारयन् युधि। शत्रून् निवारयन् वीरः शौर्यं दर्शयते सदा॥", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null + }, + "accidental": { + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThis verse is meaningful and grammatically correct, describing a warrior's bravery in battle, which aligns well with the expected topic of शौर्य (valor). The use of traditional Sanskrit structure and vocabulary contributes to its authenticity, and it fits well within the expected meter of वसन्ततिलका. The verse effectively conveys a complete thought, illustrating the warrior's steadfastness and courage.", + "syllables": [ + "वज्", + "रा", + "द", + "पि", + "क", + "ठो", + "रा", + "णि", + "संग्", + "रा", + "मे", + "धा", + "र", + "यन्", + "यु", + "धि", + "शत्", + "रून्", + "नि", + "वा", + "र", + "यन्", + "वी", + "रः", + "शौर्", + "यं", + "दर्", + "श", + "य", + "ते", + "स", + "दा" + ] + }, + { + "id": 0, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": "शान्तिः सर्वत्रastu स्थिरमति-मनसां साधु-भावं विधत्ते, जीवेषु प्रेम-रूपा जगति विहरति प्रज्ञया दीप्यमाना। धर्मे शीलं च नित्यं विमलमपि सदा सत्य-मार्गे स्थितं स्यात्, शान्तिं प्राप्य प्रयाति स्वहित-हितकरं सम्पदां साधनं च॥", + "meter_match": false, + "predicted_meter": "Sragdharā", + "meter_details": { + "partial": { + "Sragdharā": null, + "sragdharā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 9 COMPLETENESS: 9\n\nThe verse is meaningful and grammatically correct, effectively conveying the idea of peace (शान्तिः) and its impacts on individuals and society, aligning well with traditional Sanskrit poetic style. The topic relevance is strong as peace is depicted as a force that instills virtuous qualities and harmony. The verse presents a complete and coherent thought, exploring the theme of peace through various aspects such as love, wisdom, and righteousness, typical of classical Sanskrit literature.", + "syllables": [ + "शान्", + "तिः", + "सर्", + "वत्", + "रस्", + "थि", + "र", + "म", + "ति", + "म", + "न", + "सां", + "सा", + "धु", + "भा", + "वं", + "वि", + "धत्", + "ते", + "जी", + "वे", + "षुप्", + "रे", + "म", + "रू", + "पा", + "ज", + "ग", + "ति", + "वि", + "ह", + "र", + "तिप्", + "रज्", + "ञ", + "या", + "दीप्", + "य", + "मा", + "ना", + "धर्", + "मे", + "शी", + "लं", + "च", + "नित्", + "यं", + "वि", + "म", + "ल", + "म", + "पि", + "स", + "दा", + "सत्", + "य", + "मार्", + "गेस्", + "थि", + "तंस्", + "यात्", + "शान्", + "तिंप्", + "राप्", + "यप्", + "र", + "या", + "तिस्", + "व", + "हि", + "त", + "हि", + "त", + "क", + "रं", + "सम्", + "प", + "दां", + "सा", + "ध", + "नं", + "च" + ] + }, + { + "id": 1, + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "धर्म", + "target_meter": "मालिनी", + "generated_verse": "धर्मो हि सर्वस्य जगत्प्रतिष्ठा, धर्मेण शुद्धं हि मनः सदा स्यात। धर्मेण वर्तेत मनुष्यजीवनं, धर्मेण लभ्यं हि सुखं च मोक्षः॥", + "meter_match": false, + "predicted_meter": "indravajrā", + "meter_details": { + "partial": { + "indravajrā": null, + "ākhyānikī": null, + "bhadrā": null, + "ākhyānakī": null, + "śālā": null, + "vāṇī": null, + "buddhiḥ": null, + "rāmā": null, + "bālā": null, + "jāyā": null, + "viparītākhyānikī": null, + "ārdrā": null, + "viparītākhyānakī": null, + "haṃsī": null, + "ṛddhiḥ": null, + "kīrtiḥ": null, + "Indravaṃśā": null, + "indravaṃśā": null, + "vaidhātrī": null, + "ratākhyānakī": null, + "manahāsā": null, + "induvaṃśā": null, + "śiśirā": null, + "varāsikā": null, + "indumā": null, + "vāsantikā": null, + "mālā": null, + "premā": null + }, + "accidental": { + "viparītākhyānikī": null, + "ārdrā": null, + "māyā": null, + "viparītākhyānakī": null, + "mālā": null, + "haṃsī": null, + "premā": null, + "ṛddhiḥ": null, + "kīrtiḥ": null, + "ākhyānikī": null, + "bhadrā": null, + "ākhyānakī": null, + "vāṇī": null, + "buddhiḥ": null, + "jāyā": null, + "mṛgī": null, + "sopadhi": null, + "vijohā": null, + "śālā": null, + "rāmā": null, + "bālā": null, + "kumārī": null, + "śaṅkhacūḍā": null, + "saurabheyī": null, + "upameyā": null, + "ramaṇā": null, + "śīlāturā": null, + "puṣṭidā": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThis verse is meaningful and grammatically correct, clearly conveying the importance of 'dharma' as the foundation of the world, purity of mind, guidance for human life, and the path to happiness and liberation. It is highly relevant to the expected topic of 'dharma,' addressing its significance in various aspects of life. The verse sounds authentic, resembling traditional Sanskrit poetry with a coherent structure and thought. It is a complete verse, presenting a unified and comprehensive idea about the role of dharma.", + "syllables": [ + "धर्", + "मो", + "हि", + "सर्", + "वस्", + "य", + "ज", + "गत्प्", + "र", + "तिष्", + "ठा", + "धर्", + "मे", + "ण", + "शुद्", + "धं", + "हि", + "म", + "नः", + "स", + "दास्", + "या", + "त", + "धर्", + "मे", + "ण", + "वर्", + "ते", + "त", + "म", + "नुष्", + "य", + "जी", + "व", + "नं", + "धर्", + "मे", + "ण", + "लभ्", + "यं", + "हि", + "सु", + "खं", + "च", + "मोक्", + "षः" + ] + }, + { + "id": 2, + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "topic": "करुणा", + "target_meter": "शार्दूलविक्रीडित", + "generated_verse": "विपन्नजनसन्तापविनाशनपरायणा। करुणा हि सदा देवी जीवेषु करुणावती॥", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "bhārṅgī": null, + "pañcaśikhā": null + }, + "accidental": { + "madhu": null, + "ṛju": null, + "kalā": null, + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 9\n\nThis verse is meaningful and grammatically correct, expressing the idea of compassion (करुणा) as a divine quality that alleviates the suffering of those in distress. It aptly addresses the expected topic of \"करुणा\" by focusing on the compassionate nature of a divine being. The verse maintains the style and diction typical of traditional Sanskrit poetry, though the meter might not perfectly align with the strict rules of शार्दूलविक्रीडित. As a standalone verse, it presents a complete and coherent thought, encapsulating the essence of compassion.", + "syllables": [ + "वि", + "पन्", + "न", + "ज", + "न", + "सन्", + "ता", + "प", + "वि", + "ना", + "श", + "न", + "प", + "रा", + "य", + "णा", + "क", + "रु", + "णा", + "हि", + "स", + "दा", + "दे", + "वी", + "जी", + "वे", + "षु", + "क", + "रु", + "णा", + "व", + "ती" + ] + }, + { + "id": 3, + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "करुणा", + "target_meter": "वसन्ततिलका", + "generated_verse": "सन्तापिते जननि मातरि दीनवृत्ते, दृष्ट्वा करोषि करुणां यदि वत्सलोऽसि। तत्त्वं हि तेन हृदये प्रददाति शान्ति, निःशेषदुःखहरणे विहिता त्वदास्या॥", + "meter_match": false, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "exact": { + "Vasantatilakā": null + }, + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThe verse is meaningful and grammatically correct, expressing a thought about compassion (करुणा) towards a distressed mother, which fits well with the expected topic. It uses traditional metaphors and expressions typical of Sanskrit poetry, making it sound authentic. The verse is complete, presenting a coherent idea about the relief and peace that compassion can bring, fulfilling the criteria effectively. The use of Sanskrit terms and structure adds to its traditional poetic quality.", + "syllables": [ + "सन्", + "ता", + "पि", + "ते", + "ज", + "न", + "नि", + "मा", + "त", + "रि", + "दी", + "न", + "वृत्", + "ते", + "दृष्ट्", + "वा", + "क", + "रो", + "षि", + "क", + "रु", + "णां", + "य", + "दि", + "वत्", + "स", + "लो", + "सि", + "तत्त्", + "वं", + "हि", + "ते", + "न", + "हृ", + "द", + "येप्", + "र", + "द", + "दा", + "ति", + "शान्", + "ति", + "निः", + "शे", + "ष", + "दुः", + "ख", + "ह", + "र", + "णे", + "वि", + "हि", + "तात्", + "व", + "दास्", + "या" + ] + }, + { + "id": 4, + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "भक्ति", + "target_meter": "मालिनी", + "generated_verse": "ब्रह्माणं भजते मनो यदिह भक्त्या, प्रेम्णा च यः सेवते। संसारार्णवपारगः स भवति, ज्ञानं च तस्योत्तमम्। विमुक्तिः सुखदायिनी परमुना, त्यागं समाराध्यते। मालिन्यां वृत्तमिदं समुचितं, भक्तिः सदा पूज्यते॥", + "meter_match": false, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 6 COMPLETENESS: 7\n\nThe verse is generally meaningful and grammatically correct, expressing the idea of devotion (भक्ति) leading to liberation and ultimate knowledge, which aligns well with traditional themes in Sanskrit literature. It addresses the topic of भक्ति effectively, emphasizing devotion, love, and renunciation as paths to spiritual realization. However, the verse lacks the refined elegance and complexity typically found in classical Sanskrit poetry, and while it forms a mostly complete thought, some expressions feel slightly forced or awkward. The meter is not perfectly aligned with मालिनी, which affects its authenticity.", + "syllables": [ + "ब्रह्", + "मा", + "णं", + "भ", + "ज", + "ते", + "म", + "नो", + "य", + "दि", + "ह", + "भक्त्", + "याप्", + "रेम्", + "णा", + "च", + "यः", + "से", + "व", + "ते", + "सं", + "सा", + "रार्", + "ण", + "व", + "पा", + "र", + "गः", + "स", + "भ", + "व", + "तिज्", + "ञा", + "नं", + "च", + "तस्", + "योत्", + "त", + "मम्", + "वि", + "मुक्", + "तिः", + "सु", + "ख", + "दा", + "यि", + "नी", + "प", + "र", + "मु", + "नात्", + "या", + "गं", + "स", + "मा", + "राध्", + "य", + "ते", + "मा", + "लिन्", + "यां", + "वृत्", + "त", + "मि", + "दं", + "स", + "मु", + "चि", + "तं", + "भक्", + "तिः", + "स", + "दा", + "पूज्", + "य", + "ते" + ] + }, + { + "id": 0, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": "वीरस्योच्चैः शौर्यगर्जाभिराविर्भवन्तं। युध्दे तिष्ठन्तं शत्रुसैन्यं निरुन्धन्तमेकम्। धैर्येणाद्यं योद्धृश्रेणिं जयन्तं सदा यः। स्मर्तव्यं तं वीरमिन्द्रं नमामो वयं च॥", + "meter_match": false, + "predicted_meter": "niryatpārāvāraḥ", + "meter_details": { + "partial": { + "niryatpārāvāraḥ": null, + "citrā": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThe verse is meaningful and mostly grammatically correct, describing the valor and bravery of a hero in battle, which aligns well with the expected topic of \"शौर्य\" (valor). The language and style are consistent with traditional Sanskrit poetry, although there are some minor grammatical awkwardnesses that slightly detract from its perfection. The verse presents a complete thought, praising the hero, akin to Indra, in a cohesive and coherent manner.", + "syllables": [ + "वी", + "रस्", + "योच्", + "चैः", + "शौर्", + "य", + "गर्", + "जा", + "भि", + "रा", + "विर्", + "भ", + "वन्", + "तं", + "युध्", + "दे", + "तिष्", + "ठन्", + "तं", + "शत्", + "रु", + "सैन्", + "यं", + "नि", + "रुन्", + "धन्", + "त", + "मे", + "कम्", + "धैर्", + "ये", + "णाद्", + "यं", + "योद्", + "धृश्", + "रे", + "णिं", + "ज", + "यन्", + "तं", + "स", + "दा", + "यःस्", + "मर्", + "तव्", + "यं", + "तं", + "वी", + "र", + "मिन्द्", + "रं", + "न", + "मा", + "मो", + "व", + "यं", + "च" + ] + }, + { + "id": 1, + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "topic": "करुणा", + "target_meter": "अनुष्टुप्", + "generated_verse": "सर्वेषां जीविते हेतुः करुणा परमाऽऽशया। या दया सर्वभूतेषु सैव धर्मस्य कारणम्॥", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "kalilā": null, + "amanā": null, + "lakṣmī": null, + "hemarūpam": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThis verse is meaningful and grammatically correct, expressing the idea that compassion (करुणा) is the ultimate reason for life and the cause of dharma. It directly addresses the topic of compassion, aligning well with the expected theme. The style and language are consistent with traditional Sanskrit poetry, employing the Anushtubh meter effectively. The verse presents a complete thought, encapsulating its message succinctly.", + "syllables": [ + "सर्", + "वे", + "षां", + "जी", + "वि", + "ते", + "हे", + "तुः", + "क", + "रु", + "णा", + "प", + "र", + "मा", + "श", + "या", + "या", + "द", + "या", + "सर्", + "व", + "भू", + "ते", + "षु", + "सै", + "व", + "धर्", + "मस्", + "य", + "का", + "र", + "णम्" + ] + }, + { + "id": 2, + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "सौंदर्य", + "target_meter": "वसन्ततिलका", + "generated_verse": "वदन्ति निर्मलमिदं मुखमिन्दुबिम्बं, विकसिति सस्मितमिदं वदनं सुगन्धि। सर्वत्र हर्षमयमीश्वरेण सृष्टं, सौन्दर्यमस्तु भवतां वसुधा सुशोभा॥", + "meter_match": false, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThis verse is meaningful and grammatically correct, describing beauty through the imagery of a pure face like the moon and a fragrant, smiling visage. It aligns well with the topic of \"beauty\" (सौंदर्य) as it poetically expresses the creation of joy and beauty by the divine. The verse sounds like traditional Sanskrit poetry, though it slightly lacks the depth found in classical texts. Overall, the verse presents a complete and coherent thought, capturing the essence of beauty in a harmonious manner.", + "syllables": [ + "व", + "दन्", + "ति", + "निर्", + "म", + "ल", + "मि", + "दं", + "मु", + "ख", + "मिन्", + "दु", + "बिम्", + "बं", + "वि", + "क", + "सि", + "ति", + "सस्", + "मि", + "त", + "मि", + "दं", + "व", + "द", + "नं", + "सु", + "गन्", + "धि", + "सर्", + "वत्", + "र", + "हर्", + "ष", + "म", + "य", + "मीश्", + "व", + "रे", + "ण", + "सृष्", + "टं", + "सौन्", + "दर्", + "य", + "मस्", + "तु", + "भ", + "व", + "तां", + "व", + "सु", + "धा", + "सु", + "शो", + "भा" + ] + }, + { + "id": 3, + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "topic": "प्रकृति", + "target_meter": "शार्दूलविक्रीडित", + "generated_verse": "पश्येत् सर्वत्र विभाति प्रकृतिः सा शोभिता कानने, या पुष्पैः सुरभीकृते नववने वायुः सुखं वायति। धाराभिः सरितः प्रपूरयति च स्वच्छं जलं धारया, भूयाद् भूभृत एव रक्षणकरी नित्यं सदा सर्वदा॥", + "meter_match": false, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThe verse is meaningful and grammatically well-constructed, describing the beauty and essence of nature (प्रकृति) in a poetic manner, which aligns perfectly with the expected topic. It captures the picturesque scenery of a forest adorned with fragrant flowers and refreshing breezes, invoking a vivid image that is characteristic of traditional Sanskrit poetry. The verse is a complete thought, conveying the natural world's splendor and the desire for its eternal protection, thus scoring high in all criteria.", + "syllables": [ + "पश्", + "येत्", + "सर्", + "वत्", + "र", + "वि", + "भा", + "तिप्", + "र", + "कृ", + "तिः", + "सा", + "शो", + "भि", + "ता", + "का", + "न", + "ने", + "या", + "पुष्", + "पैः", + "सु", + "र", + "भी", + "कृ", + "ते", + "न", + "व", + "व", + "ने", + "वा", + "युः", + "सु", + "खं", + "वा", + "य", + "ति", + "धा", + "रा", + "भिः", + "स", + "रि", + "तःप्", + "र", + "पू", + "र", + "य", + "ति", + "चस्", + "वच्", + "छं", + "ज", + "लं", + "धा", + "र", + "या", + "भू", + "याद्", + "भू", + "भृ", + "त", + "ए", + "व", + "रक्", + "ष", + "ण", + "क", + "री", + "नित्", + "यं", + "स", + "दा", + "सर्", + "व", + "दा" + ] + }, + { + "id": 4, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "वीर्यं धारयति यो धृतिं समुचितां, शत्रून् निहन्ति सः। वीरः स्यात् धरणीपतिः स जयते, शौर्येण संस्तूयते॥", + "meter_match": false, + "predicted_meter": "nibhālitā", + "meter_details": { + "accidental": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null, + "vāsavavanditā": null, + "bhadravirāṭ": null, + "asudhā": null, + "vaiyālī": null, + "vaisārī": null + }, + "partial": { + "nibhālitā": null, + "vaisārī": null, + "ravonmukhī": null, + "śuddhavirāṭ": null, + "virāṭ": null, + "prabhāsitā": null, + "vāsavavanditā": null, + "sudhā": null, + "karadhā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThe verse is meaningful and grammatically correct, describing a person who possesses strength and determination, overcomes enemies, and is praised for their valor, which ties well with the topic of \"शौर्य\" (valor). The structure and choice of words give it an authentic feel of traditional Sanskrit poetry, though it slightly deviates from classical conventions. The verse presents a complete thought, encapsulating the idea of a valorous person being victorious and celebrated.", + "syllables": [ + "वीर्", + "यं", + "धा", + "र", + "य", + "ति", + "यो", + "धृ", + "तिं", + "स", + "मु", + "चि", + "तां", + "शत्", + "रून्", + "नि", + "हन्", + "ति", + "सः", + "वी", + "रःस्", + "यात्", + "ध", + "र", + "णी", + "प", + "तिः", + "स", + "ज", + "य", + "ते", + "शौर्", + "ये", + "ण", + "संस्", + "तू", + "य", + "ते" + ] + }, + { + "id": 0, + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "गुरु", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": [ + "विद्यां ददाति यः स गुरुः सदा पूज्यो, ज्ञानं प्रकाश्यते यः तमसां हरे च", + "सर्वज्ञं तं गुरुं प्रणम्येह भक्त्या" + ], + "meter_match": false, + "predicted_meter": "", + "meter_details": "'list' object has no attribute 'replace'", + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 9 AUTHENTICITY: 6 COMPLETENESS: 8\n\nThe verse is grammatically correct and meaningful, discussing the revered status of a guru who imparts knowledge and dispels darkness, which aligns well with the expected topic of \"गुरु.\" However, the use of words and structure feels somewhat contemporary and less traditional, affecting its authenticity. The verse presents a mostly complete thought, though it could benefit from more elaboration to enhance its poetic quality.", + "syllables": "expected string or buffer" + }, + { + "id": 1, + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "करुणा", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": [ + "कान्ताराभ्रान्तसञ्चारिणः करुणया पश्यन्मुनीन्द्रः कृपां या", + "दत्त्वा लोकान् समुद्धर्तुमनिशं मेघः कृपालुः पयोदा" + ], + "meter_match": false, + "predicted_meter": "", + "meter_details": "'list' object has no attribute 'replace'", + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 9 COMPLETENESS: 8\n\nThe verse is meaningful and grammatically correct, drawing a vivid comparison between a compassionate sage and the merciful rain clouds. It effectively addresses the topic of \"करुणा\" (compassion) by illustrating the benevolence of both the sage and the clouds. The language and style are consistent with traditional Sanskrit poetry, creating an authentic feel. While the verse conveys a complete idea, it could be more impactful with additional context or elaboration.", + "syllables": "expected string or buffer" + }, + { + "id": 2, + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "गुरु", + "target_meter": "इन्द्रवज्रा", + "generated_verse": [ + "गुरुर्ब्रह्मा गुरुर्विष्णुर्गुरुर्देवो महेश्वरः", + "गुरुः साक्षात् परं ब्रह्म तस्मै श्रीगुरवे नमः" + ], + "meter_match": false, + "predicted_meter": "", + "meter_details": "'list' object has no attribute 'replace'", + "semantic_evaluation": "MEANING:10 TOPIC_RELEVANCE:10 AUTHENTICITY:10 COMPLETENESS:10\n\nThe verse is a well-known and revered Sanskrit shloka from the Guru Stotram, which praises the Guru as the embodiment of the divine trinity—Brahma, Vishnu, and Maheshwara—and the ultimate Brahman. It is grammatically correct and meaningful, aligning perfectly with the expected topic of 'गुरु' (Guru). The verse is traditionally authentic, widely recited in Hindu spiritual contexts, and constitutes a complete expression of reverence for the Guru.", + "syllables": "expected string or buffer" + }, + { + "id": 3, + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "गुरु", + "target_meter": "इन्द्रवज्रा", + "generated_verse": [ + "गुरुर्ब्रह्मा गुरुर्विष्णुः गुरुर्देवो महेश्वरः", + "गुरुः साक्षात् परं ब्रह्म तस्मै श्रीगुरवे नमः" + ], + "meter_match": false, + "predicted_meter": "", + "meter_details": "'list' object has no attribute 'replace'", + "semantic_evaluation": "MEANING: 10 TOPIC_RELEVANCE: 10 AUTHENTICITY: 10 COMPLETENESS: 10\n\nThis verse is a well-known and meaningful Sanskrit shloka. It grammatically and elegantly pays homage to the Guru by equating the Guru with the divine trinity of Brahma, Vishnu, and Maheshwara, and ultimately the supreme Brahman. It is directly relevant to the topic of \"Guru\" and is a traditional expression of reverence found in many classical texts. The verse is complete in its expression and conveys a profound sense of respect and devotion.", + "syllables": "expected string or buffer" + }, + { + "id": 4, + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "सौंदर्य", + "target_meter": "इन्द्रवज्रा", + "generated_verse": [ + "नयनानन्दकरं रूपं, हृदयस्य हरेत् क्षणात्", + "यत्र सौंदर्यमायातं, तत्र दृष्टिर्विनश्यति" + ], + "meter_match": false, + "predicted_meter": "", + "meter_details": "'list' object has no attribute 'replace'", + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 8\n\nThe verse is meaningful and grammatically correct, describing how beauty captivates the heart and draws the gaze, aligning well with the expected topic of सौंदर्य (beauty). The use of language is consistent with traditional Sanskrit poetry, making it sound authentic. The verse presents a complete thought, though it could be slightly more expanded or nuanced to fully evoke the depth often found in classical Sanskrit poetry.", + "syllables": "expected string or buffer" + }, + { + "id": 0, + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "मातृभूमि", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "मातृभूमिं नमस्यामि पुण्यां विहाय जन्मभूमिम् यस्यां जाताः पुरा वीराः धर्मरक्षा कृता यैः", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "partial": { + "Anuṣṭup (Śloka)": null, + "lakṣmī": null, + "bhaurikam": null, + "samānikā": null, + "siṃhalekhā": null, + "nārācaka": null, + "nārācikā": null, + "ammethī": null, + "kirmīram": null, + "sāmikā": null, + "haṃsamālā": null, + "karālī": null, + "kiṣku": null + }, + "accidental": { + "candralekhā": null, + "strī": null, + "nandaḥ": null, + "dhāri": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 8\n\nExplanation: The verse is meaningful and grammatically correct, expressing reverence for the motherland and highlighting its history of producing valiant warriors who protected dharma. It addresses the topic of \"मातृभूमि\" effectively. The style is reminiscent of traditional Sanskrit poetry. However, the completion of thought could be slightly more polished, which affects its overall completeness. The meter, इन्द्रवज्रा, is mostly adhered to, but a detailed metrical analysis could reveal minor deviations.", + "syllables": [ + "मा", + "तृ", + "भू", + "मिं", + "न", + "मस्", + "या", + "मि", + "पुण्", + "यां", + "वि", + "हा", + "य", + "जन्", + "म", + "भू", + "मिम्", + "यस्", + "यां", + "जा", + "ताः", + "पु", + "रा", + "वी", + "राः", + "धर्", + "म", + "रक्", + "षा", + "कृ", + "ता", + "यैः" + ] + }, + { + "id": 1, + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "topic": "गुरु", + "target_meter": "अनुष्टुप्", + "generated_verse": "गुकारस्त्वन्धकारः स्यात् रुकारस्तन्निवारकः अन्धकारनिरोधित्वात् गुरुरित्यभिधीयते", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "kulādhārī": null, + "bhāṣā": null, + "kalilā": null, + "amanā": null + }, + "accidental": { + "krīḍā": null, + "vāri": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 8 COMPLETENESS: 10\n\nThis verse is meaningful and grammatically correct, explaining the significance of the syllables in the word \"guru\" by equating the syllable \"gu\" with darkness and \"ru\" with the remover of darkness, thus defining a guru as one who dispels ignorance. It directly addresses the expected topic of \"guru\" with clarity and relevance. It resembles traditional Sanskrit poetry in its structure and depth, although it is quite straightforward, which slightly affects its authenticity. The verse is a complete thought and effectively communicates its message.", + "syllables": [ + "गु", + "का", + "रस्त्", + "वन्", + "ध", + "का", + "रःस्", + "यात्", + "रु", + "का", + "रस्", + "तन्", + "नि", + "वा", + "र", + "कः", + "अन्", + "ध", + "का", + "र", + "नि", + "रो", + "धित्", + "वात्", + "गु", + "रु", + "रित्", + "य", + "भि", + "धी", + "य", + "ते" + ] + }, + { + "id": 2, + "prompt": "'प्रकृति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "प्रकृति", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "पश्य धात्रीं सृजन्तीं शान्तिं, वृक्षपुष्पैः सुभासिताम् नद्यः स्रोतांसि वहन्ति, धरणीं शरणं गताम्", + "meter_match": false, + "predicted_meter": "lakṣmī", + "meter_details": { + "partial": { + "lakṣmī": null, + "hemarūpam": null, + "karālī": null, + "kiṣku": null, + "pratisīrā": null, + "ardhakṣāmā": null, + "kalilā": null, + "amanā": null, + "karaśayā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 7\n\nThe verse is meaningful and grammatically correct in Sanskrit, depicting nature (प्रकृति) with elements like trees, flowers, rivers, and earth, aligning well with the expected topic. The language and imagery used reflect traditional Sanskrit poetry, though the composition lacks the depth and sophistication found in classical works. While the verse presents a coherent image, it feels slightly incomplete as it does not fully explore the interaction between the elements mentioned.", + "syllables": [ + "पश्", + "य", + "धात्", + "रीं", + "सृ", + "जन्", + "तीं", + "शान्", + "तिं", + "वृक्", + "ष", + "पुष्", + "पैः", + "सु", + "भा", + "सि", + "ताम्", + "नद्", + "यःस्", + "रो", + "तां", + "सि", + "व", + "हन्", + "ति", + "ध", + "र", + "णीं", + "श", + "र", + "णं", + "ग", + "ताम्" + ] + }, + { + "id": 3, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "मालिनी", + "generated_verse": "वीर्यं धारयते यो हि, निर्भयं यो हि वर्तते शत्रून् जयति नित्यं सः, शौर्यं तस्य प्रकीर्त्यते", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "hemarūpam": null + }, + "accidental": { + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 9\n\nThe verse is meaningful and grammatically correct, conveying the idea that courage and fearlessness lead to victory over enemies, and such bravery is celebrated. It clearly addresses the topic of \"शौर्य\" (valor/courage), making it relevant to the expected theme. While it resembles traditional Sanskrit poetry, it may not fully adhere to the complexities and nuances of classical verse, slightly affecting its authenticity. The verse presents a complete thought, effectively encapsulating the idea it intends to convey.", + "syllables": [ + "वीर्", + "यं", + "धा", + "र", + "य", + "ते", + "यो", + "हि", + "निर्", + "भ", + "यं", + "यो", + "हि", + "वर्", + "त", + "ते", + "शत्", + "रून्", + "ज", + "य", + "ति", + "नित्", + "यं", + "सः", + "शौर्", + "यं", + "तस्", + "यप्", + "र", + "कीर्त्", + "य", + "ते" + ] + }, + { + "id": 4, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "शार्दूलविक्रीडित", + "generated_verse": "शौर्यं धृतिं च विकटं रणमर्दनं च यः शत्रुनाशनपरो धृतिमान् सदा सः सिंहो यथा वनगतो विकसत्यजेयं शौर्यं तदा जयं अशेषं करोति धीमान्", + "meter_match": false, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null + }, + "accidental": { + "vṛndā": null, + "bhīmārjanam": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 7 COMPLETENESS: 8\n\nThe verse is mostly meaningful and grammatically correct, though there are a few areas where the syntax could be improved for clarity. It effectively addresses the topic of \"शौर्य\" (valor), discussing attributes of a valorous person akin to a lion in the forest. The verse sounds like traditional Sanskrit poetry, though it lacks some of the refinement seen in classical works. Overall, it presents a complete thought, comparing a courageous individual to a lion and highlighting their ability to achieve victory.", + "syllables": [ + "शौर्", + "यं", + "धृ", + "तिं", + "च", + "वि", + "क", + "टं", + "र", + "ण", + "मर्", + "द", + "नं", + "च", + "यः", + "शत्", + "रु", + "ना", + "श", + "न", + "प", + "रो", + "धृ", + "ति", + "मान्", + "स", + "दा", + "सः", + "सिं", + "हो", + "य", + "था", + "व", + "न", + "ग", + "तो", + "वि", + "क", + "सत्", + "य", + "जे", + "यं", + "शौर्", + "यं", + "त", + "दा", + "ज", + "यं", + "अ", + "शे", + "षं", + "क", + "रो", + "ति", + "धी", + "मान्" + ] + }, + { + "id": 0, + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "topic": "मातृभूमि", + "target_meter": "शार्दूलविक्रीडित", + "generated_verse": "मातुर्मे भुवनस्य या सुरसरिद्वेगप्रवाहार्णवा शैलौघैः सुदृढैः स्थिरा धरणिधृक् कल्पद्रुमाणां वना सा नो रक्षतु संस्थिता जनसुखे सम्पूर्णसौभाग्यदा मातृभूमिरियं नमामि सततं श्रद्धासमृद्धां शुभाम्", + "meter_match": true, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThis verse is grammatically correct and meaningful, expressing a reverence for the motherland, which is compared to a powerful river and a stable mountain, providing prosperity and happiness to its people. The topic of \"मातृभूमि\" (motherland) is addressed directly and effectively, highlighting its protective and benevolent nature. The verse has the authentic feel of traditional Sanskrit poetry, employing metaphors and reverent language. It presents a complete thought with a coherent prayer and admiration for the motherland.", + "syllables": [ + "मा", + "तुर्", + "मे", + "भु", + "व", + "नस्", + "य", + "या", + "सु", + "र", + "स", + "रिद्", + "वे", + "गप्", + "र", + "वा", + "हार्", + "ण", + "वा", + "शै", + "लौ", + "घैः", + "सु", + "दृ", + "ढैःस्", + "थि", + "रा", + "ध", + "र", + "णि", + "धृक्", + "कल्", + "पद्", + "रु", + "मा", + "णां", + "व", + "ना", + "सा", + "नो", + "रक्", + "ष", + "तु", + "संस्", + "थि", + "ता", + "ज", + "न", + "सु", + "खे", + "सम्", + "पूर्", + "ण", + "सौ", + "भाग्", + "य", + "दा", + "मा", + "तृ", + "भू", + "मि", + "रि", + "यं", + "न", + "मा", + "मि", + "स", + "त", + "तंश्", + "रद्", + "धा", + "स", + "मृद्", + "धां", + "शु", + "भाम्" + ] + }, + { + "id": 1, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "वसन्ततिलका", + "generated_verse": "शान्तिः सदा भवतु नः सुखसागरस्य, विद्यानिधेः प्रकटिता प्रणिधानयोगात् द्वेषः क्षयं ययति सौम्यविनोदनं च, सर्वे भवन्तु सुखिनः शुभमस्तु विश्वम्", + "meter_match": true, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "exact": { + "Vasantatilakā": null + }, + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 9 AUTHENTICITY: 6 COMPLETENESS: 8\n\nThe verse is largely meaningful and grammatically correct, although it includes some modern or unconventional elements that might not align perfectly with classical Sanskrit poetry. It effectively addresses the topic of peace (शान्ति) and the welfare of all beings, making it relevant to the expected theme. While it maintains a semblance of traditional Sanskrit poetry, certain phrases seem slightly modern, affecting its authenticity. The verse presents a complete thought, wishing for peace and happiness universally, though it may benefit from more refined poetic structure typical of classical works.", + "syllables": [ + "शान्", + "तिः", + "स", + "दा", + "भ", + "व", + "तु", + "नः", + "सु", + "ख", + "सा", + "ग", + "रस्", + "य", + "विद्", + "या", + "नि", + "धेःप्", + "र", + "क", + "टि", + "ताप्", + "र", + "णि", + "धा", + "न", + "यो", + "गात्द्", + "वे", + "षःक्", + "ष", + "यं", + "य", + "य", + "ति", + "सौम्", + "य", + "वि", + "नो", + "द", + "नं", + "च", + "सर्", + "वे", + "भ", + "वन्", + "तु", + "सु", + "खि", + "नः", + "शु", + "भ", + "मस्", + "तु", + "विश्", + "वम्" + ] + }, + { + "id": 2, + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "भक्ति", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "भक्तिर्भवस्य भवबन्धविमोचनं, साधुर्नराणां हृदि संनिहितं सदा यस्यां स्थितो ह्यच्युतपादसरोरुहे, मुक्तिं प्रयोति ध्रुवमत्र न संशयः", + "meter_match": false, + "predicted_meter": "pramodatilakā", + "meter_details": { + "partial": { + "pramodatilakā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThe verse is meaningful and grammatically correct, discussing the power of devotion (भक्ति) in liberating one from the bonds of existence. It is directly relevant to the topic of भक्ति, emphasizing the significance of devotion to the divine, specifically to the lotus feet of Achyuta (a name for Vishnu), and the attainment of liberation. The language and structure are consistent with traditional Sanskrit poetry, and the verse presents a complete and coherent idea without any apparent gaps.", + "syllables": [ + "भक्", + "तिर्", + "भ", + "वस्", + "य", + "भ", + "व", + "बन्", + "ध", + "वि", + "मो", + "च", + "नं", + "सा", + "धुर्", + "न", + "रा", + "णां", + "हृ", + "दि", + "सं", + "नि", + "हि", + "तं", + "स", + "दा", + "यस्", + "यांस्", + "थि", + "तोह्", + "यच्", + "यु", + "त", + "पा", + "द", + "स", + "रो", + "रु", + "हे", + "मुक्", + "तिंप्", + "र", + "यो", + "तिध्", + "रु", + "व", + "मत्", + "र", + "न", + "सं", + "श", + "यः" + ] + }, + { + "id": 3, + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "मित्रता", + "target_meter": "मालिनी", + "generated_verse": "मित्रं यत् सततं सुखदं हितकरं च सदा सुसहायं च तद्विज्ञेयं जीवनपथेषु, यत्नेन तत् रक्ष्यं हि मानवेन", + "meter_match": false, + "predicted_meter": "prasarā", + "meter_details": { + "partial": { + "prasarā": null, + "viṣṭambhaḥ": null, + "vargavatī": null, + "uditam": null, + "lulitam": null, + "indraḥ": null + }, + "accidental": { + "vegavatī": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 8\n\nThe verse is meaningful and grammatically correct, conveying the idea of a true friend being a source of happiness and support, which aligns well with the expected topic of मित्रता (friendship). It uses appropriate Sanskrit vocabulary and structure, making it sound authentic, though it may not fully capture the depth and elegance of traditional poetry. The verse presents a complete thought, emphasizing the importance of valuing and preserving true friendship. However, some refinement in poetic style could enhance its authenticity.", + "syllables": [ + "मित्", + "रं", + "यत्", + "स", + "त", + "तं", + "सु", + "ख", + "दं", + "हि", + "त", + "क", + "रं", + "च", + "स", + "दा", + "सु", + "स", + "हा", + "यं", + "च", + "तद्", + "विज्", + "ञे", + "यं", + "जी", + "व", + "न", + "प", + "थे", + "षु", + "यत्", + "ने", + "न", + "तत्", + "रक्ष्", + "यं", + "हि", + "मा", + "न", + "वे", + "न" + ] + }, + { + "id": 4, + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "topic": "सत्य", + "target_meter": "अनुष्टुप्", + "generated_verse": "सत्यं वद धर्मं चर सत्यं हि परमं श्रेयः सत्येन धार्यते सर्वं सत्ये सर्वं प्रतिष्ठितम्", + "meter_match": true, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "partial": { + "Anuṣṭup (Śloka)": null + }, + "accidental": { + "tāvuri": null, + "dharā": null, + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 9\n\nThe verse is meaningful and grammatically correct in Sanskrit, emphasizing the importance and supremacy of truth (सत्य). It aligns perfectly with the expected topic of \"सत्य\" (truth), discussing its foundational role in upholding everything. The verse is authentic in tone, resembling traditional Sanskrit poetry with its structure and thematic coherence. It presents a complete thought, though it could be further enriched with additional context or examples typically found in classical verses.", + "syllables": [ + "सत्", + "यं", + "व", + "द", + "धर्", + "मं", + "च", + "र", + "सत्", + "यं", + "हि", + "प", + "र", + "मंश्", + "रे", + "यः", + "सत्", + "ये", + "न", + "धार्", + "य", + "ते", + "सर्", + "वं", + "सत्", + "ये", + "सर्", + "वंप्", + "र", + "तिष्", + "ठि", + "तम्" + ] + }, + { + "id": 0, + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "topic": "सत्य", + "target_meter": "शार्दूलविक्रीडित", + "generated_verse": "अवश्यं सत्यं परमं नित्यमेव तत्त्वं, नान्यत् तस्मात् श्रेयः पथो धर्ममार्गः यत्र सत्यं तत्र धर्मो विजयं लभते, सत्ये स्थितं सर्वमिदं भुवनं चराचरम्", + "meter_match": false, + "predicted_meter": "", + "meter_details": {}, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 8\n\nThe verse is largely meaningful and grammatically correct, conveying a philosophical idea about the ultimate truth being eternal and paramount, closely tied to dharma and the order of the universe. It effectively addresses the topic of \"सत्य\" (truth), emphasizing its importance and relationship with dharma and the universe. The verse has a traditional tone, although some parts could be refined for a more classical feel, and it presents a coherent and complete thought.", + "syllables": [ + "अ", + "वश्", + "यं", + "सत्", + "यं", + "प", + "र", + "मं", + "नित्", + "य", + "मे", + "व", + "तत्त्", + "वं", + "नान्", + "यत्", + "तस्", + "मात्श्", + "रे", + "यः", + "प", + "थो", + "धर्", + "म", + "मार्", + "गः", + "यत्", + "र", + "सत्", + "यं", + "तत्", + "र", + "धर्", + "मो", + "वि", + "ज", + "यं", + "ल", + "भ", + "ते", + "सत्", + "येस्", + "थि", + "तं", + "सर्", + "व", + "मि", + "दं", + "भु", + "व", + "नं", + "च", + "रा", + "च", + "रम्" + ] + }, + { + "id": 1, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "अनुष्टुप्", + "generated_verse": "शान्तिरस्तु भुवनेषु सर्वदा, सर्वलोकहितकामना सदा द्वेषरहितमहोदयं भवेत्, सर्वजीवसुखसाधना सदा", + "meter_match": false, + "predicted_meter": "Rathoddhatā", + "meter_details": { + "partial": { + "Rathoddhatā": null, + "rathoddhatā": null, + "kilikitā": null, + "sārikā": null, + "karṇinī": null, + "kilikitā2": null + }, + "accidental": { + "karṇinī": null, + "kilikitā2": null, + "kilikitā": null, + "sārikā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 9\n\nThe verse is meaningful and grammatically correct, wishing for peace and the well-being of all living beings, aligning well with the topic of \"शान्ति\" (peace). It uses appropriate vocabulary and structure typical of traditional Sanskrit poetry, though it slightly deviates from classical style in its expression. The verse forms a coherent and complete thought, effectively conveying the intended message of universal peace and harmony.", + "syllables": [ + "शान्", + "ति", + "रस्", + "तु", + "भु", + "व", + "ने", + "षु", + "सर्", + "व", + "दा", + "सर्", + "व", + "लो", + "क", + "हि", + "त", + "का", + "म", + "ना", + "स", + "दाद्", + "वे", + "ष", + "र", + "हि", + "त", + "म", + "हो", + "द", + "यं", + "भ", + "वेत्", + "सर्", + "व", + "जी", + "व", + "सु", + "ख", + "सा", + "ध", + "ना", + "स", + "दा" + ] + }, + { + "id": 2, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "शान्तिः सदा सर्वभूतेषु वर्तते, मानस्यमेधाविनः शान्तिरस्तु सङ्गच्छतां नः शुभमङ्गलं च, प्रसादं मे देहि शान्तिं प्रभो नः", + "meter_match": true, + "predicted_meter": "indravajrā", + "meter_details": { + "partial": { + "saṃśrayaśrīḥ": null, + "prākārabandhaḥ": null, + "indravajrā": null, + "ākhyānikī": null, + "ārdrā": null, + "mālā": null, + "bhadrā": null, + "ākhyānakī": null, + "vāṇī": null, + "premā": null, + "bālā": null, + "kīrtiḥ": null + }, + "accidental": { + "viparītākhyānikī": null, + "māyā": null, + "viparītākhyānakī": null, + "haṃsī": null, + "śālā": null, + "buddhiḥ": null, + "rāmā": null, + "ṛddhiḥ": null, + "jāyā": null + } + }, + "semantic_evaluation": "MEANING: 6 TOPIC_RELEVANCE: 8 AUTHENTICITY: 5 COMPLETENESS: 7\n\nThe verse attempts to convey a message of peace, aligning with the expected topic of \"शान्ति\" and is mostly grammatically correct, though there are minor issues with word choice and construction that slightly obscure its clarity. The use of Sanskrit is somewhat authentic but lacks the refined elegance and depth typical of classical Sanskrit poetry, making it feel a bit forced or modern. While the verse presents a coherent idea, it doesn't fully develop the theme, leaving some elements feeling incomplete or underexplored.", + "syllables": [ + "शान्", + "तिः", + "स", + "दा", + "सर्", + "व", + "भू", + "ते", + "षु", + "वर्", + "त", + "ते", + "मा", + "नस्", + "य", + "मे", + "धा", + "वि", + "नः", + "शान्", + "ति", + "रस्", + "तु", + "सङ्", + "गच्", + "छ", + "तां", + "नः", + "शु", + "भ", + "मङ्", + "ग", + "लं", + "चप्", + "र", + "सा", + "दं", + "मे", + "दे", + "हि", + "शान्", + "तिंप्", + "र", + "भो", + "नः" + ] + }, + { + "id": 3, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "मालिनी", + "generated_verse": "वीर्यं धारयते यः सततं रणभूमौ, धैर्यं चाप्यचलं यो हृदि संनिधत्ते शत्रून् हन्ति सदा धर्मरतेन यो वै, स शौर्यं धारयेत् तं भजते जगत्सु", + "meter_match": false, + "predicted_meter": "", + "meter_details": {}, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThis verse is meaningful and grammatically correct, describing the qualities of courage and valor expected in a warrior, which aligns well with the topic of शौर्य (valor). It effectively conveys the idea that a person who consistently exhibits courage in battle, possesses unwavering determination, and defeats enemies with righteousness is truly valorous. The verse has the traditional feel of Sanskrit poetry and presents a complete thought, though a few phrases might be slightly modern or simplified for classical standards.", + "syllables": [ + "वीर्", + "यं", + "धा", + "र", + "य", + "ते", + "यः", + "स", + "त", + "तं", + "र", + "ण", + "भू", + "मौ", + "धैर्", + "यं", + "चाप्", + "य", + "च", + "लं", + "यो", + "हृ", + "दि", + "सं", + "नि", + "धत्", + "ते", + "शत्", + "रून्", + "हन्", + "ति", + "स", + "दा", + "धर्", + "म", + "र", + "ते", + "न", + "यो", + "वै", + "स", + "शौर्", + "यं", + "धा", + "र", + "येत्", + "तं", + "भ", + "ज", + "ते", + "ज", + "गत्", + "सु" + ] + }, + { + "id": 4, + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "topic": "गुरु", + "target_meter": "शार्दूलविक्रीडित", + "generated_verse": "गुरुर्ब्रह्मा गुरुर्विष्णुर्गुरुर्देवो महेश्वरः गुरुः साक्षात् परं ब्रह्म तस्मै श्रीगुरवे नमः गुरुर्बोधयते ज्ञानं, तमसः पारकारणम् शिष्येण श्रद्धया युक्तं, नमः सद्गुरवे सदा", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "accidental": { + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 7\n\nThe verse is meaningful and grammatically correct, expressing reverence to the guru by equating the guru with divine entities and acknowledging the guru's role in imparting knowledge. It is relevant to the topic of \"गुरु\" as it focuses on the significance and exalted nature of the guru. The verse maintains a traditional tone, though it slightly deviates from classical poetic style, especially in its structure. While it presents a coherent thought, the transition between the two parts could be smoother to enhance completeness.", + "syllables": [ + "गु", + "रुर्ब्", + "रह्", + "मा", + "गु", + "रुर्", + "विष्", + "णुर्", + "गु", + "रुर्", + "दे", + "वो", + "म", + "हेश्", + "व", + "रः", + "गु", + "रुः", + "साक्", + "षात्", + "प", + "रंब्", + "रह्", + "म", + "तस्", + "मैश्", + "री", + "गु", + "र", + "वे", + "न", + "मः", + "गु", + "रुर्", + "बो", + "ध", + "य", + "तेज्", + "ञा", + "नं", + "त", + "म", + "सः", + "पा", + "र", + "का", + "र", + "णम्", + "शिष्", + "ये", + "णश्", + "रद्", + "ध", + "या", + "युक्", + "तं", + "न", + "मः", + "सद्", + "गु", + "र", + "वे", + "स", + "दा" + ] + }, + { + "id": 0, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "वसन्ततिलका", + "generated_verse": "विजयते धीर: समरांगणे शूरवीर्यवान् सिंहनादेन गर्जन् सत्वरं युद्धभूमिषु साहसं च धृत्वा जेतुं रिपून् निर्भय: सदा शौर्यं तस्य भूषणं भवति लोके प्रशस्यते", + "meter_match": false, + "predicted_meter": "", + "meter_details": {}, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 8\n\nThe verse is composed in grammatically correct Sanskrit and conveys a coherent meaning, celebrating the valor and fearlessness of a warrior in battle. It effectively addresses the topic of \"शौर्य\" (valor) by depicting the qualities of a brave and victorious hero. While it captures elements of traditional Sanskrit poetry, the structure and language could be refined to more closely resemble classical compositions. The verse presents a complete and cohesive thought, praising the hero's courage and reputation.", + "syllables": [ + "वि", + "ज", + "य", + "ते", + "धी", + "र", + "स", + "म", + "रां", + "ग", + "णे", + "शू", + "र", + "वीर्", + "य", + "वान्", + "सिं", + "ह", + "ना", + "दे", + "न", + "गर्", + "जन्", + "सत्", + "व", + "रं", + "युद्", + "ध", + "भू", + "मि", + "षु", + "सा", + "ह", + "सं", + "च", + "धृत्", + "वा", + "जे", + "तुं", + "रि", + "पून्", + "निर्", + "भ", + "य", + "स", + "दा", + "शौर्", + "यं", + "तस्", + "य", + "भू", + "ष", + "णं", + "भ", + "व", + "ति", + "लो", + "केप्", + "र", + "शस्", + "य", + "ते" + ] + }, + { + "id": 1, + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "topic": "भक्ति", + "target_meter": "अनुष्टुप्", + "generated_verse": "भक्तिर्भवति यत्रास्ति श्रद्धा भक्तस्य चेतसि हरिं स्मृत्वा सदा भक्तिः सदा शान्तिं प्रदायिनी", + "meter_match": true, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "kulādhārī": null, + "bhāṣā": null + }, + "accidental": { + "krīḍā": null, + "vāri": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 8\n\nThe verse is meaningful and grammatically correct, expressing the idea that where there is devotion (bhakti) and faith (shraddha), peace is granted to the devotee who constantly remembers Lord Hari. It addresses the topic of \"bhakti\" well, highlighting the effects of devotion. The language and structure are fairly traditional, resembling classical Sanskrit poetry, although it could be polished further for authenticity. The verse conveys a complete thought, presenting a cohesive message about the power of devotion, although it could benefit from more poetic embellishment.", + "syllables": [ + "भक्", + "तिर्", + "भ", + "व", + "ति", + "यत्", + "रास्", + "तिश्", + "रद्", + "धा", + "भक्", + "तस्", + "य", + "चे", + "त", + "सि", + "ह", + "रिंस्", + "मृत्", + "वा", + "स", + "दा", + "भक्", + "तिः", + "स", + "दा", + "शान्", + "तिंप्", + "र", + "दा", + "यि", + "नी" + ] + }, + { + "id": 2, + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "सत्य", + "target_meter": "वसन्ततिलका", + "generated_verse": "सत्यं हि यस्य वचनेऽपि हि तिष्ठति सदा, सत्येन पूज्यत इहैव हि लोकके सत्यं हि धर्मपथपालनमुत्तमं स्यात्, सत्यं विना न हि सुखं लभते जनोऽत्र", + "meter_match": true, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 8\n\nThe verse is meaningful and grammatically correct, expressing clear ideas about the importance of truth (सत्य) in life, aligning well with the expected topic. It captures the essence of truth as a revered and essential quality. While it resembles traditional Sanskrit poetry in theme and structure, it slightly lacks the stylistic depth and sophistication of classical works. The verse presents a complete thought, articulating the benefits and sanctity of truth effectively.", + "syllables": [ + "सत्", + "यं", + "हि", + "यस्", + "य", + "व", + "च", + "ने", + "पि", + "हि", + "तिष्", + "ठ", + "ति", + "स", + "दा", + "सत्", + "ये", + "न", + "पूज्", + "य", + "त", + "इ", + "है", + "व", + "हि", + "लो", + "क", + "के", + "सत्", + "यं", + "हि", + "धर्", + "म", + "प", + "थ", + "पा", + "ल", + "न", + "मुत्", + "त", + "मंस्", + "यात्", + "सत्", + "यं", + "वि", + "ना", + "न", + "हि", + "सु", + "खं", + "ल", + "भ", + "ते", + "ज", + "नोत्", + "र" + ] + }, + { + "id": 3, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "वीर्यं धारयते यो हि शौर्येण परिपालितः शत्रून् जयति सत्त्वेन वन्द्यते स च वीर्यवान्", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null + }, + "accidental": { + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThe verse is meaningful and grammatically correct, discussing the attributes of courage and valor, aligning well with the expected topic of \"शौर्य\" (valor). The structure and style are consistent with traditional Sanskrit poetry, though it slightly lacks the elegance found in classical works. It presents a complete thought, effectively conveying the idea that true valor involves maintaining strength and defeating enemies through courage, thereby earning respect.", + "syllables": [ + "वीर्", + "यं", + "धा", + "र", + "य", + "ते", + "यो", + "हि", + "शौर्", + "ये", + "ण", + "प", + "रि", + "पा", + "लि", + "तः", + "शत्", + "रून्", + "ज", + "य", + "ति", + "सत्त्", + "वे", + "न", + "वन्द्", + "य", + "ते", + "स", + "च", + "वीर्", + "य", + "वान्" + ] + }, + { + "id": 4, + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "सौंदर्य", + "target_meter": "मालिनी", + "generated_verse": "मलिन्या वदने सदा विभाति, सौंदर्यं हिमरश्मिना यथा च स्नेहेन प्रकटं मनोहरं तद्, शोभंते सुमनोहरं सदा हि", + "meter_match": false, + "predicted_meter": "viśvavirāṭ", + "meter_details": { + "partial": { + "viśvavirāṭ": null, + "samudrakāntā": null, + "bhadravirāṭ": null, + "surāḍhyā": null, + "asurāḍhyā": null, + "yuddhavirāṭ": null, + "kāntā": null + }, + "accidental": { + "asurāḍhyā": null, + "yuddhavirāṭ": null, + "kāntā": null, + "samudrakāntā": null, + "bhadravirāṭ": null, + "surāḍhyā": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 6 COMPLETENESS: 7\n\nThe verse is mostly meaningful and grammatically correct, though it contains some awkward phrasing that may not fully align with classical Sanskrit syntax. It addresses the topic of beauty (सौंदर्य) by using metaphors related to the moonlight's beauty and the pleasing nature of affection. While it somewhat resembles traditional Sanskrit poetry, it lacks the elegance and depth typically found in classical verses. The verse forms a mostly complete thought but could benefit from a more cohesive structure and refinement.", + "syllables": [ + "म", + "लिन्", + "या", + "व", + "द", + "ने", + "स", + "दा", + "वि", + "भा", + "ति", + "सौं", + "दर्", + "यं", + "हि", + "म", + "रश्", + "मि", + "ना", + "य", + "था", + "चस्", + "ने", + "हे", + "नप्", + "र", + "क", + "टं", + "म", + "नो", + "ह", + "रं", + "तद्", + "शो", + "भं", + "ते", + "सु", + "म", + "नो", + "ह", + "रं", + "स", + "दा", + "हि" + ] + }, + { + "id": 0, + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "सत्य", + "target_meter": "मालिनी", + "generated_verse": "सत्यं बुधानां हृदि संस्थितं सदा, सत्यं वचस्ते जगतः प्रकाशकम् सत्यं हि धर्मस्य गतिर्निरामया, सत्ये स्थितोऽयं भुवनत्रयं सदा", + "meter_match": false, + "predicted_meter": "Indravaṃśā", + "meter_details": { + "exact": { + "Indravaṃśā": null + }, + "partial": { + "Indravaṃśā": null, + "indravaṃśā": null, + "śaṅkhacūḍā": null, + "induvaṃśā": null, + "vāsantikā": null, + "puṣṭidā": null, + "ratākhyānakī": null, + "varāsikā": null, + "indumā": null, + "kumārī": null, + "śiśirā": null, + "saurabheyī": null, + "manahāsā": null, + "upameyā": null, + "ramaṇā": null, + "vaidhātrī": null + }, + "accidental": { + "ratākhyānakī": null, + "varāsikā": null, + "indumā": null, + "śaṅkhacūḍā": null, + "vāsantikā": null, + "puṣṭidā": null, + "vaidhātrī": null, + "manahāsā": null, + "upameyā": null, + "ramaṇā": null, + "śīlāturā": null, + "kumārī": null, + "śiśirā": null, + "saurabheyī": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThe verse is meaningful and grammatically correct, highlighting the importance and pervasive nature of truth (सत्य) in the hearts of the wise, as a guiding principle of dharma, and its illuminating power for the world. It directly addresses the topic of सत्य (truth) and aligns well with traditional Sanskrit poetic themes and style, possessing coherence and depth. The verse is complete, presenting a well-rounded thought about the integral role of truth in the universe.", + "syllables": [ + "सत्", + "यं", + "बु", + "धा", + "नां", + "हृ", + "दि", + "संस्", + "थि", + "तं", + "स", + "दा", + "सत्", + "यं", + "व", + "चस्", + "ते", + "ज", + "ग", + "तःप्", + "र", + "का", + "श", + "कम्", + "सत्", + "यं", + "हि", + "धर्", + "मस्", + "य", + "ग", + "तिर्", + "नि", + "रा", + "म", + "या", + "सत्", + "येस्", + "थि", + "तो", + "यं", + "भु", + "व", + "नत्", + "र", + "यं", + "स", + "दा" + ] + }, + { + "id": 1, + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "मातृभूमि", + "target_meter": "मालिनी", + "generated_verse": "माता भूमिर्नः सदा शक्तिदात्री, वन्दे तां या जन्मभूमिः प्रियेण सर्वे तस्मिन्नेव धर्मे प्रवृत्ताः, सद्यः सम्पूर्णं भवत्वस्मदीयम्", + "meter_match": false, + "predicted_meter": "Śālinī", + "meter_details": { + "exact": { + "Śālinī": null + }, + "accidental": { + "bhīmābhogaḥ": null + }, + "partial": { + "Śālinī": null, + "śālinī": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 6 COMPLETENESS: 7\n\nThe verse is generally meaningful and grammatically correct, though it could be polished further for clarity and depth. It effectively addresses the topic of \"मातृभूमि\" (motherland) by venerating the land as a giver of strength and expressing a wish for completeness. However, the composition lacks some traditional poetic elegance and depth, and the meter is not perfectly aligned with the expected \"मालिनी\" meter, which affects its authenticity and completeness as a traditional Sanskrit verse.", + "syllables": [ + "मा", + "ता", + "भू", + "मिर्", + "नः", + "स", + "दा", + "शक्", + "ति", + "दात्", + "री", + "वन्", + "दे", + "तां", + "या", + "जन्", + "म", + "भू", + "मिःप्", + "रि", + "ये", + "ण", + "सर्", + "वे", + "तस्", + "मिन्", + "ने", + "व", + "धर्", + "मेप्", + "र", + "वृत्", + "ताः", + "सद्", + "यः", + "सम्", + "पूर्", + "णं", + "भ", + "वत्", + "वस्", + "म", + "दी", + "यम्" + ] + }, + { + "id": 2, + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "topic": "विद्या", + "target_meter": "शार्दूलविक्रीडित", + "generated_verse": "विद्या नाम नरस्य रूपमधिकं प्रच्छन्नगुप्तं धनं विद्या भोगकरी यशःसुखकरी विद्या गुरूणां गुरु विद्या बन्धुजनो विदेशगमने विद्या परं दैवतं विद्या राजसु पूज्यते न हि धनं विद्याविहीनः पशुः", + "meter_match": true, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "exact": { + "Śārdūlavikrīḍitam": null + }, + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThis verse is meaningful and grammatically correct, effectively conveying the multifaceted importance of विद्या (knowledge) in human life. It clearly addresses the expected topic, highlighting how education serves as a form of wealth, brings pleasure, and is revered even among kings. The verse is authentic and reminiscent of traditional Sanskrit poetry, structured coherently to present a complete thought about the significance of knowledge.", + "syllables": [ + "विद्", + "या", + "ना", + "म", + "न", + "रस्", + "य", + "रू", + "प", + "म", + "धि", + "कंप्", + "रच्", + "छन्", + "न", + "गुप्", + "तं", + "ध", + "नं", + "विद्", + "या", + "भो", + "ग", + "क", + "री", + "य", + "शः", + "सु", + "ख", + "क", + "री", + "विद्", + "या", + "गु", + "रू", + "णां", + "गु", + "रु", + "विद्", + "या", + "बन्", + "धु", + "ज", + "नो", + "वि", + "दे", + "श", + "ग", + "म", + "ने", + "विद्", + "या", + "प", + "रं", + "दै", + "व", + "तं", + "विद्", + "या", + "रा", + "ज", + "सु", + "पूज्", + "य", + "ते", + "न", + "हि", + "ध", + "नं", + "विद्", + "या", + "वि", + "ही", + "नः", + "प", + "शुः" + ] + }, + { + "id": 3, + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "मित्रता", + "target_meter": "मालिनी", + "generated_verse": "मित्रं यः सदा संगते हितकरं, धर्मे स्थिरं सत्यवाक् काले यस्य वचः प्रदीप इव, स्नेहेन सम्पूर्णकम् विश्वासस्य निधिं ददाति सततं, दुःखेषु सानन्दितम् तं मित्रं प्राणसंवतं सुकृतिनं, हित्वा न गन्तव्यम्", + "meter_match": false, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThe verse is a meaningful and grammatically correct piece of Sanskrit poetry that talks about the qualities of a true friend, aligning well with the expected topic of मित्रता (friendship). It uses traditional poetic diction and structure, resembling classical Sanskrit poetry, and adheres to the expected meter, मालिनी. The verse presents a complete and coherent thought about the virtues of an ideal friend, making it a well-rounded composition.", + "syllables": [ + "मित्", + "रं", + "यः", + "स", + "दा", + "सं", + "ग", + "ते", + "हि", + "त", + "क", + "रं", + "धर्", + "मेस्", + "थि", + "रं", + "सत्", + "य", + "वाक्", + "का", + "ले", + "यस्", + "य", + "व", + "चःप्", + "र", + "दी", + "प", + "इ", + "वस्", + "ने", + "हे", + "न", + "सम्", + "पूर्", + "ण", + "कम्", + "विश्", + "वा", + "सस्", + "य", + "नि", + "धिं", + "द", + "दा", + "ति", + "स", + "त", + "तं", + "दुः", + "खे", + "षु", + "सा", + "नन्", + "दि", + "तम्", + "तं", + "मित्", + "रंप्", + "रा", + "ण", + "सं", + "व", + "तं", + "सु", + "कृ", + "ति", + "नं", + "हित्", + "वा", + "न", + "गन्", + "तव्", + "यम्" + ] + }, + { + "id": 4, + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "मातृभूमि", + "target_meter": "वसन्ततिलका", + "generated_verse": "मातुः सदा वन्द्यतया वसुधा वयं स्युः जीवंश्च तस्या वचसि प्रतिपाद्य धर्मे संरक्षणे धरित्रीः कृपया नयन्तु पन्थान् मातृभूमिरियं नः प्रददा त्वस्मदीयम्", + "meter_match": false, + "predicted_meter": "", + "meter_details": {}, + "semantic_evaluation": "MEANING: 6 TOPIC_RELEVANCE: 8 AUTHENTICITY: 5 COMPLETENESS: 7\n\nThe verse is somewhat meaningful and grammatically correct, though it has some awkward constructions and could be refined for clarity. It addresses the topic of \"मातृभूमि\" (motherland) by expressing reverence and a sense of duty towards the earth, aligning well with the expected topic. While it attempts to follow traditional Sanskrit poetic style, some expressions seem forced, affecting its authenticity. The verse presents a mostly complete thought, but could benefit from clearer expression to fully convey its intended message.", + "syllables": [ + "मा", + "तुः", + "स", + "दा", + "वन्द्", + "य", + "त", + "या", + "व", + "सु", + "धा", + "व", + "यंस्", + "युः", + "जी", + "वंश्", + "च", + "तस्", + "या", + "व", + "च", + "सिप्", + "र", + "ति", + "पाद्", + "य", + "धर्", + "मे", + "सं", + "रक्", + "ष", + "णे", + "ध", + "रित्", + "रीः", + "कृ", + "प", + "या", + "न", + "यन्", + "तु", + "पन्", + "थान्", + "मा", + "तृ", + "भू", + "मि", + "रि", + "यं", + "नःप्", + "र", + "द", + "दात्", + "वस्", + "म", + "दी", + "यम्" + ] + }, + { + "id": 0, + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "सौंदर्य", + "target_meter": "वसन्ततिलका", + "generated_verse": "कान्तारूपा सुमनः सुरभिः सदा या, विभ्राजते जगति सत्यविभूषणं या सा सुन्दराङ्गि विमला तव यौवनश्रीः, शोभां ददातु सततं मम जीवनेऽस्मिन्", + "meter_match": true, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThe verse is meaningful and grammatically correct, celebrating beauty and youthfulness, which aligns well with the expected topic of सौंदर्य (beauty). The imagery and expressions are evocative and in the spirit of traditional Sanskrit poetry, thus making it sound authentic. The verse is complete in conveying a wish for the beauty of youth to continuously enhance the speaker's life, demonstrating a coherent and unified thought.", + "syllables": [ + "कान्", + "ता", + "रू", + "पा", + "सु", + "म", + "नः", + "सु", + "र", + "भिः", + "स", + "दा", + "या", + "विभ्", + "रा", + "ज", + "ते", + "ज", + "ग", + "ति", + "सत्", + "य", + "वि", + "भू", + "ष", + "णं", + "या", + "सा", + "सुन्", + "द", + "राङ्", + "गि", + "वि", + "म", + "ला", + "त", + "व", + "यौ", + "व", + "नश्", + "रीः", + "शो", + "भां", + "द", + "दा", + "तु", + "स", + "त", + "तं", + "म", + "म", + "जी", + "व", + "नेस्", + "मिन्" + ] + }, + { + "id": 1, + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "भक्ति", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": "श्रीकृष्णाय वयं भजेम पुरतः प्रेम्णा सदा यः स्थितः भक्त्या यः प्रकटः कृपालुचरितो भक्तार्तिनाशोऽखिलः संसारार्णवपारगः करुणया यः सर्वदा रक्षको तं वन्दे हृदये गुहान्तरणिजं भक्तिप्रियं माधवम्", + "meter_match": false, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "exact": { + "Śārdūlavikrīḍitam": null + }, + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThis verse is meaningful and grammatically correct, depicting a devotional theme centered around Lord Krishna. It effectively addresses the topic of \"भक्ति\" (devotion), expressing reverence and the divine qualities of Krishna as the savior and protector. The composition has the qualities of traditional Sanskrit poetry, adhering to the expected meter, मन्दाक्रान्ता, and presents a complete thought, making it a well-rounded and authentic verse.", + "syllables": [ + "श्री", + "कृष्", + "णा", + "य", + "व", + "यं", + "भ", + "जे", + "म", + "पु", + "र", + "तःप्", + "रेम्", + "णा", + "स", + "दा", + "यःस्", + "थि", + "तः", + "भक्त्", + "या", + "यःप्", + "र", + "क", + "टः", + "कृ", + "पा", + "लु", + "च", + "रि", + "तो", + "भक्", + "तार्", + "ति", + "ना", + "शो", + "खि", + "लः", + "सं", + "सा", + "रार्", + "ण", + "व", + "पा", + "र", + "गः", + "क", + "रु", + "ण", + "या", + "यः", + "सर्", + "व", + "दा", + "रक्", + "ष", + "को", + "तं", + "वन्", + "दे", + "हृ", + "द", + "ये", + "गु", + "हान्", + "त", + "र", + "णि", + "जं", + "भक्", + "तिप्", + "रि", + "यं", + "मा", + "ध", + "वम्" + ] + }, + { + "id": 2, + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "करुणा", + "target_meter": "मालिनी", + "generated_verse": "करुणामयि मातः जगतां कृपया, दीनबन्धु सदाहं शरणं प्रपद्ये सर्वजीवहितं ते मनसा विचिन्त्य, स्मर कृपां करुणे त्वं हृदि मे सदा स्ता", + "meter_match": false, + "predicted_meter": "manmathaḥ", + "meter_details": { + "accidental": { + "godhi": null, + "karabhit": null + }, + "partial": { + "manmathaḥ": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 6 COMPLETENESS: 7\n\nThe verse is meaningful and grammatically correct, though it could be refined for clarity. It addresses the expected topic of \"compassion\" (करुणा) by invoking a compassionate mother and expressing a plea for mercy and support for all living beings. The language is somewhat in line with traditional Sanskrit poetry, but it lacks the polish and depth typically found in classical verses. It presents a complete thought, though it may benefit from further elaboration or refinement to achieve greater poetic quality.", + "syllables": [ + "क", + "रु", + "णा", + "म", + "यि", + "मा", + "तः", + "ज", + "ग", + "तां", + "कृ", + "प", + "या", + "दी", + "न", + "बन्", + "धु", + "स", + "दा", + "हं", + "श", + "र", + "णंप्", + "र", + "पद्", + "ये", + "सर्", + "व", + "जी", + "व", + "हि", + "तं", + "ते", + "म", + "न", + "सा", + "वि", + "चिन्त्", + "यस्", + "म", + "र", + "कृ", + "पां", + "क", + "रु", + "णेत्", + "वं", + "हृ", + "दि", + "मे", + "स", + "दास्", + "ता" + ] + }, + { + "id": 3, + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "मित्रता", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": "स्नेहं मित्रं लभते सुखमेव याति, दुःखं तस्याप्युपशम्य विनश्यति च यस्य स्नेहो हृदये स्थिरमस्ति तस्य, जीवनं स्यात् सफलं तदनन्तरं च", + "meter_match": false, + "predicted_meter": "", + "meter_details": {}, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 6 COMPLETENESS: 7\n\nThe verse is generally meaningful and grammatically correct, discussing the benefits of friendship and how it leads to happiness and the alleviation of sorrow. It aligns well with the topic of मित्रता (friendship), emphasizing the enduring and fruitful nature of genuine affection in life. However, the verse lacks the refined elegance typically found in traditional Sanskrit poetry and does not fully adhere to the expected मन्दाक्रान्ता meter. Nonetheless, it forms a complete thought, presenting a coherent idea about the value of steadfast friendship.", + "syllables": [ + "स्ने", + "हं", + "मित्", + "रं", + "ल", + "भ", + "ते", + "सु", + "ख", + "मे", + "व", + "या", + "ति", + "दुः", + "खं", + "तस्", + "याप्", + "यु", + "प", + "शम्", + "य", + "वि", + "नश्", + "य", + "ति", + "च", + "यस्", + "यस्", + "ने", + "हो", + "हृ", + "द", + "येस्", + "थि", + "र", + "मस्", + "ति", + "तस्", + "य", + "जी", + "व", + "नंस्", + "यात्", + "स", + "फ", + "लं", + "त", + "द", + "नन्", + "त", + "रं", + "च" + ] + }, + { + "id": 4, + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "सौंदर्य", + "target_meter": "मालिनी", + "generated_verse": "मुक्ताः सन्ति गजेन्द्रमौक्तिकशतैः रत्नानि गोविन्दनाम् कान्तारण्यविहारिणो हरिकथा: सौन्दर्यमाद्यं श्रुतेः किं कुर्वन्तु विभूषणानि सुकृतं यत्र स्वभावोदयः रम्यं तत् खलु शोभते हि सततं यत् सत्यसौन्दर्यकम्", + "meter_match": false, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "exact": { + "Śārdūlavikrīḍitam": null + }, + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 7 AUTHENTICITY: 8 COMPLETENESS: 8\n\nThe verse is meaningful and grammatically correct, employing rich Sanskrit vocabulary and expressions. It touches upon the topic of beauty (सौंदर्य) by contrasting physical adornments with the inherent beauty of virtue and truth, though it could be more directly focused on सौंदर्य itself. The verse has the authentic flavor of traditional Sanskrit poetry, using classical imagery and metaphors. It presents a complete thought, comparing the transient beauty of ornaments with the lasting beauty of virtuous nature, though some lines might be seen as loosely connected.", + "syllables": [ + "मुक्", + "ताः", + "सन्", + "ति", + "ग", + "जेन्द्", + "र", + "मौक्", + "ति", + "क", + "श", + "तैः", + "रत्", + "ना", + "नि", + "गो", + "विन्", + "द", + "नाम्", + "कान्", + "ता", + "रण्", + "य", + "वि", + "हा", + "रि", + "णो", + "ह", + "रि", + "क", + "था", + "सौन्", + "दर्", + "य", + "माद्", + "यंश्", + "रु", + "तेः", + "किं", + "कुर्", + "वन्", + "तु", + "वि", + "भू", + "ष", + "णा", + "नि", + "सु", + "कृ", + "तं", + "यत्", + "रस्", + "व", + "भा", + "वो", + "द", + "यः", + "रम्", + "यं", + "तत्", + "ख", + "लु", + "शो", + "भ", + "ते", + "हि", + "स", + "त", + "तं", + "यत्", + "सत्", + "य", + "सौन्", + "दर्", + "य", + "कम्" + ] + }, + { + "id": 0, + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'शार्दूलविक्रीडित' छन्द में हो।", + "topic": "मित्रता", + "target_meter": "शार्दूलविक्रीडित", + "generated_verse": "स्नेहस्य बन्धनमिदं सततं शुभाय, मित्रं हि जीवनसुखाय सदा सहायम् विश्वासपूर्णहृदयं यदि सन्निधौ स्यात्, तत्रैव मित्रमधिकं भवति प्रियेण", + "meter_match": false, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "exact": { + "Vasantatilakā": null + }, + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 6 COMPLETENESS: 7\n\nThe verse is meaningful and grammatically correct, expressing the idea that friendship is a constant bond that brings happiness and support in life. It aligns well with the expected topic of \"मित्रता\" (friendship). While the verse sounds like traditional Sanskrit poetry, it lacks some sophistication and poetic elegance that are hallmarks of classical literature. The verse conveys a complete thought but could be more polished in its expression to fully emulate the traditional style.", + "syllables": [ + "स्ने", + "हस्", + "य", + "बन्", + "ध", + "न", + "मि", + "दं", + "स", + "त", + "तं", + "शु", + "भा", + "य", + "मित्", + "रं", + "हि", + "जी", + "व", + "न", + "सु", + "खा", + "य", + "स", + "दा", + "स", + "हा", + "यम्", + "विश्", + "वा", + "स", + "पूर्", + "ण", + "हृ", + "द", + "यं", + "य", + "दि", + "सन्", + "नि", + "धौस्", + "यात्", + "तत्", + "रै", + "व", + "मित्", + "र", + "म", + "धि", + "कं", + "भ", + "व", + "तिप्", + "रि", + "ये", + "ण" + ] + }, + { + "id": 1, + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "विद्या", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "बुद्धिर्बलं यशो धर्मः विद्या मित्रं सुखं परम् विद्याहीनः पशुः साक्षात् जीवन्मुक्तो न संशयः विद्या वितर्कविनाशिनी सदा, ज्ञानं प्रदाय सुखं करोति च मुक्तिं प्रयच्छति मानवाय या, सर्वत्र पूज्यतमा हि सा विद्या", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "accidental": { + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 9\n\nThis verse is meaningful and grammatically correct, emphasizing the importance of knowledge (विद्या) and its benefits, contrasting it with ignorance. It addresses the expected topic of \"विद्या\" effectively, highlighting its virtues and the consequences of its absence. While the verse has a traditional feel, some parts seem slightly forced, affecting its authenticity. However, it presents a complete thought, clearly conveying the message about the significance of knowledge in life.", + "syllables": [ + "बुद्", + "धिर्", + "ब", + "लं", + "य", + "शो", + "धर्", + "मः", + "विद्", + "या", + "मित्", + "रं", + "सु", + "खं", + "प", + "रम्", + "विद्", + "या", + "ही", + "नः", + "प", + "शुः", + "साक्", + "षात्", + "जी", + "वन्", + "मुक्", + "तो", + "न", + "सं", + "श", + "यः", + "विद्", + "या", + "वि", + "तर्", + "क", + "वि", + "ना", + "शि", + "नी", + "स", + "दाज्", + "ञा", + "नंप्", + "र", + "दा", + "य", + "सु", + "खं", + "क", + "रो", + "ति", + "च", + "मुक्", + "तिंप्", + "र", + "यच्", + "छ", + "ति", + "मा", + "न", + "वा", + "य", + "या", + "सर्", + "वत्", + "र", + "पूज्", + "य", + "त", + "मा", + "हि", + "सा", + "विद्", + "या" + ] + }, + { + "id": 2, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "मालिनी", + "generated_verse": "शान्तिं देहि मनोभवस्य हृदये, शान्तिं गृहे सर्वदा शान्तिं देशविवादकर्मणि परं, शान्तिं च विश्वे सदा शान्तिं वाचि हृदंगतायि मनसि, शान्तिं प्रबुद्धात्मनि शान्तिं सर्वजनस्य देहि भगवन्, शान्तिं समस्ते जगत्", + "meter_match": false, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 9 AUTHENTICITY: 6 COMPLETENESS: 8\n\nThe verse conveys a plea for peace in various aspects of life and the world, which aligns with the expected topic of 'शान्ति'. It is mostly grammatically correct, but it can be improved for better clarity and flow. The use of vocabulary and structure shows an understanding of traditional Sanskrit poetry, but it lacks the refined elegance typically found in classical compositions. The verse presents a complete thought, expressing a coherent desire for peace, but could benefit from more poetic finesse.", + "syllables": [ + "शान्", + "तिं", + "दे", + "हि", + "म", + "नो", + "भ", + "वस्", + "य", + "हृ", + "द", + "ये", + "शान्", + "तिं", + "गृ", + "हे", + "सर्", + "व", + "दा", + "शान्", + "तिं", + "दे", + "श", + "वि", + "वा", + "द", + "कर्", + "म", + "णि", + "प", + "रं", + "शान्", + "तिं", + "च", + "विश्", + "वे", + "स", + "दा", + "शान्", + "तिं", + "वा", + "चि", + "हृ", + "दं", + "ग", + "ता", + "यि", + "म", + "न", + "सि", + "शान्", + "तिंप्", + "र", + "बुद्", + "धात्", + "म", + "नि", + "शान्", + "तिं", + "सर्", + "व", + "ज", + "नस्", + "य", + "दे", + "हि", + "भ", + "ग", + "वन्", + "शान्", + "तिं", + "स", + "मस्", + "ते", + "ज", + "गत्" + ] + }, + { + "id": 3, + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "धर्म", + "target_meter": "मालिनी", + "generated_verse": "धर्मः संप्रभवः सतो विभवतः, संहर्तृ दोषं सदा सत्यानन्द सुधा सुधीन्द्र हृदये, संजीवनी चेतना सर्वेषां हितकारी सम्यगुदयः, धर्मेण युक्तं जगत् तस्मान्नित्यं अनुयातु धर्मपथं, जीवन्तु लोके सदा", + "meter_match": false, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 6 COMPLETENESS: 7\n\nThe verse is meaningful and employs correct Sanskrit grammar to a good extent, though some phrases appear slightly awkward. It effectively addresses the topic of \"धर्म\" by discussing its virtues and the importance of following a righteous path. While it does have a traditional poetic feel, there are elements that seem forced or not entirely authentic to classic Sanskrit style. The verse conveys a mostly complete thought, but it lacks the polish and cohesion typical of classical Sanskrit poetry, especially in the expected मालिनी meter.", + "syllables": [ + "धर्", + "मः", + "संप्", + "र", + "भ", + "वः", + "स", + "तो", + "वि", + "भ", + "व", + "तः", + "सं", + "हर्", + "तृ", + "दो", + "षं", + "स", + "दा", + "सत्", + "या", + "नन्", + "द", + "सु", + "धा", + "सु", + "धीन्द्", + "र", + "हृ", + "द", + "ये", + "सं", + "जी", + "व", + "नी", + "चे", + "त", + "ना", + "सर्", + "वे", + "षां", + "हि", + "त", + "का", + "री", + "सम्", + "य", + "गु", + "द", + "यः", + "धर्", + "मे", + "ण", + "युक्", + "तं", + "ज", + "गत्", + "तस्", + "मान्", + "नित्", + "यं", + "अ", + "नु", + "या", + "तु", + "धर्", + "म", + "प", + "थं", + "जी", + "वन्", + "तु", + "लो", + "के", + "स", + "दा" + ] + }, + { + "id": 4, + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "करुणा", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "करुणा हि मनःशान्तिः, सेवते सुखमावहम् दयया यः स्थितो लोके, स सर्वत्र विजेयते", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "pañcaśikhā": null, + "paridhārā": null, + "valīkendu": null + }, + "accidental": { + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 9\n\nThe verse effectively conveys the idea that compassion (करुणा) brings peace to the mind and happiness, and that the person who abides in compassion is victorious everywhere. This aligns well with the expected topic of compassion (करुणा). The grammar is mostly correct, and the verse captures the essence of traditional Sanskrit poetry. It is a complete thought, adhering to the structure and style expected in classical works. The use of the इन्द्रवज्रा meter is consistent, though not perfect in adherence, it largely maintains the traditional poetic rhythm.", + "syllables": [ + "क", + "रु", + "णा", + "हि", + "म", + "नः", + "शान्", + "तिः", + "से", + "व", + "ते", + "सु", + "ख", + "मा", + "व", + "हम्", + "द", + "य", + "या", + "यःस्", + "थि", + "तो", + "लो", + "के", + "स", + "सर्", + "वत्", + "र", + "वि", + "जे", + "य", + "ते" + ] + }, + { + "id": 0, + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "विद्या", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": "विद्या नेत्रं भवति विपदां सम्पदां चापि सूक्तिः संसारस्य भ्रमणविधिने तारिणी चेतनानाम् ज्ञानं धत्ते विविधमखिलं ध्वंसयत्यज्ञानताम् धन्याः ते वै य इह विदुषः, शिक्षया मोक्षमार्गे", + "meter_match": true, + "predicted_meter": "Mandākrāntā", + "meter_details": { + "partial": { + "Mandākrāntā": null, + "mandākrāntā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 9\n\nThe verse is meaningful and grammatically correct, describing how knowledge serves as a guiding light in both adversity and prosperity, and how wisdom can lead to liberation. It effectively addresses the topic of \"विद्या\" (knowledge/learning) by highlighting its importance and benefits. The verse maintains a traditional Sanskrit poetic feel, though it occasionally lacks the fluidity found in classical compositions. The verse presents a complete idea, illustrating the transformational power of education and wisdom.", + "syllables": [ + "विद्", + "या", + "नेत्", + "रं", + "भ", + "व", + "ति", + "वि", + "प", + "दां", + "सम्", + "प", + "दां", + "चा", + "पि", + "सूक्", + "तिः", + "सं", + "सा", + "रस्", + "यभ्", + "र", + "म", + "ण", + "वि", + "धि", + "ने", + "ता", + "रि", + "णी", + "चे", + "त", + "ना", + "नाम्ज्", + "ञा", + "नं", + "धत्", + "ते", + "वि", + "वि", + "ध", + "म", + "खि", + "लंध्", + "वं", + "स", + "यत्", + "यज्", + "ञा", + "न", + "ताम्", + "धन्", + "याः", + "ते", + "वै", + "य", + "इ", + "ह", + "वि", + "दु", + "षः", + "शिक्", + "ष", + "या", + "मोक्", + "ष", + "मार्", + "गे" + ] + }, + { + "id": 1, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": "शान्त्याः श्वेताः करुणामयः सर्वलोकां, सन्मार्गे तान् नयतु प्रभोः पादपद्मम् चिन्ताशून्यं हृदयं विधाय सर्वे, सौख्यं प्राप्तुं भवतां वयं च नित्यम्", + "meter_match": false, + "predicted_meter": "", + "meter_details": {}, + "semantic_evaluation": "MEANING: 6 TOPIC_RELEVANCE: 7 AUTHENTICITY: 5 COMPLETENESS: 6\n\nThe verse attempts to convey a meaningful idea about peace and spiritual guidance, though there are minor grammatical inconsistencies. It somewhat addresses the topic of शान्ति (peace), as it mentions tranquility and a desire for happiness. However, the authenticity is moderate, as it lacks the depth and elegance of traditional Sanskrit poetry. While it is a nearly complete thought, it feels slightly disjointed and could benefit from refinement for clarity and cohesion.", + "syllables": [ + "शान्त्", + "याःश्", + "वे", + "ताः", + "क", + "रु", + "णा", + "म", + "यः", + "सर्", + "व", + "लो", + "कां", + "सन्", + "मार्", + "गे", + "तान्", + "न", + "य", + "तुप्", + "र", + "भोः", + "पा", + "द", + "पद्", + "मम्", + "चिन्", + "ता", + "शून्", + "यं", + "हृ", + "द", + "यं", + "वि", + "धा", + "य", + "सर्", + "वे", + "सौख्", + "यंप्", + "राप्", + "तुं", + "भ", + "व", + "तां", + "व", + "यं", + "च", + "नित्", + "यम्" + ] + }, + { + "id": 2, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "मालिनी", + "generated_verse": "शान्तिर्भूयात्सर्वलोकस्य कस्यचित्, द्वेषो नास्तु व्याधयो दूरे भवन्तु स्नेहो जीवत्वस्तु मित्रेषु सर्वदा, शान्तिं प्रार्थये जीविते सर्वदा हि", + "meter_match": false, + "predicted_meter": "", + "meter_details": {}, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 8\n\nThe verse is meaningful and grammatically correct in Sanskrit, wishing for peace, absence of disease, and enduring friendship, which aligns well with the expected topic of \"शान्ति\" (peace). It addresses the topic effectively, expressing desires for peace and well-being across the world. While it has a coherent structure and a complete thought, it lacks the strict metrical precision of the \"मालिनी\" meter, which affects its authenticity slightly, although it still resembles traditional Sanskrit poetry.", + "syllables": [ + "शान्", + "तिर्", + "भू", + "यात्", + "सर्", + "व", + "लो", + "कस्", + "य", + "कस्", + "य", + "चित्द्", + "वे", + "षो", + "नास्", + "तुव्", + "या", + "ध", + "यो", + "दू", + "रे", + "भ", + "वन्", + "तुस्", + "ने", + "हो", + "जी", + "वत्", + "वस्", + "तु", + "मित्", + "रे", + "षु", + "सर्", + "व", + "दा", + "शान्", + "तिंप्", + "रार्", + "थ", + "ये", + "जी", + "वि", + "ते", + "सर्", + "व", + "दा", + "हि" + ] + }, + { + "id": 3, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "अनुष्टुप्", + "generated_verse": "सिंहः शूरो महावीर्यः पराक्रमसमन्वितः सत्त्वं धृत्या च संयुक्तः शौर्यमेवं प्रकीर्त्यते", + "meter_match": true, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "hemarūpam": null + }, + "accidental": { + "madhu": null, + "ṛju": null, + "kalā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThe verse is meaningful and grammatically correct, describing qualities associated with bravery such as strength, valor, and courage, which aligns well with the expected topic of शौर्य (valor). The use of terms like सिंहः (lion), शूरो (heroic), and महावीर्यः (of great strength) effectively conveys the concept of valor, making it relevant to the topic. The verse has a traditional feel, resembling classical Sanskrit poetry. It is a complete verse, presenting a cohesive thought about the nature of bravery.", + "syllables": [ + "सिं", + "हः", + "शू", + "रो", + "म", + "हा", + "वीर्", + "यः", + "प", + "राक्", + "र", + "म", + "स", + "मन्", + "वि", + "तः", + "सत्त्", + "वं", + "धृत्", + "या", + "च", + "सं", + "युक्", + "तः", + "शौर्", + "य", + "मे", + "वंप्", + "र", + "कीर्त्", + "य", + "ते" + ] + }, + { + "id": 4, + "prompt": "'सौंदर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "सौंदर्य", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "सौन्दर्यमिन्द्रो नयनेषु यस्य, वर्णं च कामप्रमदैः सुलभ्यम रूपेण यस्याः खलु मोहितं मनः, सा सुन्दरी शान्तिमयी ममास्तु", + "meter_match": true, + "predicted_meter": "indravajrā", + "meter_details": { + "partial": { + "indravajrā": null, + "ākhyānikī": null, + "bhadrā": null, + "ākhyānakī": null, + "Indravaṃśā": null, + "indravaṃśā": null, + "ratākhyānakī": null, + "kumārī": null, + "śaṅkhacūḍā": null, + "induvaṃśā": null, + "śiśirā": null, + "saurabheyī": null, + "vāsantikā": null, + "puṣṭidā": null, + "manahāsā": null, + "varāsikā": null, + "upameyā": null, + "ramaṇā": null, + "viparītākhyānikī": null, + "ārdrā": null, + "viparītākhyānakī": null, + "haṃsī": null, + "śālā": null, + "rāmā": null, + "ṛddhiḥ": null, + "bālā": null, + "kīrtiḥ": null, + "vaidhātrī": null, + "indumā": null + }, + "accidental": { + "viparītākhyānikī": null, + "ārdrā": null, + "māyā": null, + "viparītākhyānakī": null, + "mālā": null, + "haṃsī": null, + "śālā": null, + "vāṇī": null, + "rāmā": null, + "ṛddhiḥ": null, + "bālā": null, + "kīrtiḥ": null, + "jāyā": null, + "vaidhātrī": null, + "manahāsā": null, + "varāsikā": null, + "indumā": null, + "upameyā": null, + "ramaṇā": null, + "śīlāturā": null, + "ratākhyānakī": null, + "śiśirā": null, + "saurabheyī": null, + "ākhyānikī": null, + "bhadrā": null, + "ākhyānakī": null, + "kumārī": null, + "śaṅkhacūḍā": null, + "puṣṭidā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 8\n\nThe verse is mostly meaningful and grammatically correct, though there may be minor issues with the flow of the compound words. It addresses the topic of \"सौंदर्य\" (beauty) quite well, focusing on attributes that captivate the mind and bring peace. The style is reminiscent of traditional Sanskrit poetry, but some phrases may feel slightly modern or less classical. Overall, it presents a complete thought, expressing a wish for peace brought by beauty.", + "syllables": [ + "सौन्", + "दर्", + "य", + "मिन्द्", + "रो", + "न", + "य", + "ने", + "षु", + "यस्", + "य", + "वर्", + "णं", + "च", + "का", + "मप्", + "र", + "म", + "दैः", + "सु", + "लभ्", + "य", + "म", + "रू", + "पे", + "ण", + "यस्", + "याः", + "ख", + "लु", + "मो", + "हि", + "तं", + "म", + "नः", + "सा", + "सुन्", + "द", + "री", + "शान्", + "ति", + "म", + "यी", + "म", + "मास्", + "तु" + ] + }, + { + "id": 0, + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "धर्म", + "target_meter": "मालिनी", + "generated_verse": "धर्मो हि सर्वस्य गुणाधिपो महान् धर्मेण हीना पशुभिः समा नराः धर्मे स्थितो हि सुखमेति जीवने धर्मेण मुक्तिः परमं पदं हि तत्", + "meter_match": false, + "predicted_meter": "Indravaṃśā", + "meter_details": { + "partial": { + "Indravaṃśā": null, + "indravaṃśā": null, + "śaṅkhacūḍā": null, + "induvaṃśā": null, + "vāsantikā": null, + "puṣṭidā": null, + "ratākhyānakī": null, + "kumārī": null, + "śiśirā": null, + "saurabheyī": null, + "manahāsā": null, + "varāsikā": null, + "upameyā": null, + "ramaṇā": null, + "lalitā": null, + "vaidhātrī": null, + "indumā": null + }, + "accidental": { + "ratākhyānakī": null, + "varāsikā": null, + "indumā": null, + "vaidhātrī": null, + "manahāsā": null, + "upameyā": null, + "ramaṇā": null, + "śīlāturā": null, + "kumārī": null, + "śiśirā": null, + "saurabheyī": null, + "śaṅkhacūḍā": null, + "puṣṭidā": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThis verse is meaningful and grammatically correct, discussing the importance of dharma (righteousness) in human life. It highlights how dharma is superior and essential for achieving happiness and liberation, aligning well with the expected topic. The verse maintains the traditional tone of Sanskrit poetry, though it slightly deviates from the classical intricacies of the Mālinī meter. Nonetheless, it presents a coherent and complete thought.", + "syllables": [ + "धर्", + "मो", + "हि", + "सर्", + "वस्", + "य", + "गु", + "णा", + "धि", + "पो", + "म", + "हान्", + "धर्", + "मे", + "ण", + "ही", + "ना", + "प", + "शु", + "भिः", + "स", + "मा", + "न", + "राः", + "धर्", + "मेस्", + "थि", + "तो", + "हि", + "सु", + "ख", + "मे", + "ति", + "जी", + "व", + "ने", + "धर्", + "मे", + "ण", + "मुक्", + "तिः", + "प", + "र", + "मं", + "प", + "दं", + "हि", + "तत्" + ] + }, + { + "id": 1, + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'अनुष्टुप्' छन्द में हो।", + "topic": "गुरु", + "target_meter": "अनुष्टुप्", + "generated_verse": "गुकारस्त्वन्धकारः स्यात् रुकारस्तेज उच्यते अज्ञानग्रासकं ब्रह्म गुरुरेव न संशयः", + "meter_match": true, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "kulādhārī": null, + "bhāṣā": null, + "kalilā": null, + "amanā": null + }, + "accidental": { + "krīḍā": null, + "vāri": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThis verse is meaningful and grammatically correct, explaining the etymology of the word \"guru\" by associating the syllables \"gu\" and \"ru\" with darkness and light, respectively, and emphasizing the guru's role in dispelling ignorance. The topic of the verse is clearly relevant to the theme of \"guru.\" It adheres to the style of traditional Sanskrit poetry, conveying a coherent message that aligns with classical teachings. The verse presents a complete thought, effectively communicating its intended message.", + "syllables": [ + "गु", + "का", + "रस्त्", + "वन्", + "ध", + "का", + "रःस्", + "यात्", + "रु", + "का", + "रस्", + "ते", + "ज", + "उच्", + "य", + "ते", + "अज्", + "ञा", + "नग्", + "रा", + "स", + "कंब्", + "रह्", + "म", + "गु", + "रु", + "रे", + "व", + "न", + "सं", + "श", + "यः" + ] + }, + { + "id": 2, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "मालिनी", + "generated_verse": "मन्दं मन्दं वहति पवने शीतलं चन्द्रबिम्बं, नीरः स्वच्छं विकसति हरिद्वल्लीषु सुन्दर्यः ध्यानं यत्र प्रविशतु मनः शान्तिर्यत्र स्थिरा स्यात्, तत्र ज्ञेयं भवति हृदयेष्वात्मशुद्धिः प्रकामम्", + "meter_match": false, + "predicted_meter": "Mandākrāntā", + "meter_details": { + "accidental": { + "Āryā (loose schema)": null + }, + "partial": { + "Mandākrāntā": null, + "mandākrāntā": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 7 COMPLETENESS: 8\n\nThe verse is meaningful and grammatically correct, depicting a serene and peaceful scene with natural elements like the gentle breeze, cool moon, and clear water, which aligns well with the topic of \"शान्ति\" (peace). It captures the essence of tranquility and introspection. While it generally maintains the feel of traditional Sanskrit poetry, there are minor deviations in meter consistency, particularly for the expected \"मालिनी\" meter. Overall, the verse presents a coherent and complete thought that effectively conveys a peaceful atmosphere.", + "syllables": [ + "मन्", + "दं", + "मन्", + "दं", + "व", + "ह", + "ति", + "प", + "व", + "ने", + "शी", + "त", + "लं", + "चन्द्", + "र", + "बिम्", + "बं", + "नी", + "रःस्", + "वच्", + "छं", + "वि", + "क", + "स", + "ति", + "ह", + "रिद्", + "वल्", + "ली", + "षु", + "सुन्", + "दर्", + "यःध्", + "या", + "नं", + "यत्", + "रप्", + "र", + "वि", + "श", + "तु", + "म", + "नः", + "शान्", + "तिर्", + "यत्", + "रस्", + "थि", + "रास्", + "यात्", + "तत्", + "रज्", + "ञे", + "यं", + "भ", + "व", + "ति", + "हृ", + "द", + "येष्", + "वात्", + "म", + "शुद्", + "धिःप्", + "र", + "का", + "मम्" + ] + }, + { + "id": 3, + "prompt": "'शान्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "शान्ति", + "target_meter": "मालिनी", + "generated_verse": "शान्तिर्भवत्वस्मिन्हृदि सर्वदा सदा द्वेषः प्रदूयतां हृत्सु मनस्यपि स्नेहोदयः सतां जनयतु क्षमां शान्तिर्वर्धतां नः सुहृदां गृहे गृहे", + "meter_match": false, + "predicted_meter": "Indravaṃśā", + "meter_details": { + "partial": { + "Indravaṃśā": null, + "indravaṃśā": null, + "vaidhātrī": null, + "ratākhyānakī": null, + "manahāsā": null, + "induvaṃśā": null, + "śiśirā": null, + "varāsikā": null, + "indumā": null, + "vāsantikā": null + }, + "accidental": { + "kumārī": null, + "śaṅkhacūḍā": null, + "saurabheyī": null, + "upameyā": null, + "ramaṇā": null, + "śīlāturā": null, + "puṣṭidā": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThe verse is meaningful and grammatically correct, expressing a desire for peace to prevail in the heart and for enmity to be dispelled, which aligns well with the expected topic of \"शान्ति\" (peace). It maintains a traditional Sanskrit poetic style, closely adhering to the expected meter of मालिनी, although there might be minor deviations in metrical precision. The verse presents a complete and coherent thought, effectively conveying its message of peace and harmony.", + "syllables": [ + "शान्", + "तिर्", + "भ", + "वत्", + "वस्", + "मिन्", + "हृ", + "दि", + "सर्", + "व", + "दा", + "स", + "दाद्", + "वे", + "षःप्", + "र", + "दू", + "य", + "तां", + "हृत्", + "सु", + "म", + "नस्", + "य", + "पिस्", + "ने", + "हो", + "द", + "यः", + "स", + "तां", + "ज", + "न", + "य", + "तुक्", + "ष", + "मां", + "शान्", + "तिर्", + "वर्", + "ध", + "तां", + "नः", + "सु", + "हृ", + "दां", + "गृ", + "हे", + "गृ", + "हे" + ] + }, + { + "id": 4, + "prompt": "'सत्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "सत्य", + "target_meter": "वसन्ततिलका", + "generated_verse": "सत्यं वदन्ति महतां प्रवरं निधिं च, सत्यं हि धर्ममपि चाश्रयते सदा सत्ये स्थितो हि भुवनं चरमं च तिष्ठेत्, सत्यं विना न हि सुखं लभते कदाचित्", + "meter_match": true, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null, + "pramodatilakā": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 8 COMPLETENESS: 9\n\nThe verse is grammatically correct and meaningful, discussing the importance of सत्य (truth) and its role in supporting dharma, happiness, and the stability of the world. It aligns well with the expected topic of सत्य, emphasizing its significance as the foundation of happiness and moral order. The style and structure resemble traditional Sanskrit poetry, though it could be slightly polished for enhanced poetic authenticity. The verse presents a complete and coherent thought, reflecting on the indispensability of truth.", + "syllables": [ + "सत्", + "यं", + "व", + "दन्", + "ति", + "म", + "ह", + "तांप्", + "र", + "व", + "रं", + "नि", + "धिं", + "च", + "सत्", + "यं", + "हि", + "धर्", + "म", + "म", + "पि", + "चाश्", + "र", + "य", + "ते", + "स", + "दा", + "सत्", + "येस्", + "थि", + "तो", + "हि", + "भु", + "व", + "नं", + "च", + "र", + "मं", + "च", + "तिष्", + "ठेत्", + "सत्", + "यं", + "वि", + "ना", + "न", + "हि", + "सु", + "खं", + "ल", + "भ", + "ते", + "क", + "दा", + "चित्" + ] + }, + { + "id": 0, + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "विद्या", + "target_meter": "मालिनी", + "generated_verse": "विद्या धनं सर्वधनप्रधाना, विद्या हि मित्रं प्रवसि स्वदेशे विद्या परं दैवतम् अग्ररूपं, विद्या विना नास्ति कृतेषु किञ्चित्", + "meter_match": false, + "predicted_meter": "indravajrā", + "meter_details": { + "exact": { + "indravajrā": null + }, + "partial": { + "indravajrā": null, + "śālā": null, + "rāmā": null, + "bālā": null, + "mālā": null, + "vāṇī": null, + "kīrtiḥ": null, + "ākhyānikī": null, + "bhadrā": null, + "ākhyānakī": null, + "buddhiḥ": null, + "jāyā": null, + "viparītākhyānikī": null, + "ārdrā": null, + "viparītākhyānakī": null, + "haṃsī": null, + "ṛddhiḥ": null, + "premā": null + }, + "accidental": { + "mālā": null, + "vāṇī": null, + "kīrtiḥ": null, + "śālā": null, + "rāmā": null, + "bālā": null, + "viparītākhyānikī": null, + "ārdrā": null, + "māyā": null, + "viparītākhyānakī": null, + "haṃsī": null, + "premā": null, + "ṛddhiḥ": null, + "ākhyānikī": null, + "bhadrā": null, + "ākhyānakī": null, + "buddhiḥ": null, + "jāyā": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThe verse is meaningful and grammatically correct, describing the supreme importance of knowledge (विद्या) as a form of wealth and friend, both in foreign lands and at home, and as a divine entity. It directly addresses the topic of \"विद्या,\" emphasizing its unmatched value, aligning perfectly with the given theme. The language and construction are consistent with traditional Sanskrit poetry, and the verse presents a complete thought, encapsulating the significance of knowledge effectively.", + "syllables": [ + "विद्", + "या", + "ध", + "नं", + "सर्", + "व", + "ध", + "नप्", + "र", + "धा", + "ना", + "विद्", + "या", + "हि", + "मित्", + "रंप्", + "र", + "व", + "सिस्", + "व", + "दे", + "शे", + "विद्", + "या", + "प", + "रं", + "दै", + "व", + "त", + "मग्", + "र", + "रू", + "पं", + "विद्", + "या", + "वि", + "ना", + "नास्", + "ति", + "कृ", + "ते", + "षु", + "किञ्", + "चित्" + ] + }, + { + "id": 1, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "वीर्यं धारयते सदा विजयते शत्रून् समग्रान् यथा शस्त्रेणोद्धतसत्त्वविक्रमबलं यो धारयत्यग्रणीः", + "meter_match": false, + "predicted_meter": "śuddhavirāṭ", + "meter_details": { + "accidental": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null, + "bhadravirāṭ": null, + "asudhā": null, + "vaiyālī": null, + "vaisārī": null, + "vāsavavanditā": null + }, + "partial": { + "śuddhavirāṭ": null, + "virāṭ": null, + "prabhāsitā": null, + "vāsavavanditā": null, + "sudhā": null, + "karadhā": null, + "vaisārī": null, + "ravonmukhī": null + } + }, + "semantic_evaluation": "MEANING: 8 TOPIC_RELEVANCE: 9 AUTHENTICITY: 8 COMPLETENESS: 7\n\nThe verse presents meaningful and grammatically correct Sanskrit, describing the qualities of valor and strength in overcoming enemies, aligning well with the expected topic of शौर्य (valor/bravery). The language and structure resemble traditional Sanskrit poetry, fitting the expected meter of इन्द्रवज्रा, although it could be more polished. However, the verse seems to lack a concluding sentiment or resolution, leaving it slightly incomplete in capturing the essence of a complete poetic thought.", + "syllables": [ + "वीर्", + "यं", + "धा", + "र", + "य", + "ते", + "स", + "दा", + "वि", + "ज", + "य", + "ते", + "शत्", + "रून्", + "स", + "मग्", + "रान्", + "य", + "था", + "शस्त्", + "रे", + "णोद्", + "ध", + "त", + "सत्त्", + "व", + "विक्", + "र", + "म", + "ब", + "लं", + "यो", + "धा", + "र", + "यत्", + "यग्", + "र", + "णीः" + ] + }, + { + "id": 2, + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "करुणा", + "target_meter": "वसन्ततिलका", + "generated_verse": "करुणा हि परं धनं जनसुखे, सम्यक् प्रवर्त्तेत या दया स्याद् वसुधा समा हृदि सदा, यत्रैव तिष्ठेत् सदा प्रेम्णा सर्वजनेषु सर्वसमये, तुष्टिं विधत्ते परां साध्वी सन्ततिमेत्य सन्ततिधृतं, लोके प्रशस्तं भवेत्", + "meter_match": false, + "predicted_meter": "Śārdūlavikrīḍitam", + "meter_details": { + "partial": { + "Śārdūlavikrīḍitam": null, + "śārdulavikrīḍita": null, + "śārdūlavikrīḍitam": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 6 COMPLETENESS: 7\n\nThe verse presents a meaningful message about compassion being the highest wealth and its importance in society, aligning well with the expected topic of \"करुणा\" (compassion). However, there are some grammatical inconsistencies and awkward constructions that slightly hinder the clarity and traditional flow of the verse. While it does convey a complete thought, the poetic authenticity could be improved to better reflect classical Sanskrit style and meter.", + "syllables": [ + "क", + "रु", + "णा", + "हि", + "प", + "रं", + "ध", + "नं", + "ज", + "न", + "सु", + "खे", + "सम्", + "यक्प्", + "र", + "वर्त्", + "ते", + "त", + "या", + "द", + "यास्", + "याद्", + "व", + "सु", + "धा", + "स", + "मा", + "हृ", + "दि", + "स", + "दा", + "यत्", + "रै", + "व", + "तिष्", + "ठेत्", + "स", + "दाप्", + "रेम्", + "णा", + "सर्", + "व", + "ज", + "ने", + "षु", + "सर्", + "व", + "स", + "म", + "ये", + "तुष्", + "टिं", + "वि", + "धत्", + "ते", + "प", + "रां", + "साध्", + "वी", + "सन्", + "त", + "ति", + "मेत्", + "य", + "सन्", + "त", + "ति", + "धृ", + "तं", + "लो", + "केप्", + "र", + "शस्", + "तं", + "भ", + "वेत्" + ] + }, + { + "id": 3, + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "मातृभूमि", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "जननीं स्वर्गसदृशां, भूषणां भूधरालयाम्", + "meter_match": false, + "predicted_meter": "dolā", + "meter_details": { + "accidental": { + "sṛtamadhu": null, + "hemarūpam": null, + "śrī": null, + "madhu": null, + "mahī": null, + "strī": null, + "cāru": null + }, + "partial": { + "dolā": null, + "kāru": null, + "satī": null, + "paṭu": null, + "nandaḥ": null, + "dhāri": null, + "ṛju": null, + "kalā": null + } + }, + "semantic_evaluation": "MEANING: 7 TOPIC_RELEVANCE: 8 AUTHENTICITY: 6 COMPLETENESS: 5\n\nThe verse is grammatically correct and meaningful, as it conveys a reverence for the motherland, comparing it to heaven and describing it as adorned and mountainous. It is relevant to the topic of मातृभूमि (motherland), capturing the essence of the subject. However, while it uses traditional imagery, it lacks the depth and complexity often found in classical Sanskrit poetry, affecting its authenticity. Additionally, the verse feels incomplete, as it appears to be a fragment rather than a full verse, lacking a concluding thought.", + "syllables": [ + "ज", + "न", + "नींस्", + "वर्", + "ग", + "स", + "दृ", + "शां", + "भू", + "ष", + "णां", + "भू", + "ध", + "रा", + "ल", + "याम्" + ] + }, + { + "id": 4, + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "भक्ति", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "भक्तिर्भवस्य भवबन्धविमोचनं स्यात् संसारसागरविनाशनकारणं हि यस्यां स्थितो हृदि जनः सुखमाप्नुते सदा तां नौमि देवि भगवत्यनपायिनीं त्वाम्", + "meter_match": false, + "predicted_meter": "Vasantatilakā", + "meter_details": { + "partial": { + "Vasantatilakā": null, + "vasantatilakā": null + } + }, + "semantic_evaluation": "MEANING: 9 TOPIC_RELEVANCE: 10 AUTHENTICITY: 9 COMPLETENESS: 10\n\nThis verse is meaningful and grammatically correct, depicting the theme of devotion (भक्ति) as a liberating force from worldly bondage and a source of eternal happiness. It is highly relevant to the expected topic of भक्ति, as it praises the divine feminine (देवि भगवति) as an embodiment of unwavering devotion. The verse maintains the traditional style of Sanskrit poetry, and it presents a complete thought, making a cohesive and reverent statement about the transformative power of devotion.", + "syllables": [ + "भक्", + "तिर्", + "भ", + "वस्", + "य", + "भ", + "व", + "बन्", + "ध", + "वि", + "मो", + "च", + "नंस्", + "यात्", + "सं", + "सा", + "र", + "सा", + "ग", + "र", + "वि", + "ना", + "श", + "न", + "का", + "र", + "णं", + "हि", + "यस्", + "यांस्", + "थि", + "तो", + "हृ", + "दि", + "ज", + "नः", + "सु", + "ख", + "माप्", + "नु", + "ते", + "स", + "दा", + "तां", + "नौ", + "मि", + "दे", + "वि", + "भ", + "ग", + "वत्", + "य", + "न", + "पा", + "यि", + "नींत्", + "वाम्" + ] + }, + { + "id": 0, + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "धर्म", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": "धर्मस्य सदा पथः, सच्चिदानन्ददायकः सर्वेषां सुखदाता च, धर्मः सर्वात्मनिष्ठितः", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "partial": { + "Anuṣṭup (Śloka)": null, + "sārāvanadā": null, + "doṣā": null, + "pūrṇā": null, + "upohā": null, + "mahoddhatā": null, + "hemarūpam": null, + "vedhāḥ": null, + "guñjā": null, + "kālambī": null, + "mahonmukhī": null + }, + "accidental": { + "tāvuri": null, + "dharā": null, + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING:4 TOPIC_RELEVANCE:8 AUTHENTICITY:3 COMPLETENESS:4\n\nThe line strings together epithets of धर्मः (“path,” “giver of sat-chit-ānanda,” “universal benefactor,” “dwelling in all souls”) but has case mismatches and no clear verbs or concord, so its sense is only vaguely conveyed. It does address धर्म, but the lack of metrical rhythm and cohesive style makes it feel like word-salad rather than classical poetry, and it doesn’t form a fully rounded, self-contained śloka.", + "syllables": [ + "धर्", + "मस्", + "य", + "स", + "दा", + "प", + "थः", + "सच्", + "चि", + "दा", + "नन्", + "द", + "दा", + "य", + "कः", + "सर्", + "वे", + "षां", + "सु", + "ख", + "दा", + "ता", + "च", + "धर्", + "मः", + "सर्", + "वात्", + "म", + "निष्", + "ठि", + "तः" + ] + }, + { + "id": 1, + "prompt": "'भक्ति' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "भक्ति", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "**श्रीगुरु कृपया साध्यं, भक्तिरञ्जितमात्मनः सदा सेवामहे नित्यम्, भक्त्या मे नाश्यते सदा **", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "kulādhārī": null + }, + "accidental": { + "krīḍā": null, + "vāri": null, + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING: 4 TOPIC_RELEVANCE: 8 AUTHENTICITY: 3 COMPLETENESS: 4\n\nThe verse conveys an intention of guru-grace and ever-lasting devotion, but its Sanskrit is metrically and grammatically uneven (e.g. case mismatches, doubled adverbs). It does evoke the theme of bhakti and guru-seva, yet the phrasing feels patched rather than classically poetic, and the thought isn’t fully developed into a self-contained śloka.", + "syllables": [ + "श्री", + "गु", + "रु", + "कृ", + "प", + "या", + "साध्", + "यं", + "भक्", + "ति", + "रञ्", + "जि", + "त", + "मात्", + "म", + "नः", + "स", + "दा", + "से", + "वा", + "म", + "हे", + "नित्", + "यम्", + "भक्त्", + "या", + "मे", + "नाश्", + "य", + "ते", + "स", + "दा" + ] + }, + { + "id": 2, + "prompt": "'गुरु' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "गुरु", + "target_meter": "मालिनी", + "generated_verse": "गुरुर्ब्रह्मा गुरुर्विष्णुः गुरुर्देवो महेश्वरः गुरुः साक्षात परब्रह्म तस्मै श्रीगुरवे नमः", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "partial": { + "Anuṣṭup (Śloka)": null, + "kulādhārī": null, + "bhāṣā": null + }, + "accidental": { + "krīḍā": null, + "vāri": null, + "strī": null, + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING:10 \nTOPIC_RELEVANCE:10 \nAUTHENTICITY:10 \nCOMPLETENESS:10 \n\nThis verse is perfectly grammatical and conveys a clear devotional meaning. It directly addresses the guru, fitting the expected topic. Its style and diction are fully in line with traditional Sanskrit stotras, and it forms a complete, self-contained salutatory verse.", + "syllables": [ + "गु", + "रुर्ब्", + "रह्", + "मा", + "गु", + "रुर्", + "विष्", + "णुः", + "गु", + "रुर्", + "दे", + "वो", + "म", + "हेश्", + "व", + "रः", + "गु", + "रुः", + "साक्", + "षा", + "त", + "प", + "रब्", + "रह्", + "म", + "तस्", + "मैश्", + "री", + "गु", + "र", + "वे", + "न", + "मः" + ] + }, + { + "id": 3, + "prompt": "'मातृभूमि' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "मातृभूमि", + "target_meter": "वसन्ततिलका", + "generated_verse": "मातृभूमिस्त्वं सदा पूज्यते, सुखदं च ददाति मे सर्वदा त्वं सदा भक्तिपूर्वकं, रक्ष्यसे यत्नतः सदा", + "meter_match": false, + "predicted_meter": "hīralambi", + "meter_details": { + "partial": { + "hīralambi": null, + "dadhi": null, + "madanoddhurā": null, + "viśalyam": null, + "hemahāsaḥ": null, + "bhaurikam": null + } + }, + "semantic_evaluation": "MEANING:4 TOPIC:7 AUTHENTICITY:3 COMPLETENESS:4\n\nThe verse’s case‐endings and sandhi are awkward (e.g. मातृभूमिस्त्वं instead of मातृभूमे or त्वां मातृभूमिं), so the grammar and sense are only loosely coherent. It does invoke the motherland theme but in a very elementary way. Stylistically it feels modern and improvised rather than following classical metrical and poetic conventions, and the thought, while present, isn’t fully developed into a polished, complete verse.", + "syllables": [ + "मा", + "तृ", + "भू", + "मिस्त्", + "वं", + "स", + "दा", + "पूज्", + "य", + "ते", + "सु", + "ख", + "दं", + "च", + "द", + "दा", + "ति", + "मे", + "सर्", + "व", + "दात्", + "वं", + "स", + "दा", + "भक्", + "ति", + "पूर्", + "व", + "कं", + "रक्ष्", + "य", + "से", + "यत्", + "न", + "तः", + "स", + "दा" + ] + }, + { + "id": 4, + "prompt": "'करुणा' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "करुणा", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": "करुणा हृदयं वर्धते, दुःखितानां कृते सदा सर्वेषां सुखदं तस्मात्, करुणामयते समं", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "partial": { + "Anuṣṭup (Śloka)": null, + "pañcaśikhā": null, + "karālī": null, + "kiṣku": null, + "hemarūpam": null, + "dhṛtahālā": null, + "pratisīrā": null, + "dadhi": null, + "madanoddhurā": null, + "kalilā": null, + "amanā": null + } + }, + "semantic_evaluation": "MEANING:5 \nTOPIC_RELEVANCE:9 \nAUTHENTICITY:3 \nCOMPLETENESS:4 \n\nThe verse conveys the idea that compassion enlarges the heart and brings joy to the suffering, but its grammar and word‐order are irregular. It clearly centers on करुणा, yet lacks the metrical rigor and stylistic polish of traditional Sanskrit poetry. The thought is present but feels fragmented rather than a fully coherent, self-standing verse.", + "syllables": [ + "क", + "रु", + "णा", + "हृ", + "द", + "यं", + "वर्", + "ध", + "ते", + "दुः", + "खि", + "ता", + "नां", + "कृ", + "ते", + "स", + "दा", + "सर्", + "वे", + "षां", + "सु", + "ख", + "दं", + "तस्", + "मात्", + "क", + "रु", + "णा", + "म", + "य", + "ते", + "स", + "मं" + ] + }, + { + "id": 0, + "prompt": "'विद्या' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "विद्या", + "target_meter": "मालिनी", + "generated_verse": "विद्या ददाति सौम्यं, विद्या ददाति धर्मम् विद्या ददाति सुखं, विद्या जीवनं शान्तिम्", + "meter_match": false, + "predicted_meter": "vṛndā", + "meter_details": { + "partial": { + "vṛndā": null, + "bhīmārjanam": null, + "nirvādhikā": null, + "kroḍāntikam": null, + "ibhabhrāntā": null, + "devalam": null + } + }, + "semantic_evaluation": "MEANING:6 \nTOPIC:10 \nAUTHENTICITY:4 \nCOMPLETENESS:5 \n\nThis verse is easily understandable but shows some awkward grammar (e.g. uneven use of ददाति and asyndeton), so it scores moderately on meaning. It is fully on-topic, praising विद्या, hence a top score for relevance. However, it lacks classical metrical structure and feels like a modern slogan rather than a polished Śloka, giving it low authenticity. Finally, while the thought is clear, the repetition and abrupt ending make it feel only partially complete.", + "syllables": [ + "विद्", + "या", + "द", + "दा", + "ति", + "सौम्", + "यं", + "विद्", + "या", + "द", + "दा", + "ति", + "धर्", + "मम्", + "विद्", + "या", + "द", + "दा", + "ति", + "सु", + "खं", + "विद्", + "या", + "जी", + "व", + "नं", + "शान्", + "तिम्" + ] + }, + { + "id": 1, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'इन्द्रवज्रा' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "इन्द्रवज्रा", + "generated_verse": "शौर्यस्य तेजो बलव्रते च सदा, वीर्यं च शूरं न तु दर्शयन्ति गर्वं न कुर्वन्ति च शत्रुवर्गे, कर्माणि यत्र प्रवृत्तिमन्ति", + "meter_match": true, + "predicted_meter": "indravajrā", + "meter_details": { + "partial": { + "indravajrā": null, + "viparītākhyānikī": null, + "ārdrā": null, + "viparītākhyānakī": null, + "haṃsī": null, + "śālā": null, + "rāmā": null, + "ṛddhiḥ": null, + "bālā": null, + "kīrtiḥ": null, + "ākhyānikī": null, + "mālā": null, + "bhadrā": null, + "ākhyānakī": null, + "vāṇī": null, + "premā": null + }, + "accidental": { + "ākhyānikī": null, + "māyā": null, + "mālā": null, + "bhadrā": null, + "ākhyānakī": null, + "vāṇī": null, + "jāyā": null, + "viparītākhyānikī": null, + "viparītākhyānakī": null, + "haṃsī": null, + "śālā": null, + "buddhiḥ": null, + "rāmā": null, + "ṛddhiḥ": null + } + }, + "semantic_evaluation": "MEANING:3 \nTOPIC:5 \nAUTHENTICITY:2 \nCOMPLETENESS:4 \n\nThe verse strings together bravery-related terms but contains grammatical flaws (e.g. बलव्रते, प्रवृत्तिमन्ति) and yields no clear, coherent sense. While it invokes शौर्य and वीर्य, it fails to develop a genuine thought or follow a recognizable meter, so it feels more like word salad than traditional Sanskrit poetry.", + "syllables": [ + "शौर्", + "यस्", + "य", + "ते", + "जो", + "ब", + "लव्", + "र", + "ते", + "च", + "स", + "दा", + "वीर्", + "यं", + "च", + "शू", + "रं", + "न", + "तु", + "दर्", + "श", + "यन्", + "ति", + "गर्", + "वं", + "न", + "कुर्", + "वन्", + "ति", + "च", + "शत्", + "रु", + "वर्", + "गे", + "कर्", + "मा", + "णि", + "यत्", + "रप्", + "र", + "वृत्", + "ति", + "मन्", + "ति" + ] + }, + { + "id": 2, + "prompt": "'धर्म' विषय पर एक संस्कृत श्लोक लिखिए जो 'मन्दाक्रान्ता' छन्द में हो।", + "topic": "धर्म", + "target_meter": "मन्दाक्रान्ता", + "generated_verse": "धर्मस्य नित्यं यत्नं, सदा सुखदायिनं सत्यं च धर्ममार्गे, यत्र हि विश्वसिद्धिम्", + "meter_match": false, + "predicted_meter": "nimnāśayā", + "meter_details": { + "partial": { + "nimnāśayā": null, + "varddhiṣṇu": null, + "upodari": null, + "vahirvali": null, + "vṛndā": null, + "bhīmārjanam": null, + "hoḍapadā": null, + "mīnapadī": null + } + }, + "semantic_evaluation": "MEANING:5 TOPIC_RELEVANCE:9 AUTHENTICITY:3 COMPLETENESS:3\n\nThe verse gestures at a coherent idea (“constant effort in dharma brings joy and world‐wide success”) but the syntax is loose and lacks a governing verb, so it reads awkwardly. It clearly centers on धर्म yet fails to observe a proper मन्दाक्रान्ता छन्दस् and feels more like a list of key words than a polished śloka. Moreover, it ends abruptly without completing the thought.", + "syllables": [ + "धर्", + "मस्", + "य", + "नित्", + "यं", + "यत्", + "नं", + "स", + "दा", + "सु", + "ख", + "दा", + "यि", + "नं", + "सत्", + "यं", + "च", + "धर्", + "म", + "मार्", + "गे", + "यत्", + "र", + "हि", + "विश्", + "व", + "सिद्", + "धिम्" + ] + }, + { + "id": 3, + "prompt": "'शौर्य' विषय पर एक संस्कृत श्लोक लिखिए जो 'वसन्ततिलका' छन्द में हो।", + "topic": "शौर्य", + "target_meter": "वसन्ततिलका", + "generated_verse": "शौर्यं यत्र नीतिमयम्, विजयस्य पराक्रमः विद्यते तत्र वीराणां, यत्र सदा धर्ममार्गः", + "meter_match": false, + "predicted_meter": "haṭhinī", + "meter_details": { + "partial": { + "haṭhinī": null, + "kalilā": null, + "amanā": null, + "lakṣmī": null + } + }, + "semantic_evaluation": "MEANING: 6 \nTOPIC_RELEVANCE: 8 \nAUTHENTICITY: 4 \nCOMPLETENESS: 4 \n\nThe verse conveys the idea of valor tempered by ethics and dharma, but the word order and lack of a finite concluding thought make it only moderately clear. It does center on शौर्य effectively, yet reads more like a modern amalgam than a polished classical stanza. The thought remains unfinished, giving it an incomplete feel.", + "syllables": [ + "शौर्", + "यं", + "यत्", + "र", + "नी", + "ति", + "म", + "यम्", + "वि", + "ज", + "यस्", + "य", + "प", + "राक्", + "र", + "मः", + "विद्", + "य", + "ते", + "तत्", + "र", + "वी", + "रा", + "णां", + "यत्", + "र", + "स", + "दा", + "धर्", + "म", + "मार्", + "गः" + ] + }, + { + "id": 4, + "prompt": "'मित्रता' विषय पर एक संस्कृत श्लोक लिखिए जो 'मालिनी' छन्द में हो।", + "topic": "मित्रता", + "target_meter": "मालिनी", + "generated_verse": "सखा यत्र सदा संगः, स्नेहपाशैः समन्वितः दुःखेषु च सुखेषु च, मित्रं साधु सदा भवेत्", + "meter_match": false, + "predicted_meter": "Anuṣṭup (Śloka)", + "meter_details": { + "exact": { + "Anuṣṭup (Śloka)": null + }, + "partial": { + "Anuṣṭup (Śloka)": null, + "manolā": null, + "hemarūpam": null + }, + "accidental": { + "krīḍā": null, + "vāri": null, + "Anuṣṭup (Śloka)": null + } + }, + "semantic_evaluation": "MEANING:6 \nTOPIC:9 \nAUTHENTICITY:4 \nCOMPLETENESS:6 \n\nThe verse conveys a clear idea about friendship and is largely understandable though the sandhi-rules and case-endings are a bit loose. It directly addresses मित्रता, so it’s highly on-topic. Stylistically it feels like a modern Sanskrit composition rather than classical poetry, and it lacks a strict metrical pattern. The thought is essentially whole but reads more like a motto than a polished verse.", + "syllables": [ + "स", + "खा", + "यत्", + "र", + "स", + "दा", + "सं", + "गःस्", + "ने", + "ह", + "पा", + "शैः", + "स", + "मन्", + "वि", + "तः", + "दुः", + "खे", + "षु", + "च", + "सु", + "खे", + "षु", + "च", + "मित्", + "रं", + "सा", + "धु", + "स", + "दा", + "भ", + "वेत्" + ] + } +] \ No newline at end of file diff --git a/tests/sanskrit_poetry_chandas_verifier.py b/tests/sanskrit_poetry_chandas_verifier.py new file mode 100644 index 0000000..dde3e46 --- /dev/null +++ b/tests/sanskrit_poetry_chandas_verifier.py @@ -0,0 +1,303 @@ +import os +import random +import json +import openai + +import chandas +from chandas import identifier, syllabize +from indic_transliteration import sanscript +from indic_transliteration.sanscript import transliterate + +openai.api_key = os.getenv("OPENAI_API_KEY") + +# Extended dataset for comprehensive testing +topics = [ + "शौर्य", "सौंदर्य", "भक्ति", "सत्य", "मित्रता", "प्रकृति", + "विद्या", "धर्म", "शान्ति", "करुणा", "गुरु", "मातृभूमि" +] + +meters = [ + "अनुष्टुप्", "वसन्ततिलका", "शार्दूलविक्रीडित", + "मालिनी", "मन्दाक्रान्ता", "इन्द्रवज्रा" +] + +METER_MAP = { + "अनुष्टुप्": "Anuṣṭup", + "वसन्ततिलका": "Vasantatilakā", + "शार्दूलविक्रीडित": "Śārdūlavikrīḍita", + "मालिनी": "Mālinī", + "मन्दाक्रान्ता": "Mandākrāntā", + "इन्द्रवज्रा": "Indravajrā", +} + +def generate_prompt(): + topic = random.choice(topics) + meter = random.choice(meters) + return { + "prompt": f"'{topic}' विषय पर एक संस्कृत श्लोक लिखिए जो '{meter}' छन्द में हो।", + "topic": topic, + "meter": meter + } + +def openai_generate(prompt): + response = openai.chat.completions.create( # Fixed API call + model="gpt-4o-mini", + messages=[{"role": "user", "content": prompt}], + temperature=0.7, + max_tokens=150, + ) + return response.choices[0].message.content.strip() + +def openai_thinking_generate(prompt): + response = openai.chat.completions.create( # Fixed API call + model="o4-mini", + messages=[{"role": "user", "content": prompt}], + # temperature=0.4, + # max_tokens=150, + ) + return response.choices[0].message.content.strip() + +# Function to check if a given shloka is in the specified meter +def is_meter_valid(shloka, meter): + try: + # Transliterate the shloka to ITRANS for meter checking + shloka_itrans = transliterate(shloka, sanscript.DEVANAGARI, sanscript.ITRANS) + # Get the meter identifier + meter_identifier = identifier.MeterIdentifier() + # Check if the shloka matches the specified meter + return meter_identifier.is_meter(shloka_itrans, meter) + except Exception as e: + print(f"Error in checking meter: {e}") + return False + +def normalize_meter_name(devanagari_name): + # Remove spaces and nukta for robust matching + return METER_MAP.get(devanagari_name.strip().replace(" ", ""), devanagari_name) + + +def verify_meter(verse_lines, target_meter): + """Verify if verse matches target meter using chandas library""" + try: + pattern_lines = chandas.to_pattern_lines(verse_lines) + id_result = chandas.svat_identifier.IdentifyFromPatternLines(pattern_lines) + all_matches = [] + for key in ['exact', 'partial', 'accidental']: + if key in id_result: + all_matches.extend(list(id_result[key])) + # Normalize both target and predicted meter names + target_norm = normalize_meter_name(target_meter).lower().replace(' ', '').replace('्', '') + matched = False + matched_meter = '' + for meter in all_matches: + meter_norm = meter.lower().replace(' ', '').replace('्', '') + if target_norm in meter_norm: + matched = True + matched_meter = meter + break + if not matched and all_matches: + matched_meter = all_matches[0] + print(f"DEBUG: verse_lines={verse_lines}, all_matches={all_matches}, target_norm={target_norm}") + return matched, matched_meter, id_result + except Exception as e: + return False, '', str(e) + + +def get_syllables(verse: str): + """Get syllable breakdown""" + try: + return syllabize.get_syllables(verse) + except Exception as e: + return str(e) + +def robust_semantic_grading(prompt, verse, target_meter): + """Anti-reward hacking semantic evaluation""" + grading_prompt = f""" +Grade this Sanskrit verse on a scale of 1-10 for each criterion: + +Verse: {verse} +Expected Topic: {prompt.split("'")[1] if "'" in prompt else "N/A"} +Expected Meter: {target_meter} + +1. MEANING: Is this meaningful, grammatically correct Sanskrit? (1-10) +2. TOPIC_RELEVANCE: Does it genuinely address the given topic? (1-10) +3. AUTHENTICITY: Does this sound like traditional Sanskrit poetry vs. word salad? (1-10) +4. COMPLETENESS: Is this a complete thought/verse? (1-10) + +Format: MEANING:X TOPIC:X AUTHENTICITY:X COMPLETENESS:X +Then explain briefly in 2-3 sentences. +""" + # return openai_generate(grading_prompt) + return openai_thinking_generate(grading_prompt) + + +def generate_comprehensive_dataset(n=20): + """Generate dataset for evaluation""" + dataset = [] + for i in range(n): + topic = random.choice(topics) + meter = random.choice(meters) + + # Vary prompt complexity + if i % 3 == 0: + prompt = f"Write a Sanskrit verse about {topic} in {meter} meter with philosophical depth" + else: + prompt = f"'{topic}' विषय पर एक संस्कृत श्लोक लिखिए जो '{meter}' छन्द में हो।" + + dataset.append({ + "id": i, + "topic": topic, + "meter": meter, + "prompt": prompt, + "difficulty": "basic" if i < n//2 else "advanced" + }) + + return dataset + + +def extract_verse_only(text): + """ + Extract only the Sanskrit verse lines from the OpenAI output. + Removes instructions, explanations, and non-Devanagari lines. + Returns a list of padas (lines), split by danda. + """ + import re + lines = text.split('\n') + verse_lines = [] + for line in lines: + line = line.strip().replace(' ', '') + if not line: + continue + if re.search(r'(श्लोक|छन्द|यह|हो सकता|प्रस्तुत|का वर्णन|रचित|यहाँ|होता है|है:|हैं:|है।|हैं।)', line): + continue + if len(re.findall(r'[\u0900-\u097F]', line)) > 0.5 * len(line): + verse_lines.append(line) + # Join and split by danda to get padas + verse_text = ' '.join(verse_lines) + padas = [p.strip() for p in re.split(r'[।॥]', verse_text) if p.strip()] + return padas + + +def run_evaluation_pipeline(n=5): + """Run complete evaluation pipeline""" + results = [] + + for i in range(n): + print(f"\n--- Test {i+1}/{n} ---") + + prompt_data = generate_prompt() + print(f"PROMPT: {prompt_data['prompt']}") + + # Generate verse + verse_full = openai_generate(prompt_data["prompt"]) + print(f"VERSE: {verse_full}") + + # Extract only the verse + verse_padas = extract_verse_only(verse_full) + print(f"EXTRACTED VERSE: {verse_padas}") + + # Meter verification + meter_match, predicted_meter, meter_details = verify_meter(verse_padas, prompt_data["meter"]) + print(f"Meter Match: {meter_match}") + print(f"Predicted Meter: {predicted_meter}") + + # Semantic evaluation + verse_str = ' '.join(verse_padas) + semantic_score = robust_semantic_grading(prompt_data["prompt"], verse_str, prompt_data["meter"]) + print(f"Semantic Evaluation: {semantic_score}") + + # Syllable analysis + syllables = get_syllables(verse_str) + print(f"Syllables: {syllables}") + + # Store results + result = { + "id": i, + "prompt": prompt_data["prompt"], + "topic": prompt_data["topic"], + "target_meter": prompt_data["meter"], + "generated_verse": verse_str, + "meter_match": meter_match, + "predicted_meter": predicted_meter, + "meter_details": meter_details, + "semantic_evaluation": semantic_score, + "syllables": syllables + } + results.append(result) + + print("="*80) + + return results + +def save_results(results, filename="data/sanskrit_poetry_evaluation.json"): + """Save results to JSON file""" + + # Check if file exists and load existing data + if os.path.exists(filename): + with open(filename, 'r', encoding='utf-8') as f_read: + try: + existing = json.load(f_read) + except Exception: + existing = [] + else: + existing = [] + + # Append new results + combined = existing + results + + with open(filename, 'w', encoding='utf-8') as f: + json.dump(combined, f, ensure_ascii=False, indent=2) + print(f"Results appended and saved to {filename}") + +def analyze_results(results): + """Analyze evaluation results""" + total = len(results) + meter_matches = sum(1 for r in results if r['meter_match']) + + print(f"\n--- ANALYSIS ---") + print(f"Total tests: {total}") + print(f"Meter matches: {meter_matches}/{total} ({meter_matches/total*100:.1f}%)") + + # Analyze by meter type + meter_stats = {} + for result in results: + meter = result['target_meter'] + if meter not in meter_stats: + meter_stats[meter] = {'total': 0, 'matches': 0} + meter_stats[meter]['total'] += 1 + if result['meter_match']: + meter_stats[meter]['matches'] += 1 + + print("\nMeter-wise performance:") + for meter, stats in meter_stats.items(): + accuracy = stats['matches']/stats['total']*100 if stats['total'] > 0 else 0 + print(f" {meter}: {stats['matches']}/{stats['total']} ({accuracy:.1f}%)") + +# Main execution +if __name__ == "__main__": + print("Sanskrit Poetry Verifier - Starting Evaluation") + + dataset = generate_comprehensive_dataset(n=20) + print("Dataset generated for evaluation.") + print("Sample dataset:", dataset[:5]) # Print first 5 samples for verification + # Generate and save dataset + if os.path.exists("data/sanskrit_dataset.json"): + # Load existing data and append + with open("data/sanskrit_dataset.json", 'r', encoding='utf-8') as f_read: + existing_data = json.load(f_read) + combined_data = existing_data + dataset + else: + combined_data = dataset + + with open("data/sanskrit_dataset.json", 'w', encoding='utf-8') as f: + json.dump(combined_data, f, ensure_ascii=False, indent=2) + print("Dataset saved to data/sanskrit_dataset.json") + # Run evaluation pipeline + results = run_evaluation_pipeline(n=5) + + # Save and analyze results + save_results(results) + analyze_results(results) + + print("\nEvaluation complete!") + + diff --git a/tests/test_output.png b/tests/test_output.png new file mode 100644 index 0000000..90dcae9 Binary files /dev/null and b/tests/test_output.png differ