{"id":16096395,"url":"https://github.com/robopuff/go-dice","last_synced_at":"2025-08-04T12:05:27.342Z","repository":{"id":57505947,"uuid":"164681503","full_name":"robopuff/go-dice","owner":"robopuff","description":"An implementation of Dice algorithm to compare strings","archived":false,"fork":false,"pushed_at":"2019-01-09T13:43:56.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T06:42:30.212Z","etag":null,"topics":["dice-similarity-coefficient","golang","golang-library"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robopuff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-08T15:45:46.000Z","updated_at":"2020-11-17T12:31:56.000Z","dependencies_parsed_at":"2022-09-13T01:20:51.634Z","dependency_job_id":null,"html_url":"https://github.com/robopuff/go-dice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robopuff/go-dice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robopuff%2Fgo-dice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robopuff%2Fgo-dice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robopuff%2Fgo-dice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robopuff%2Fgo-dice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robopuff","download_url":"https://codeload.github.com/robopuff/go-dice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robopuff%2Fgo-dice/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268692438,"owners_count":24291409,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"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":["dice-similarity-coefficient","golang","golang-library"],"created_at":"2024-10-09T17:13:57.217Z","updated_at":"2025-08-04T12:05:27.285Z","avatar_url":"https://github.com/robopuff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/robopuff/go-dice?status.svg)](https://godoc.org/github.com/robopuff/go-dice)\n\n# go-dice\n\nAn implementation of [Dice coefficient](http://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient) algorithm in Go.\nCode is based on [aceakash/string-similarity](https://github.com/aceakash/string-similarity)\n\n## Installation\n\n```bash\n$ go get github.com/robopuff/go-dice\n```\n\n## Documentation\n\nhttps://godoc.org/github.com/robopuff/go-dice\n\n## Usage examples\n\n```go\nsimilarity := dice.ComparePair(\"healed\", \"sealed\")\n// `similarity` will be equal to 0.8\n```\n\n```go\nbestIndex, results := dice.FindBest(\"healed\", []string{\"mailed\", \"edward\", \"sealed\", \"theatre\"})\n// Since highest score will have \"sealed\" `bestIndex` will be equal to `2`\n// and results will provide an array of ordered float32 similarity scores\n```\n\n## License\n\nThis software is licensed under the BSD-3-Clause License. [View the license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobopuff%2Fgo-dice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobopuff%2Fgo-dice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobopuff%2Fgo-dice/lists"}