Calculate the similarity percentage between two strings.
Twine\Str::similarity( string $string ) : float
$string | The string to compare against |
$string = new Twine\Str('john pinkerton');
$string->similarity('jim ponkerten'); // Returns 66.666666666667