{"id":13509388,"url":"https://github.com/lexmag/simetric","last_synced_at":"2025-05-05T22:37:33.713Z","repository":{"id":23611261,"uuid":"26980430","full_name":"lexmag/simetric","owner":"lexmag","description":"String similarity metrics for Elixir","archived":false,"fork":false,"pushed_at":"2021-04-26T15:16:21.000Z","size":12,"stargazers_count":62,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T23:26:46.039Z","etag":null,"topics":["distance","elixir","jaro-winkler","levenshtein","similarity"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lexmag.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":"2014-11-21T22:23:24.000Z","updated_at":"2025-03-30T06:40:12.000Z","dependencies_parsed_at":"2022-07-10T09:46:08.017Z","dependency_job_id":null,"html_url":"https://github.com/lexmag/simetric","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexmag%2Fsimetric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexmag%2Fsimetric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexmag%2Fsimetric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexmag%2Fsimetric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexmag","download_url":"https://codeload.github.com/lexmag/simetric/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252588382,"owners_count":21772670,"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":["distance","elixir","jaro-winkler","levenshtein","similarity"],"created_at":"2024-08-01T02:01:07.083Z","updated_at":"2025-05-05T22:37:33.693Z","avatar_url":"https://github.com/lexmag.png","language":"Elixir","funding_links":[],"categories":["Text and Numbers"],"sub_categories":[],"readme":"# Simetric\n\n[![Build Status](https://travis-ci.org/lexmag/simetric.svg \"Build Status\")](https://travis-ci.org/lexmag/simetric)\n[![Hex Version](https://img.shields.io/hexpm/v/simetric.svg \"Hex Version\")](https://hex.pm/packages/simetric)\n\nSimetric provides facilities to perform approximate string matching and measurement of string similarity/distance.\nThe library is focusing on speed and completeness.\n\n### Available metrics\n\n* [Jaro](http://en.wikipedia.org/wiki/Jaro-Winkler_distance) (has been moved to [Elixir's standard library](https://hexdocs.pm/elixir/String.html#jaro_distance/2))\n* [Jaro–Winkler](http://en.wikipedia.org/wiki/Jaro-Winkler_distance)\n* [Levenshtein](http://en.wikipedia.org/wiki/Levenshtein_distance)\n\n## Installation\n\nAdd Simetric as a dependency to your `mix.exs` file:\n\n```elixir\ndefp deps do\n  [{:simetric, \"~\u003e 0.2.0\"}]\nend\n```\n\nThen, run `mix deps.get` in your shell to fetch the new dependency.\n\n## Usage\n\n__Jaro–Winkler:__\n```elixir\nSimetric.Jaro.Winkler.compare(\"dwayne\", \"duane\") # =\u003e 0.8400000000000001\nSimetric.Jaro.Winkler.compare(\"hardin\", \"martinez\") # =\u003e 0.7222222222222222\nSimetric.Jaro.Winkler.compare(\"same\", \"same\") # =\u003e 1.0\n```\n\n__Levenshtein:__\n```elixir\nSimetric.Levenshtein.compare(\"gumbo\", \"gambol\") # =\u003e 2\nSimetric.Levenshtein.compare(\"kitten\", \"sitting\") # =\u003e 3\n```\n\n## License\n\nSimetric is released under [the ISC license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexmag%2Fsimetric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexmag%2Fsimetric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexmag%2Fsimetric/lists"}