fingerprint_string

The fingerprint_string function generates a list of fingerprints from an input string. These fingerprints can be compared with fingerprints generated from a different string to ascertain whether any parts of the strings match.

This function is intended to process document-sized portions of text. It returns multiple fingerprints because the input is divided into shorter sections before the fingerprints are generated, so that you can find matches between two strings that are not identical but do contain common chunks of content.

Syntax

fingerprint_string( input )

Arguments

Argument Description
input (string) The input string to generate fingerprints from.

Returns

(strings). One or more strings.

Example

To map the return values to a table, surround the function call with braces. For example:

local fingerprints = { fingerprint_string("here is the input string") };