It looks like it's just doing random anagrams of all the letters in the word, except the first and last.
From what I know of dyslexia, wouldn't it be more appropriate to replace each letter with a weighted random selection from groupings of similar glyphs?
a e g 6 9 @
b d p q P
c n u C G U ( )
f t k x H K X +
h y F T Y
i ! : ;
j r J L 7 [ ]
l I 1 / | \
m w E 3 { }
o D O Q 0
s z S Z 2 5 ? $
v A V ^ 4 < >
B R 8 &
M N W
. , ' `
* " ~
# =
%
_ -
There are also Unicode glyphs that resemble English letters turned upside down or sideways.
Some psychology researchers can really mess with your brain by aiming a camera at your eye and changing the letters of a text during a saccade. When your eyes are moving to a new fixation point, you become temporarily blind to changes in what you are looking at for a fraction of a second.
Obviously, that can't be done in a webpage demonstration without some fool giving control of their camera to your javascript. Then you would have to calibrate the gaze detection. And your program would have to run fast enough to update during a saccade.
Of course. I'm not trying to downplay the challenge of dyslexia. Quite the opposite, in fact. I'm expressing doubt that this demonstration at all depicts the struggle of reading with dyslexia.
Yeah, the first letter is a biggie. I realized that after I left my last comment. I bet if the first letter was able to transpose, things would get way more difficult.