transl33t

0th

Percentile

transl33t text into leet slang (using stringr).

transl33t translates text into leet (or l33t) slang given a set of rules and the stringr package.

Usage
transl33t(txt, rules = l33t_rul35, in_case = "no", out_case = "no")
Arguments
txt

The text (character string) to translate.

rules

Rules which existing character in txt is to be replaced by which new character (as named character vector). Default: rules = l33t_rul35.

in_case

Change case of input string txt. Default: in_case = "no". Set to "lo" or "up" for lower or uppercase, respectively.

out_case

Change case of output string. Default: out_case = "no". Set to "lo" or "up" for lower or uppercase, respectively.

See Also

l33t_rul35 for default rules.

Other text functions: l33t_rul35

Aliases
  • transl33t
Examples
# NOT RUN {
# 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"))
transl33t(txt = "hello world", out_case = "up", 
          rules = c("e" = "3", "l" = "1", "o" = "0"))

# }
Documentation reproduced from package ds4psy, version 0.1.0, License: CC BY-SA 4.0

Community examples

Looks like there are no examples yet.