PHP Classes

Typo: Generate variants of words based on typing errors

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 433 All time: 6,295 This week: 673Up
Version License PHP version Categories
typos 1.0GNU General Publi...3.0Text processing


This class can be used to generate variants of words based on common typing errors.

It takes a given word a generates variants of that word by replacing its letters with others that are usually near the letter position on a QWERTY keyboard.

The class returns an array with all the generated word variants.

Innovation Award
PHP Programming Innovation award nominee
July 2008
Number 7

Prize: One book of choice by Packt
When users want to access certain sites, sometimes they make spelling mistakes while typing the domain names.

This is a clever class that can generate variants of a domain name by changing some letters with others that are physically near in a keyboard.

Manuel Lemos
Picture of Daniel Calvi
Name: Daniel Calvi <contact>
Classes: 1 package by
Country: Argentina Argentina
Age: ???
All time rank: 344445 in Argentina Argentina
Week rank: 245 Up2 in Argentina Argentina Up
Innovation award
Innovation award
Nominee: 1x

  • Typos_sshot.jpg
  Files folder image Files  
File Role Description
Plain text file todo Data todo list
HTML file example.php Example example usage for the class typo
Plain text file typos.class.php Class Class for calculating typos

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,295
This week:673Up