transl33t | R Documentation |
transl33t
translates text into leet (or l33t) slang
given a set of rules.
transl33t(txt, rules = l33t_rul35, in_case = "no", out_case = "no")
txt |
The text (character string) to translate. |
rules |
Rules which existing character in |
in_case |
Change case of input string |
out_case |
Change case of output string.
Default: |
The current version of transl33t
only uses base R
commands,
rather than the stringr package.
A character vector.
l33t_rul35
for default rules used;
invert_rules
for inverting rules.
Other text objects and functions:
Umlaut
,
capitalize()
,
caseflip()
,
cclass
,
chars_to_text()
,
collapse_chars()
,
count_chars_words()
,
count_chars()
,
count_words()
,
invert_rules()
,
l33t_rul35
,
map_text_chars()
,
map_text_coord()
,
map_text_regex()
,
metachar
,
read_ascii()
,
text_to_chars()
,
text_to_sentences()
,
text_to_words()
,
words_to_text()
# Use defaults:
transl33t(txt = "hello world")
transl33t(txt = c(letters))
transl33t(txt = c(LETTERS))
# Specify rules:
transl33t(txt = "hello world",
rules = c("e" = "3", "l" = "1", "o" = "0"))
# Set input and output case:
transl33t(txt = "hello world", in_case = "up",
rules = c("e" = "3", "l" = "1", "o" = "0")) # e only capitalized
transl33t(txt = "hEllo world", in_case = "lo", out_case = "up",
rules = c("e" = "3", "l" = "1", "o" = "0")) # e transl33ted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.