{"id":22835216,"url":"https://github.com/jchristn/stringsimilarity","last_synced_at":"2025-08-10T20:31:28.387Z","repository":{"id":76080559,"uuid":"110046710","full_name":"jchristn/StringSimilarity","owner":"jchristn","description":"Simple US-English String Similarity Score Calculator","archived":false,"fork":false,"pushed_at":"2021-11-12T18:14:32.000Z","size":574,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-10T02:14:10.278Z","etag":null,"topics":["comparison","nuget","score","scoring","similar","similarity","string"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jchristn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["jchristn"],"custom":["https://paypal.me/joelchristner"]}},"created_at":"2017-11-09T00:29:36.000Z","updated_at":"2024-05-09T20:10:31.000Z","dependencies_parsed_at":"2023-06-08T11:00:13.461Z","dependency_job_id":null,"html_url":"https://github.com/jchristn/StringSimilarity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchristn%2FStringSimilarity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchristn%2FStringSimilarity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchristn%2FStringSimilarity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchristn%2FStringSimilarity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jchristn","download_url":"https://codeload.github.com/jchristn/StringSimilarity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229458453,"owners_count":18076152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comparison","nuget","score","scoring","similar","similarity","string"],"created_at":"2024-12-12T22:08:43.381Z","updated_at":"2024-12-12T22:08:44.174Z","avatar_url":"https://github.com/jchristn.png","language":"C#","funding_links":["https://github.com/sponsors/jchristn","https://paypal.me/joelchristner"],"categories":[],"sub_categories":[],"readme":"﻿# StringSimilarity\n\nThis class library calculates a score from 0 to 1 based on the similarity of two supplied strings.\n\nEffective v1.0.1, StringSimilarity is now targeted to both .NET Core 2.0 and .NET Framework 4.5.2.\n\n[![][nuget-img]][nuget]\n\n[nuget]:     https://www.nuget.org/packages/StringSimilarity\n[nuget-img]: https://badge.fury.io/nu/Object.svg\n \n## Help or Feedback\n\nFirst things first - do you need help or have feedback?  Contact me at joel dot christner at gmail dot com or file an issue here!\n\n## New in v1.0.1\n\n- Retarget to .NET Core 2.0 and .NET Framework 4.5.2\n \n## Score Computation\n\n- If one string is null/empty and the other is not, the score is 0\n- If both strings are null/empty, the score is 1\n- Otherwise, a length score is multiplied by a character match score, where length score = (min / max) and character match score is (num matching / total)\n\n## Example\n\nRefer to the Test project for an example.\n```csharp\nusing Similarity;\n\nConsole.Write(\"String 1 : \");\nstring str1 = Console.ReadLine(); \nConsole.Write(\"String 2 : \");\nstring str2 = Console.ReadLine();\nConsole.WriteLine(\"Score    : \" + StringSimilarity.Calculate(str1, str2));\n```\n \n## Version History\n\nNotes from previous versions (starting with v1.0.0) will be moved here.\nv1.0.0\n- First release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchristn%2Fstringsimilarity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjchristn%2Fstringsimilarity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchristn%2Fstringsimilarity/lists"}