-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(MATCH): adds close match sort functionality (#27)
* feat: Adds close match sort functionality If the words fall below acronym for matching, it ranks how close the match string is to the test string. It will return a number between 1 and 2 where 2 is a perfet match and 1 is no match. It does this by dividing 1 by the difference of the spread of the characters in the match string within the test string and the length of the match string and subtracting that quotient from 1. It then takes that differneces and subtracts it from 2. * Updates README, contributors, comments, and places close match logic within the match ranking * Fixes rank/number comments * fixes contributors and comments * Corrects rankings.MATCH comments to rankings.MATCHES * fixes the close sort and the ignore diacritics test * fixes long comment on line 159 * fixes comment on close match rank * cleans up directory and resets dependencies * updates the README for close match examples * corrects the README close match example
- Loading branch information
1 parent
9accc43
commit c228f5a
Showing
5 changed files
with
168 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.