Skip to content

pslr 1.0.0

Choose a tag to compare

@bart-turczynski bart-turczynski released this 15 Jun 18:48
01e27f6

First public release of pslr, a focused, spec-complete Public Suffix List engine for R.

Highlights

  • Public-suffix (eTLD) and registrable-domain (eTLD+1) queries via the official prevailing-rule algorithm (exception > longest match > implicit default), compiled with cpp11 — no external system library.
  • ICANN / PRIVATE sections with section filtering applied before rule selection.
  • Unicode, ASCII, and A-label input, with ASCII or Unicode output, canonicalized through punycoder.
  • Bundled pinned snapshot (works fully offline) plus an explicit, HTTPS-only, validated psl_refresh() — the only network path.
  • Reproducibility metadata via psl_version() (list provenance + runtime normalization identifiers).
  • Canonical-host deduplication: a repeated host costs one normalization and one C++ call regardless of multiplicity.

API

public_suffix(), registrable_domain(), is_public_suffix(), suffix_extract(), public_suffix_rule(), psl_use(), psl_refresh(), psl_version(), psl_rules().

Quality

R CMD check --as-cran: 0 errors, 0 warnings, 1 expected note. All PRD §11 v1 acceptance gates pass (see docs/acceptance-v1.md). Performance gate: 100k-host ASCII query in ~0.94s (≤ 2s).

See vignette("introduction", package = "pslr") for the full tour.

🤖 Generated with Claude Code