Name : perl-String-KeyboardDistance
| |
Version : 1.01
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.6.1
| Date : 2023-07-20 18:33:25
|
Group : Development/Libraries/Perl
| Source RPM : perl-String-KeyboardDistance-1.01-lp155.6.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : String Comparison Algorithm
|
Description :
This module implmements a version of keyboard distance for fuzzy string matching. Keyboard distance is a measure of the physical distance between two keys on a keyboard. For example, \'g\' has a distance of 1 from the keys \'r\', \'t\', \'y\', \'f\', \'h\', \'v\', \'b\', and \'n\'. Immediate diagonals (like \'\'r, \'y\', \'v\', and \'n\') are considered to have a distance of 1 instead of 1.414 to help to prevent horizontal/vertical bias.
A match probability between two strings is computed from the total distances between corresponding characters divided by the length of the longer string multiplied by the maximum distance between the two furthest keys on the keyboard.
The functions in this module use a simple grid of keys. For the qwerty mapping, the grid is similar to the following:
| 0 1 2 3 4 5 6 7 8 9 10 11 12 13 --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0 | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | | 1 | | q | w | e | r | t | y | u | i | o | p | [ | ] | \\ | 2 | | a | s | d | f | g | h | j | k | l | ; | \' | | | 3 | | z | x | c | v | b | n | m | , | . | / | | | | --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
The grids for both qwerty and dvorak are based on PC style keyboards. Shifted characters have the same coordinates (a and A, 6 and ^).
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/15.5/noarch |