@iandolan/astro-compliance
v0.1.1
Published
Flags law firm advertising copy that needs attorney review against bar advertising rules. Detection and triage only: it never certifies compliance.
Maintainers
Readme
@iandolan/astro-compliance
Triage for law firm advertising copy, plus FINRA 2210 and SEC Marketing Rule patterns. Pure functions over text, no Astro import, no filesystem, no network, so the same engine runs in CI, in a verification suite and in a review portal.
import { scan } from '@iandolan/astro-compliance';
const report = scan({ html, state: 'FL' });It flags results claims, testimonial and endorsement issues, missing disclaimers, and identification requirements, with state-specific rules where states differ (FL, NY, NJ and others ship in states.js).
What this is not: it does not certify compliance and it never reports a page as compliant, because no static scan can. It finds copy that a licensed attorney should look at, and it tells them why. The firm owns the compliance decision. Say that to the client in writing before you ship a site that makes any results claim.
Part of the Dolan SEO Suite, WordPress SEO plugin functionality rebuilt for static Astro sites. Plain ESM, zero dependencies.
MIT © Ian Dolan
