Dyslexia sj
Jumble text to simulate reading with dyslexia
Usage
var dyslexia = ; console;//=> Sitemomes I see thnigs right to lfet and I know that\'s not right at all console;//=> Wedsenday console;//=> I\'m not saying I invented the tureneltck, but I was the first perosn to realise its potential as a tactical ganemrt.
Install
$ npm install dyslexia
API
dyslexia(sentence, options)
Returns a dyslexified sentence
sentence
Type: string
options
minWordLength
Type: int
Default: 3
Minimum length a word has to be in order for it to be scrambled.
scrambleChance
Type: int
Default: 100
Percentage chance out of 100
of a word being scrambled. 100
= will always be scrambled. 0
= never scrambled.
dyslexia.scrambleWord(word)
Returns a dyslexified word
word
Type: string
options
minWordLength
Type: int
Default: 3
Minimum length a word has to be in order for it to be scrambled.
scrambleChance
Type: int
Default: 90
Percentage chance of a word being scrambled. 100
= will always be scrambled.