Skip to content

Converts l33t sp33k to normal language using a dictionary.

Notifications You must be signed in to change notification settings

LiamPerson/del33t

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

del33t

Convert l33t word into arrays of all possible translations of said l33t word


Built for use in NodeJS although you can modify

module.exports = l33tify;

to

export default l33tify;

to use this in any JavaScript application.

Example usage:

const del33t = require('./del33t'); // Require the .js file
const strangeWord = "h0vs*";
console.log("Normal...ish words:", del33t(strangeWord));
/*
Normal...ish words: [
  'hovsi', 'hovsu',
  'hovsa', 'hovse',
  'hovsi', 'housi',
  'housu', 'hovsu',
  'housa', 'hovsa',
  'hovse', 'house' <-- found it
]
*/

Modifying for your own use

Letters are converted based on the dictionary. The dictionary is found in del33t.js and you can add or remove letter translations by adding or removing to the d1ct10n4ry object.

Default Dictionary

const d1ct10n4ry = {
    a: ["4", "@", '*'],
    b: ['8'],
    e: ['3', '*'],
    f: ['ph'],
    g: ['6'],
    i: ["1", "!", "l", "|", '*'],
    l: ["1", "!", "|"],
    o: ['0', '*'],
    s: ['5', 'z', '$'],
    t: ['7', '+'],
    u: ['v', '4', '*'],
}

About

Converts l33t sp33k to normal language using a dictionary.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published