Class: Amatch::Jaro

Inherits:
Object
  • Object
show all
Defined in:
ext/amatch_ext.c,
ext/amatch_ext.c

Overview

This class computes the Jaro metric for two strings. The Jaro metric computes the similarity between 0 (no match) and 1 (exact match) by looking for matching and transposed characters.

Instance Method Summary collapse

Constructor Details

#initializeObject

Instance Method Details

#ignore_caseObject

call-seq: ignore_case -> true/false

Returns whether case is ignored when computing matching characters.

#ignore_case=Object

call-seq: ignore_case=(true/false)

Sets whether case is ignored when computing matching characters.

#matchObject Also known as: similar

#patternObject

call-seq: pattern -> pattern string

Returns the current pattern string of this Amatch::Sellers instance.

#pattern=Object

call-seq: pattern=(pattern)

Sets the current pattern string of this Amatch::Sellers instance to pattern.