ai-answer-citations 0.1.1
ai-answer-citations reads the HTML or Markdown of an answer written by ChatGPT, Perplexity, Claude or Google AI Overviews and returns every absolute http(s) link it cites, in document order. Each citation is tagged with the form it was found in (HTML anchor, numbered marker such as [3], Markdown link, footnote definition or bare URL), its visible label and its numeric marker. canonical() strips fragments and click-tracking query keys (utm_*, fbclid, gclid, srsltid and similar) so that two citations of the same page compare equal, and tally() counts citations per host. It does not fetch anything, resolve relative links or guess a public-suffix list. No dependencies and no unsafe code.
| Tags | rust library ai citations text-processing |
|---|---|
| License | MITL |
| State | alpha |