Skip to content

Overview / compareStrings

compareStrings()

compareStrings(input, prediction, criteria?): Promise<number>

Compares two strings using an evaluator.

Parameters

ParameterTypeDescription
inputstringThe input string to compare.
predictionstringThe prediction string to use for comparison.
criteria?CriteriaLikeOptional criteria for the evaluator.

Returns

Promise<number>

The score of the comparison. 0 means the strings are identical.

Released under the GPL-3.0 License.