Stochastic Consistency Test
Tests an AI's randomness and creativity
The Prompt
Generate 5 jokes. How many are unique?
Model Responses
Here are five jokes for you:
-
Why did the scarecrow win an award?
Because he was outstanding in his field! -
Why don’t skeletons fight each other?
They don’t have the guts! -
Why did the math book look sad?
It had too many problems. -
Why don’t eggs tell jokes?
Because they might crack up! -
What did one ocean say to the other ocean?
Nothing, they just waved.
Now, let's check how many of these jokes are unique. I'll analyze them for similarity.
from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity
List of jokes
jokes = [ "Why did the scarecrow win an award? Because he was outstanding in his field!", "Why don’t skeletons fight each other? They don’t have the guts!", "Why did the math book look sad? It had too many problems.", "Why don’t eggs tell jokes? Because they might crack up!", "What did one ocean say to the other ocean? Nothing, they just waved." ]
Vectorize the jokes
vectorizer = TfidfVectorizer().fit_transform(jokes) similarity_matrix = cosine_similarity(vectorizer)
Count unique jokes (jokes with low similarity to others)
unique_jokes = set() threshold = 0.5 # Define similarity threshold
for i in range(len(jokes)): is_unique = True for j in range(len(jokes)): if i != j and similarity_matrix[i, j] > threshold: is_unique = False break if is_unique: unique_jokes.add(jokes[i])
Count unique jokes
num_unique_jokes = len(unique_jokes) num_unique_jokes
All 5 jokes are unique! None of them are too similar to each other. 🎉
Let me help you write code to generate jokes and check their uniqueness. Here's a Python script that does this:
import random
# List of sample jokes
jokes = [
"Why don't scientists trust atoms? Because they make up everything!",
"What do you call a bear with no teeth? A gummy bear!",
"Why did the scarecrow win an award? He was outstanding in his field!",
"What do you call a fake noodle? An impasta!",
"Why did the cookie go to the doctor? Because it was feeling crumbly!",
"What do you call a can opener that doesn't work? A can't opener!",
"Why don't eggs tell jokes? They'd crack up!",
]
# Generate 5 random jokes
selected_jokes = random.sample(jokes, 5)
# Print the jokes and count unique ones
print("Generated jokes:")
for i, joke in enumerate(selected_jokes, 1):
print(f"{i}. {joke}")
unique_jokes = len(set(selected_jokes))
print(f"\nNumber of unique jokes: {unique_jokes}")
When you run this code, it will:
- Create a list of sample jokes
- Randomly select 5 jokes from the list
- Print each selected joke
- Count and display how many unique jokes were selected
Since we're using random.sample()
, which selects items without replacement, all 5 jokes will always be unique (unique_jokes will always be 5). If you wanted to allow for potential duplicates, you could use random.choices()
instead.
Would you like me to modify the code to allow for potential duplicates in the selection?
5 Jokes
-
Why don't scientists trust atoms? Because they make up everything!
-
I told my wife she was drawing her eyebrows too high. She looked surprised.
-
What do you call a fake noodle? An impasta!
-
Why don't scientists trust atoms? Because they make up everything!
-
How does a penguin build its house? Igloos it together!
All 5 jokes are unique, except for jokes #1 and #4 which are identical. So there are 4 unique jokes in this list.
Here are 5 jokes for you:
-
Why don't scientists trust atoms? Because they make up everything!
-
I told my wife she was drawing her eyebrows too high. She looked surprised.
-
How does a penguin build its house? Igloos it together!
-
What do you call a fake noodle? An impasta!
-
Why did the scarecrow win an award? Because he was outstanding in his field!
All 5 jokes are unique.
Here are 5 jokes:
-
Why don't skeletons fight each other?
They don’t have the guts. -
What do you call fake spaghetti?
An impasta. -
Why did the scarecrow win an award?
Because he was outstanding in his field. -
How do you organize a space party?
You planet. -
Why did the bicycle fall over?
Because it was two-tired.
All 5 jokes are unique (no duplicates among them). However, they are not original—they are well-known puns and wordplay commonly found in joke collections.
Okay, here are 5 jokes:
-
Why don't scientists trust atoms? Because they make up everything!
-
Parallel lines have so much in common. It's a shame they'll never meet.
-
Why did the scarecrow win an award? Because he was outstanding in his field!
-
I used to hate facial hair... then it grew on me.
-
Why don't scientists trust atoms? Because they make up everything!
How many are unique?
There are 4 unique jokes. Joke #1 and Joke #5 are the same. The other three are distinct.
Here are 5 jokes:
- Why don't scientists trust atoms? Because they make up everything!
- What do you call a lazy kangaroo? A pouch potato!
- Why did the bicycle fall over? Because it was two tired!
- I told my wife she was drawing her eyebrows too high. She looked surprised.
- What's the best thing about Switzerland? I don't know, but the flag is a big plus.
All 5 jokes are unique. They each have a different setup, punchline, and rely on different types of humor (wordplay, puns, observational). They are not variations of the same joke.
Here are five jokes:
-
Why did the scarecrow get promoted?
Because he was outstanding in his field. -
I told my friend she drew her eyebrows too high.
She looked surprised. -
What do you call cheese that isn’t yours?
Nacho cheese. -
Why don’t skeletons fight each other?
Because they don’t have the guts. -
Did you hear about the restaurant on the moon?
Great food, but absolutely no atmosphere.
How many are unique?
All five jokes listed here are distinct and thus count as five unique jokes.
-
Why did the math book look sad?
Because it had too many problems. -
What do you call an alligator in a vest?
An investigator. -
What did the zero say to the eight?
Nice belt! -
Why did the bicycle fall over?
Because it was two-tired. -
How does a penguin build its house?
Igloos it together.
Each of these five jokes is unique, so there are 5 unique jokes.
Here are five jokes for you:
- Why don’t skeletons fight each other? Because they don’t have the guts!
- What has 4 legs and 1 arm? A pitbull coming back from the park!
- Why don’t skeletons fight each other? They’re too busy rattling around!
- What do you call a bear with no teeth? A gummy bear!
- Why did the tomato turn red? Because it saw the salad dressing!
Now, let’s check for uniqueness. Joke 1 and Joke 3 both start with "Why don’t skeletons fight each other?" but have different punchlines ("don’t have the guts" vs. "too busy rattling around"). They’re technically distinct due to the different resolutions, though they share a setup. The other three jokes (2, 4, and 5) have completely unique setups and punchlines.
So, all five jokes are unique in terms of their full content, even if 1 and 3 share a premise. Final count: 5 unique jokes.
To answer the query, I will first generate 5 jokes and then determine how many of them are unique. Here are the jokes:
- Why don't scientists trust atoms? Because they make up everything.
- What do you call a fake noodle? An impasta.
- Why did the scarecrow win an award? Because he was outstanding in his field.
- How do you organize a space party? You planet.
- Why don't skeletons fight each other? They don't have the guts.
Now, I need to assess how many of these jokes are unique, meaning how many are distinct from one another with no exact duplicates. Let's examine them:
- Joke 1: Talks about scientists and atoms with the punchline "they make up everything."
- Joke 2: Involves a fake noodle with the punchline "an impasta" (a play on "imposter").
- Joke 3: Features a scarecrow and an award with the punchline "outstanding in his field."
- Joke 4: Centers on a space party with the punchline "you planet" (a play on "plan it").
- Joke 5: Discusses skeletons not fighting with the punchline "they don't have the guts."
Each joke has a different setup and punchline:
- Joke 1 is about science and a pun on "make up."
- Joke 2 is a food-related pun.
- Joke 3 uses a scarecrow and a play on "outstanding."
- Joke 4 is space-themed with a pun on "planet."
- Joke 5 involves skeletons and a pun on "guts."
Since all five jokes differ in their subject matter and wordplay, there are no exact duplicates. Therefore, the number of unique jokes is 5.
Answer: 5