tipo
Generate common typos for words.
API
getKeyboardMissTypos(String word) -> Array<String> typos
Returns a list of all words with one letter replaced by a neighbouring key.
Example:
var typos = tipo;console;// [// 'xat', 'vat', 'fat', 'dat', 'czt', 'cst', 'cwt',// 'cqt', 'car', 'caf', 'cag', 'cay', 'ca6', 'ca5'// ]
getMissingLetterTypos(String word) -> Array<String> typos
Returns a list of all words with a missing letter.
Example:
var typos = tipo;console;// [ 'at', 'ct', 'ca' ]
getDoubleLetterTypos(String word) -> Array<String> typos
Returns a list of words with a repeated letter.
Example:
var typos = tipo;console;// [ 'ccat', 'caat', 'catt' ]
getMixedLetterTypos(String word) -> Array<String> typos
Returns a list of words where two letters are swapped.
Example:
var typos = tipo;console;// [ 'act', 'cta' ]
getTypos(String word) -> Array<String> typos
Returns a combination of all typo's.
Example:
var typos = tipo;console;// [// 'xat', 'vat', 'fat', 'dat', 'czt', 'cst', 'cwt', 'cqt', 'car', 'caf',// 'cag', 'cay', 'ca6', 'ca5', 'at', 'ct', 'ca', 'ccat', 'caat', 'catt',// 'act', 'cta'// ]