Giter Site home page Giter Site logo

praise's Introduction

praise

Praise Users

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Linux Build Status Windows Build status CRAN RStudio mirror downloads

Build friendly R packages that praise their users if they have done something good, or they just need it to feel better.

Installation

# install.packages("remotes")
remotes::install_github("rladies/praise")

Usage

library(praise)
praise()
#> [1] "You are super-excellent!"

You can supply a template, and praise() fills in random words of the specified part of speech:

praise("${EXCLAMATION}! You have done this ${adverb_manner}!")
#> [1] "AYE! You have done this enormously!"

Note that capitalization in the inserted words will be the same as in the template:

praise("${Exclamation}! ${EXCLAMATION}!-${EXCLAMATION}! This is just ${adjective}!")
#> [1] "Yowza! MMHM!-YAHOO! This is just praiseworthy!"

Currently supported parts of speech:

names(praise_parts)
#> [1] "adjective"     "adverb"        "adverb_manner" "created"      
#> [5] "creating"      "exclamation"   "rpackage"

License

MIT ยฉ Gabor Csardi, Sindre Sorhus

praise's People

Contributors

biyka avatar briandconnelly avatar burchill avatar byandell avatar cran-robot avatar devontighe avatar fredus14 avatar g-leith avatar gaborcsardi avatar janlauge avatar jennybc avatar josnarog avatar m-r-j avatar mine-cetinkaya-rundel avatar nwbort avatar oplaksa avatar orderlyquant avatar p0bs avatar patmolloy avatar paulinshek avatar petzi53 avatar renytysonmoore avatar revodavid avatar rhcarver avatar rob-tay avatar rpodcast avatar tabardar avatar talentlens avatar tareefk avatar thomaselove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

praise's Issues

Metaphors

Like

Your code is wonderland.
Your code is the bomb.

Etc.

Praise in Python

This project is so great but I did find a Python version. So I made one and used some words in this project. I am still following the MIT licence and add the link to this project.

The Python version is at https://github.com/funtion/praise.

Hope this is OK for you. Feel free to contact me if you have any worries or comments.

Thanks

Request to move "posh" from praise

Would it be possible to remove the word "posh" from the praise file https://github.com/rladies/praise/blob/ab66fe2b6080f0a2d55c4b3c395529a8271a4034/R/adjective.R as this isn't necessarily praise in British English? I checked this on Twitter as a poll as I wasn't sure if it was just me but it got quite a few votes saying no, it isn't a compliment. Although it can be used as praise as in, "don't you look posh!" it's never used in the constructed praise of "you are posh!".

Thanks for a great package - we are using this in our internal package and it's lovely to see who gets the next random praise (which is where I saw this phrase)!

Well we need praise even when things go wrong (esp. then)

How about some sympathy type words as well ?

Here is a use-case:

err = rnorm()

if(class(err == "try-error"))
 praise("We have a error in rnorm ${sympathy}.)
We have a error in rnorm don't worry.
We have a error in rnorm heavens are not gonna fall.
We have a error in rnorm but you are still alive.
We have a error in rnorm but there is ice-cream in the freezer.
We have a error in rnorm it's almost weekend.
pval <- my model

if(pval > 0.2)
 praise("Its not you, its the data; ${sympathy}.")

etc....

Add emoji praises

Like ๐Ÿ‘ and ๐ŸŽ‰. Need some way of detecting if they're supported in current terminal (if that's even possible)

Is 'callipygian' an appropriate adjective?

"Callipygian" basically means "having a nice ass." While I personally think it's funny, I'm not sure if it's something that should be in a general-purpose praising package.

I can imagine someone using the praise package in a classroom, for example. All it would take is for a student to look up the definition of "callipygian," and what was supposed to be humorous just became a sexual harassment case.

Perhaps it would go better in a dirtytalk package?

Basic praise function

So I thought for starters we could have something like:

praise <- function(template = "This is ${superb}!") {
  ## ...
}

and then praise just inserts a random adjective from superb into the template.

?

Typo in verbs.R

praise_parts$creating[16] ('preparin') should be 'preparing'.

Fixed in PR.

smileys

included in the parts of speech but not in the readme
:)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.