Skip to main content

Module simhash

Module simhash 

Source
Expand description

com.writerslogic.text-fingerprint.1 — a durable 256-bit SimHash over the normalized surface stream, plus overlapping window fingerprints so an excerpt or truncated copy still matches. Embeds nothing in the text.

Value: 32-byte SimHash, hex-encoded. Two values identify the same content when their Hamming distance is at most 32 / 256 (12.5%).

Structs§

Fingerprint
A whole-document fingerprint plus overlapping window fingerprints.
Hash256
A 256-bit locality-sensitive hash.
WindowFp
A window fingerprint scoped by its (start, len) over the normalized stream.

Constants§

FP_BITS
Fingerprint width in bits.
MATCH_THRESHOLD
Whole-document / window match threshold: Hamming distance in bits.
WINDOW_CHARS
Window length in normalized characters.
WINDOW_STEP
Window step (50% overlap).