Giter Site home page Giter Site logo

leetspeak's Introduction

leetspeak

Years ago I started working on Garot Bot 2.0. Well, that project was enormous and never completed. However, as part of the project I wanted to have a LeetSpeak to English translator. This multi-threaded Python 3 converter/translator deciphers your messages using probability of word usage taken from the Project Gutenberg from all the possibilities it can generate. I have yet to see any translator that works in as many cases as this one.

Using

  1. Install python3.
  2. Run: python3 leet.py --demo to test or python3 leet.py [-e] "Your Message" to decode (by default) or encode a message.

Notes

  • It will run slower the first time while it generates the .pickle files.
  • This program decodes better than encodes since encoding just randomly choses characters, which does not look at all like normal leet.
  • The program ignores all punctuation. How does it know if that period is part of the leet or is a period?
  • I'm not fond of the coding style I used back then. This was one of my first major Python projects.

Example

Some things work.

 [garrett leetspeak]$ python3 leet.py -e "How are you doing today mother?"
 )-(ω\_1_/ /\|2ə \j()/_/ [)¤ai/|/gee -l-¤l]/-\-/ /|/|{}-l-[-]€[z?

 [garrett leetspeak]$ python3 leet.py ")-(ω\_1_/ /\|2ə \j()/_/ [)¤ai/|/gee -l-¤l]/-\-/ /|/|{}-l-[-]€[z?"
 how are you doing today mother

And some things don't. Note that Github was not a common word a few hundred years ago.

 [garrett leetspeak]$ python3 leet.py -e "This is a test for Github."
 '][']-[eyeš 3y35 /-\ +e$-1- |=0® (_+l†}-{yuu|3.

 [garrett leetspeak]$ python3 leet.py "'][']-[eyeš 3y35 /-\ +e$-1- |=0® (_+l†}-{yuu|3."
 this is a tehiubhig for

License

The words lists are from /usr/share/dict, which I believe is from aspell, under GPL2. I would say where stopwords_en.txt came from, but I think that's a combination of many sites and my own thoughts. As for slang, it's from No Slang, and I don't see a license. The gutenberg_small.txt file is obviously from Gutenberg; although, I have since lost the script to generated it (hence why I just provide the file here). The phonetics.py file is from AdvaS Advanced Search and is GPL. All of my code, as always, is under the ISC license.

leetspeak's People

Contributors

floft avatar

Watchers

James Cloos avatar Anuvab Mohanty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.