After seeing the webpage titled "dyslexia" (http://geon.github.io/programming/2016/03/03/dsxyliea), by Victor Widell from 2012 I thought it was the coolest concept. Then I thought "why doesn't this exist for browsers. It'll mix things up and make the webpages look cool."
Jumble text to simulate reading with Dsxyliea
var Dsxyliea = require('Dsxyliea');
console.log(Dsxyliea("Sometimes I see things right to left and I know that's not right at all"));
//=> Sitemomes I see thnigs right to lfet and I know that\'s not right at all
console.log(Dsxyliea.scrambleWord("Wednesday"));
//=> Wedsenday
console.log(Dsxyliea("I'm not saying I invented the turtleneck, but I was the first person to realise its potential as a tactical garment.", {
minWordLength: 2,
scrambleChance: 80
}));
//=> I\'m not saying I invented the tureneltck, but I was the first perosn to realise its potential as a tactical ganemrt.
$ npm install Dsxyliea
Returns a dyslexified sentence
Type: string
Type: int
Default: 3
Minimum length a word has to be in order for it to be scrambled.
Type: int
Default: 100
Percentage chance out of 100
of a word being scrambled. 100
= will always be scrambled. 0
= never scrambled.
Returns a dyslexified word
Type: string
Type: int
Default: 3
Minimum length a word has to be in order for it to be scrambled.
Type: int
Default: 90
Percentage chance of a word being scrambled. 100
= will always be scrambled.