Member-only story
[100k+] What is the Text Limit in Medium
383 min readFeb 4, 2024
I am curious about the text limit here at Medium.
I used a Python script with a few words and generated a text in my local computer with 50k words and used this file as a base to see how many words I could save.
As a software engineer, we are sometimes curious to test the bounders of systems created by others.
The idea was to create the biggest text on Medium.
This is the code used in this experiment.
import random
# Define a dictionary of words and their weights, prioritizing words that might contribute to humor
funny_words = {
"The": 10, # Common article
"a": 8, # Common article
"little": 7, # Often used in humorous stories
"dog": 5, # Potential for funny antics
"went": 4, # Verb for actions
"for": 3, # Preposition for context
"walk": 2, # Activity for the dog
"and": 2, # Conjunction for connecting events
"saw": 2, # Verb for observation
"cat": 1, # Another potential source of humor
"up": 1, # Preposition for location
"tree": 1, # Setting for a scene
"meowed": 1, # Cat-specific action
"barked": 1, # Dog-specific action
"banana": 3, # Unexpected element for surprise
"slipped": 2, # Verb for physical comedy
"squeaky": 2, # Adjective for sound-based humor
}
# Define a function to generate a random word…