Grading guru
Compare and evaluate the quality of written texts based on user-defined criteria and standards.
Text 1:
The sun was setting behind the mountains, casting a warm golden glow across the valley. The birds chirped their evening songs as the gentle breeze rustled through the leaves. It was a peaceful and serene moment, one that filled the heart with joy and contentment.
Text 2:
The sunset was pretty. The birds were singing and the wind was blowing. It made me happy.
Criteria:
1. Descriptive language and imagery
2. Sentence structure and variety
3. Emotional impact and engagement
4. Grammar and punctuation
Based on the provided criteria, here is my assessment:
Descriptive Language and Imagery Text 1 uses more vivid and evocative imagery, describing the "warm golden glow" of the sunset and personifying the birds as "chirping their evening songs." Text 2's description of the sunset as "pretty" is less detailed.
Sentence Structure and Variety
Text 1 has more complex and varied sentences using descriptive phrases. Text 2 uses simpler sentences of similar length and structure.
Emotional Impact and Engagement Text 1 draws the reader into the peaceful, joyful mood of the scene with descriptive words like "serene" and "contentment." Text 2 tells rather than shows the happiness felt, which is less engaging.
Grammar and Punctuation Both texts are grammatically correct with proper punctuation. Text 1 uses more complex punctuation with commas and a semi-colon. Text 2 has simpler punctuation.
In summary, Text 1 rates higher across most criteria with its rich visual imagery, varied sentence types, emotional resonance, and accurate grammar and punctuation. The simplicity of Text 2 suffers from lack of detail and personality. Overall, Text 1 is more descriptive, evocative and engaging based on the criteria.
API request
pythonimport anthropic client = anthropic.Anthropic( # defaults to os.environ.get("ANTHROPIC_API_KEY") api_key="my_api_key", ) message = client.messages.create( model="claude-3-opus-20240229", max_tokens=2000, temperature=0, messages=[{"role":"user","content":"Evaluate the following two texts based on the given criteria:\n\nText 1:\nThe sun was setting behind the mountains, casting a warm golden glow across the valley. The birds chirped their evening songs as the gentle breeze rustled through the leaves. It was a peaceful and serene moment, one that filled the heart with joy and contentment.\n\nText 2:\nThe sunset was pretty. The birds were singing and the wind was blowing. It made me happy.\n\nCriteria:\n1. Descriptive language and imagery\n2. Sentence structure and variety\n3. Emotional impact and engagement\n4. Grammar and punctuation"}] ) print(message.content)