leetspeak
leetspeak is a english-to-leetspeak translation library with support for random, non-random, and custom leetspeak translation. Translations are based on wikipedia/leet#orthography. Using this library is as simple as:
use Level;
let text = "sphinx of black quartz, judge my vow";
// Random leetspeak translation
let random_translation = translate;
// Non-random leetspeak translation, levels 1-3
let nonrandom_translation = translate_with_level;
assert_eq!;
//Custom leetspeak translation (case-insensitive). Characters not in the hashmap are not changed.
let mapping = from;
let custom_translation = translate_custom;
assert_eq!;
Contributing
This is an open-source project and contributors are welcome! The repository is at github.com: leetspeak and development plans/progress are documented at github.com: leetspeak/projects. If this library is missing a feature you would like, feel free to start a discussion or develop a feature and create a pull request.