String::KeyboardDistance

http://bgw.org/projects/perl/String-KeyboardDistance-1.00.tar.gz

Approximate [probabalistic] string matching with a keyboard distance
algorithm.  Similar in nature to String::Approx (which uses Wu-Manber
k-differences [edit distance]).

      use String::KeyboardDistance qw(:Functions);
      my $s1 = 'Apple';
      my $s2 = 'Wople';

      # compute a match probability
      my $pr = qwerty_keyboard_distance_match('Apple','Wople');

      # find the keyboard distance between two strings
      my $dst = qwerty_keyboard_distance('IBM','HAL');


Any advice on name/content/etc?


Thanks for your time,

Kyle R. Burton
KRBURTON



-- 
------------------------------------------------------------------------------
   Of course power tools and alcohol don't mix.  Everyone knows power tools 
   aren't soluble in alcohol...      -- Crazy Nigel
[EMAIL PROTECTED]                            http://www.voicenet.com/~mortis
------------------------------------------------------------------------------

Reply via email to