Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bltavares/scoresharp
Fuzzy string search
https://github.com/bltavares/scoresharp
Last synced: 28 days ago
JSON representation
Fuzzy string search
- Host: GitHub
- URL: https://github.com/bltavares/scoresharp
- Owner: bltavares
- Created: 2011-03-16T00:32:35.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-03-19T16:09:20.000Z (over 13 years ago)
- Last Synced: 2024-04-14T19:36:18.477Z (7 months ago)
- Language: C#
- Homepage:
- Size: 88.9 KB
- Stars: 12
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ScoreSharp
ScoreSharp is a fuzzy string search algorithm.
## What it does
* It tells how much a string matches another one
* It can sort your string arrays from the the best scored 'til the end
* It can't bring you a beer## How to use it
It's simple:
* Call it like:
> ScoreSharp.score("I want to find something here", "something") // => Shows the percentage score
>
> ScoreSharp.score("I want to use some fuzzy", "som fuzy", 0.12) // => Shows the percentage, even with some mistakes
>* Or use it to sort:
>
> string[] myList = new string[] { "Hi!","Hello","Hi and Hello", "Hello there!" };
> myList = ScoreSharp.sorter(myList, "Hello");
>## Credits
It's based on the [string_score](https://github.com/joshaven/string_score) from [Joshaven Potter](https://github.com/joshaven/).