Menu

Lorem Ipsum Generator: Filling a Client Mockup in Five Minutes Without Typing Fake Latin
πŸ“°

Lorem Ipsum Generator: Filling a Client Mockup in Five Minutes Without Typing Fake Latin

DEV Community: htmlΒ·meng mengΒ·12 days ago
#1rzFuNRt
#devto2#devto#dev#lorem#random
Long article (1038 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Tuesday, 4:40 pm. The client wants to see the redesigned marketing site by Wednesday morning. The real copy is still being argued over word by word in a Google Doc, so every heading and paragraph in my HTML prototype is empty. This is a normal Tuesday, and the fix is filler text: obviously-not-final copy in believable paragraph shapes, so stakeholders argue about spacing instead of wording. Hand-typing fake Latin into a dozen <p> tags is a waste of an evening, so here are the three ways I actually reach for, from most to least control.

Method 1: a small Python script

When I need lots of filler with a consistent shape, I keep a 20-line script around. Python 3.11.1, standard library only:

# fill.py β€” generate lorem ipsum paragraphs import random , sys

WORDS = ( "lorem ipsum dolor sit amet consectetur adipiscing elit sed do " "eiusmod tempor incididunt ut labore et dolore magna aliqua" ) . split ( )

rng = random . Random ( 20261119 ) # fixed seed: same output on every run

def sentence ( ) : words = rng .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.