{"id":22886334,"url":"https://github.com/soenneker/soenneker.utils.strings.dicecoefficient","last_synced_at":"2026-06-10T13:00:33.066Z","repository":{"id":266541155,"uuid":"898638363","full_name":"soenneker/soenneker.utils.strings.dicecoefficient","owner":"soenneker","description":"A utility library for comparing strings via the Dice Coefficient algorithm","archived":false,"fork":false,"pushed_at":"2026-06-05T20:17:01.000Z","size":1046,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-05T20:23:46.421Z","etag":null,"topics":["coefficient","comparison","csharp","dice","dicecoefficient","dicecoefficientstringutil","distance","dotnet","sorensen","string","strings","util","utils"],"latest_commit_sha":null,"homepage":"https://soenneker.com","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/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"soenneker","thanks_dev":"soenneker"}},"created_at":"2024-12-04T18:49:45.000Z","updated_at":"2026-06-05T18:57:27.000Z","dependencies_parsed_at":"2025-12-31T17:02:25.827Z","dependency_job_id":null,"html_url":"https://github.com/soenneker/soenneker.utils.strings.dicecoefficient","commit_stats":null,"previous_names":["soenneker/soenneker.utils.strings.dicecoefficient"],"tags_count":120,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.utils.strings.dicecoefficient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.strings.dicecoefficient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.strings.dicecoefficient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.strings.dicecoefficient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.strings.dicecoefficient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.utils.strings.dicecoefficient/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.strings.dicecoefficient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34153483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["coefficient","comparison","csharp","dice","dicecoefficient","dicecoefficientstringutil","distance","dotnet","sorensen","string","strings","util","utils"],"created_at":"2024-12-13T20:17:48.858Z","updated_at":"2026-06-10T13:00:32.825Z","avatar_url":"https://github.com/soenneker.png","language":"C#","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.utils.strings.dicecoefficient.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.strings.dicecoefficient/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.utils.strings.dicecoefficient/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.utils.strings.dicecoefficient/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.utils.strings.dicecoefficient.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.strings.dicecoefficient/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.utils.strings.dicecoefficient/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.utils.strings.dicecoefficient/actions/workflows/codeql.yml)\n\n# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Utils.Strings.DiceCoefficient\n### A utility library for comparing strings via the Dice Coefficient algorithm\n\n## Installation\n\n```\ndotnet add package Soenneker.Utils.Strings.DiceCoefficient\n```\n\n## Why?\n\nThe Dice Coefficient is a powerful way to measure similarity between strings or other sequences. It's particularly effective for comparing text fragments, identifying duplicates, and matching approximate content. Here's why it stands out:\n\n### Pairwise Comparison:\nIt evaluates based on overlapping character pairs (bigrams), focusing on shared elements without considering their order.\n\n### Balanced by Size:\nIt considers both the number of matches and the total size of the compared strings, ensuring a fair similarity measure.\n\n### Suitable for Real-World Data:\nIts sensitivity to shared sequences makes it effective for noisy or partially matching data.\n\n### Fast and Scalable:\nIt's computationally efficient, making it applicable for large datasets or repeated comparisons.\n\n## Usage\n\n```csharp\nvar text1 = \"This is a test\";\nvar text2 = \"This is another test\";\n\ndouble result = DiceCoefficientStringUtil.CalculatePercentage(text1, text2); // 74.07\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.utils.strings.dicecoefficient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.utils.strings.dicecoefficient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.utils.strings.dicecoefficient/lists"}