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

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

citEntry(
  entry = "Manual",
  title = "Guide to the ngram Package: Fast n-gram Tokenization",
  author = personList(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"
)
