Word Scrambler
Scramble the middle letters of words while keeping first and last letters intact β the Cambridge reading effect.
How to Use
Paste or type any text to scramble it. The tool randomly rearranges the middle letters of each word while keeping the first and last letters in place, making the text still readable.
About this tool
The Word Scrambler demonstrates a fascinating quirk of human reading: even when the middle letters of a word are jumbled, our brains can still recognize it if the first and last letters remain in place. This phenomenon is sometimes called the Cambridge effect, and it reveals how our visual processing prioritizes letter position over exact sequence. This tool scrambles the inner letters of your words while preserving their outer boundaries, creating an interesting test of reading fluency.
To use the Word Scrambler, simply paste or type your text into the input field and choose whether to scramble or unscramble. The tool processes each word individually, leaving single letters and punctuation untouched, then displays the result instantly. Try reading scrambled text at different speedsβyou may be surprised at how quickly your brain adapts to the jumbled middle letters.
Frequently Asked Questions
Code Implementation
import re
import random
def shuffle_middle(word: str) -> str:
if len(word) <= 3:
return word
middle = list(word[1:-1])
random.shuffle(middle)
return word[0] + ''.join(middle) + word[-1]
def scramble_text(text: str) -> str:
return re.sub(r"[a-zA-Z]+('s)?", lambda m: shuffle_middle(m.group()), text)
text = "The quick brown fox jumps over the lazy dog"
scrambled = scramble_text(text)
print("Original:", text)
print("Scrambled:", scrambled)
print()
print("Note: First and last letters are preserved.")
print("This is the Cambridge reading effect.")Comments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.