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
Here's the evaluation of the two texts based on the given criteria:
Text 1:
-
Descriptive language and imagery: The text uses vivid descriptive language and imagery, such as "warm golden glow," "birds chirped their evening songs," and "gentle breeze rustled through the leaves." These descriptions help create a clear picture in the reader's mind. (Score: 5/5)
-
Sentence structure and variety: The text consists of three sentences with varying lengths and structures. It starts with a longer, complex sentence followed by two shorter, simpler sentences. This variety in sentence structure adds a nice flow to the text. (Score: 4/5)
-
Emotional impact and engagement: The text evokes a sense of peace, joy, and contentment. It engages the reader by appealing to their senses and emotions, making them feel as if they are experiencing the moment themselves. (Score: 5/5)
-
Grammar and punctuation: The text demonstrates proper grammar and punctuation, with no visible errors. (Score: 5/5)
Text 2:
-
Descriptive language and imagery: The text lacks detailed descriptive language and imagery. While it mentions the sunset, birds, and wind, it does not provide any further descriptions to help the reader visualize the scene. (Score: 2/5)
-
Sentence structure and variety: The text consists of three short, simple sentences with little variety in structure. This makes the text feel choppy and less engaging. (Score: 2/5)
-
Emotional impact and engagement: While the text states that the scene made the narrator happy, it lacks the necessary details and depth to fully engage the reader emotionally. (Score: 2/5)
-
Grammar and punctuation: The text demonstrates proper grammar and punctuation, with no visible errors. (Score: 5/5)
In conclusion, Text 1 outperforms Text 2 in terms of descriptive language, sentence structure, and emotional impact. Both texts maintain proper grammar and punctuation. Text 1 effectively engages the reader and creates a vivid, emotionally resonant experience, while Text 2 lacks the necessary detail and variety to achieve the same level of engagement.
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)