PDFCora AI for Web
    Preparing search index...

    Function locateQuote

    • Finds a model's quote in the source text and returns its character range there (ANS-3).

      Tolerates what text extraction legitimately changes — runs of whitespace, line breaks, and words hyphenated across a line — and nothing else. Wording, punctuation and case must match, because a quote that differs in those was not copied, and a highlight built from it would point at text that does not say what the answer claims.

      Parameters

      • source: string
      • quote: string

      Returns { end: number; start: number } | null