The goal of arrr is to turn English into Pirate Speak for Arrr.
You can install the development version of arrr like so:
# install.packages("devtools")
devtools::install_github("parmsam/arrr")
This is a basic example which shows you how to solve a common problem:
library(arrr)
## basic example code
# Let's see what Pirate Gump would say?
translate("Mama always said life was like a box of chocolates. You never know what you\'re gonna get.")
#> [1] "Mama always said life be like a barrel o' chocolates. Ye nary know what you be gonna get."
# How about Pirate Michael?
translate(
"Annie, are you ok?
So, Annie are you ok?
Are you ok, Annie?"
)
#> [1] "Annie, be ye ok? So, Annie be ye ok? Be ye ok, Annie?"
# Okay, last one. What about Pirate Drake?
translate(
"You used to call me on my
You used to, you used to
Yeah
You used to call me on my cell phone"
)
#> [1] "Ye used t' call me on me ye used t', ye used t' aye ye used t' call me on me cell phone"
Hex icon created using the hexmake app from ColinFay.
Pirate icons created by Freepik - Flaticon
Inspired by and data from pirate-speak in JS and arrr in Python.