Generates a lightweight content signature by hashing sampled character regions from one or more text strings. The signature provides a fast approximation for detecting identical or differing textual content without comparing complete strings.
Value
Character vector of operational signatures that summarises the observed textual representation of a resource.
Details
The function is intended for observational workflows where textual representations have already been extracted from digital resources, such as HTML pages, OCR output, PDFs, or office documents.
The signature is constructed by hashing sampled character regions:
short texts: complete text;
medium texts: beginning and end;
long texts: beginning, middle and end.
The resulting signature is intended as a fast observational aid:
identical signatures suggest identical textual content;
differing signatures indicate differing textual content;
collisions are possible but unlikely in operational use.
Missing values return NA_character_.
Empty strings return "empty".
Unlike quick_signature(), this function operates on extracted text
rather than binary file content. Consequently, different file formats
(for example DOCX, PDF and HTML) containing the same textual content
may produce identical text signatures while retaining different file
signatures.
The function provides lightweight observational evidence that may support duplicate detection, content reconciliation, semantic stabilisation, or later contextual reconstruction.
