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 given criteria, here's an evaluation of the two texts:
Text 1:
-
Descriptive language and imagery: Excellent. This text employs rich descriptive language and vivid imagery to paint a picture of the sunset and its surroundings. Phrases like "warm golden glow," "gentle breeze," and "rustled through the leaves" create a clear and engaging visual.
-
Sentence structure and variety: Good. The text uses a mix of longer and shorter sentences, adding variety and rhythm to the writing. The opening sentence is complex, while the second and third sentences are shorter and more concise.
-
Emotional impact and engagement: Strong. The imagery and descriptive language evoke a sense of peace, serenity, and contentment. The text effectively engages the reader's emotions by describing the uplifting experience of witnessing a beautiful sunset.
-
Grammar and punctuation: Excellent. The text is well-written with proper grammar and punctuation, making it easy to read and understand.
Text 2:
-
Descriptive language and imagery: Limited. This text lacks descriptive language and vivid imagery. It merely states basic observations without providing much detail or painting a clear picture.
-
Sentence structure and variety: Basic. The text consists of three short, simple sentences without much variation in structure or rhythm.
-
Emotional impact and engagement: Minimal. While the text conveys a positive emotion ("It made me happy"), it lacks depth and fails to engage the reader's emotions or create a lasting impression.
-
Grammar and punctuation: Adequate. The grammar and punctuation are correct, but the simplicity of the sentences doesn't allow for much complexity in this aspect.
Overall, Text 1 is significantly stronger than Text 2 across all the given criteria. It employs descriptive language, varied sentence structure, emotional impact, and proper grammar and punctuation to create an engaging and vivid depiction of a sunset scene. Text 2, while grammatically correct, lacks depth, descriptive power, and emotional resonance.
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)