Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

active binding for fck #40

Open
petermeissner opened this issue Oct 24, 2018 · 4 comments
Open

active binding for fck #40

petermeissner opened this issue Oct 24, 2018 · 4 comments

Comments

@petermeissner
Copy link
Contributor

I propose to think about including an active binding in the package.

Tutorial

Example (to get the general idea):

makeActiveBinding("fck", function(){sample(swear_words$word, 1)}, globalenv())

fck
## [1] "zkurvysyn"

fck
## [1] "schwein"

fck
## [1] "hund"

fck
## [1] "simonaque"

fck
## [1] "bou"

fck
## [1] "douchebag"

fck
## [1] "pizdălău"
@pdrhlik
Copy link
Owner

pdrhlik commented Nov 8, 2018

@petermeissner, what do you think would be the benefits of including this in the package? Just to create a sampler or do you have any other ideas?

@petermeissner
Copy link
Contributor Author

Benefits: Just having some fun hitting fck into keyboard and getting a random swaer word back in return. You know, a smile might ease some frustration. ... ideally the swear words would use something like Sys.getlocale() to determine the correct language to use.

@pdrhlik
Copy link
Owner

pdrhlik commented Nov 8, 2018

Those are great benefits, I like it! Since it would be an active binding, it can also take a language parameter.

We should then turn this into an API on the web :-)

Would you like to take a look at this?

@petermeissner
Copy link
Contributor Author

Sure can, I will put together something within the next days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants