Measures how well an abbreviation matches a string.