AI scrambled vs Mr. Mark's original scramble are both easy to read because I believe that the research conducted is true. Our minds look at the first and last letters of a word and peice the remaining letters together to read it.
Mr. Mark's
Aoccdrnig to rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoatnt tihng is taht the frist and lsat ltteers be at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.
AI:
Accodirng to racsrheech at Cgrdibmae Usnivirtey, it deosn't meattr in what order the lteerts in a word are, the only ipaomrtnt tnhig is that the fisrt and last lterets be at the right plcae. The rest can be a ttaol mess and you can sltil read it wihtout peblorm. This is busecae the hmaun mind does not read evrey ltteer by ieltsf, but the word as a wolhe.
Prompt:
(Inspired by https://www.sciencealert.com/why-your-brain-can-read-scrambled-words-according-to-science)
The following paragraph of scrambled text looks like nonsense at first glance, but can somehow be read with surprising ease.
Aoccdrnig to rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoatnt tihng is taht the frist and lsat ltteers be at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.
This effect, often playfully referred to as typoglycemia, is frequently shared online as a quirky insight into how our brains work.
But this viral claim is only part of the story. To understand why it works, we need to look at how the brain actually processes written language.
1. Write a program to take the above text and scramble it DIFFERENTLY, while still maintaining and observing the claim in this text (make sure you understand the constraint/rule).
What I understand
I understood the logic of len(word) <=3 since it does not need to scramble 3 letter words
I also understood how it used a while true function to keep scrambling the middle of the word until it doesn't match the original word
What I don't understand
I did not understand the import library: re
I don't understand re.match(r"(^\W*)(\w+)(\W*$)"
I searched it up and re stands for regular expressions.
Sracbmled wrods:
My scrambled and Mr. Mark's original scramble are both easy to read because I believe that the research conducted is true. Our minds look at the first and last letters of a word and peice the remaining letters together to read it.
Mr. Mark's
Aoccdrnig to rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoatnt tihng is taht the frist and lsat ltteers be at the rghit pclae. The rset can be a toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.
Mine:
Acrcdonig to rhasrceceh at Cdmragibe Uistirevny, it don'set mttear in waht odrer the leertts in a word are, the only iomnatrpt thing is that the fisrt and lsat leretts be at the rgiht plcae. The rset can be a taotl mess and you can stlil raed it whtouit pbrelom. Tihs is besauce the haumn mind deos not read erevy letter by iseltf, but the word as a wolhe.
Exercises 9.1-9.6
Activity-functions with parameters 2.2 through 5
Lab Activity -functions- ex. 1 through 5
Activity-nested functions 6-7 +8