Skip to content
/ arrr Public

Package to speak like a pirate in R

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

parmsam/arrr

Repository files navigation

arrr

The goal of arrr is to turn English into Pirate Speak for Arrr.

Installation

You can install the development version of arrr like so:

# install.packages("devtools")
devtools::install_github("parmsam/arrr")

Example

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"

Credit

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.

About

Package to speak like a pirate in R

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages