0.1.1 • Published 11 years ago

typojs v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

TypoJS

Humans make a lot of typos. This software tries to behave as human as possible in this aspect.

Typo Generators

Standard

  • Keyboard Mishit – Typicak keyboard mishits based on QUERTY and QUERTZ keyboard layouts
  • Double Characters – Hittingg a character twice
  • Missing Characters – Nt hitting a character
  • Mixing Characters – Mixign up two neighbouring characters

Extended

  • Sausage Fingers - Typicakl second keys accidentially pressed when hitting between keys
  • Character Shift - Hittgin a character two positions too soon or too late
  • Character Flip - Mixgni two characters by two positions

Installation

npm install typojs

Methods

var typo = require("typojs");

typo(string, extended, callback(typos))

  • string is a String you want to get typos for
  • extended generates more, less common typos
  • callback is a callback method with all generated typos as first argument

Example

var typo = require("typojs");

typo("Whatever", true, function(typos){
	console.log(typos);
});

Dedication

This software is dedicated to my dear friend, the Imperator of Cucumbers, who makes a lot of typos.

License

TypoJS is Unlicensed Public Domain.

Flattr

Flattr this git repo