year <- sub("-.*", "", meta$Date)
note <- sprintf("{R} package version %s", meta$Version)

bibentry(
  bibtype = "Misc",
  title = "{ngram}: Fast n-Gram Tokenization",
  author = c(as.person("Drew Schmidt"),
                     as.person("Christian Heckendorf")),
  year = year,
  note = note,
  url = "https://cran.r-project.org/package=ngram",
  textVersion = NULL,
  key = "ngrampkg"
)

bibentry(
  bibtype = "Manual",
  title = "Guide to the ngram Package: Fast n-gram Tokenization",
  author = c(as.person("Drew Schmidt"),
                     as.person("Christian Heckendorf")),
  year = year,
  note = "{R} Vignette",
  url = "https://cran.r-project.org/package=ngram",
  textVersion = NULL,
  key = "ngramguide"
)
