Giter Site home page Giter Site logo

boomtown.fuzzysharp's Introduction

FuzzySharp

FuzzyWuzzy C# (DotNet) Implementation

Fuzzy string matching for C# based on FuzzyWuzzy Python algorithm. The algorithm uses Levenshtein distance to calculate similarity between strings.

This project is a port of the JavaWuzzy implementation because of the language similarities.

The FuzzySharp library is a .netstandard 1.0 project. To run the unit tests you will need .netcore 2.0.

Available on nuget.org

Benefits of this project include

  • No Dependencies!
  • Can be used in full .Net (>4.5) or .Net Core (>1.0) applications!

Examples

Simple Ratio

 Fuzzy.Ratio("hello world", "hello word"); 
 95

Partial Ratio

 Fuzzy.PartialRatio("my new test", "these are my new test strings");
 100

Simple Ratio With String Options

 Fuzzy.Ratio("HelLO woRld!!", "hello word", StringOptions.CaseSensitive, StringOptions.PreserveNonAlphaNumeric);
 52

Token Sort Ratio

 Fuzzy.TokenSortPartialRatio("order words out of", "words out of order");
 100
 Fuzzy.TokenSortRatio("order words out of", "word out of order");
 97

Token Set Ratio

 Fuzzy.TokenSetPartialRatio("fuzzy was a bear", "fuzzy fuzzy was a bear");
 100
 Fuzzy.TokenSetRatio("fuzzy was a bear", "fuzzy fuzzy was a bear");
 100

Weighted Ratio

 Fuzzy.WeightedRatio("ratios are awesomething things", "ratios solve things and problems");
 65

Credits

boomtown.fuzzysharp's People

Contributors

ericcoleman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.