Skip to content

Instantly share code, notes, and snippets.

View max-alletsee's full-sized avatar

Max Alletsee max-alletsee

View GitHub Profile
@max-alletsee
max-alletsee / readruler_replacement.r
Created February 15, 2023 21:46
Replacing ReadRuler with an R function (as the site will shut down on May 1st)
# Replacement for Read Ruler
# which is going to be deactivated on May 1st, 2023
# make sure to set up an app and the authentication in Pocket's interface: https://github.com/CorrelAid/pocketapi#authentication
# parameters:
# words_per_minute: avg. reading speed in words per minute
# minute_groups: vector indicating which limits to use for the reading time groups
read_ruler <- function(words_per_minute = 500, minute_groups = c(1, 2, 5, 10, 15, 20, 30, 45, 60, 75)) {