{"id":19512494,"url":"https://github.com/vmchale/edit-distance","last_synced_at":"2026-03-19T10:13:52.084Z","repository":{"id":128760939,"uuid":"140882381","full_name":"vmchale/edit-distance","owner":"vmchale","description":"Levenshtein edit distance, packaged for ATS","archived":false,"fork":false,"pushed_at":"2022-04-11T14:41:05.000Z","size":53,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T17:54:57.673Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ATS","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/vmchale.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-13T18:48:58.000Z","updated_at":"2024-12-30T03:59:50.000Z","dependencies_parsed_at":"2023-04-08T02:46:38.137Z","dependency_job_id":null,"html_url":"https://github.com/vmchale/edit-distance","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/vmchale/edit-distance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fedit-distance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fedit-distance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fedit-distance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fedit-distance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmchale","download_url":"https://codeload.github.com/vmchale/edit-distance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fedit-distance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29571888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T06:19:27.422Z","status":"ssl_error","status_checked_at":"2026-02-18T06:18:44.348Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-10T23:26:22.274Z","updated_at":"2026-02-18T07:02:51.040Z","avatar_url":"https://github.com/vmchale.png","language":"ATS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# edit-distance\n\n[![Build Status](https://travis-ci.org/vmchale/edit-distance.svg?branch=master)](https://travis-ci.org/vmchale/edit-distance)\n\nThe Levenshtein edit distance, packaged for ATS. This implementation is written\nin safe ATS and is performant.\n\n## Building\n\n### For Hacking\n\nTo run the test suite, first install\n[atspkg](http://hackage.haskell.org/package/ats-pkg). The simplest way to do so\nis to run\n\n```\ncurl -sSl https://raw.githubusercontent.com/vmchale/atspkg/master/bash/install.sh | sh -s\n```\n\nThereafter, you can run\n\n```\natspkg test\n```\n\nto hack on the library.\n\n### For Use\n\nYou can use the `edit-distance` package in `atspkg` projects with something like\nthe example in\n[polyglot](https://github.com/vmchale/polyglot/blob/master/atspkg.dhall#L73).\n\nCurrently, there is no NPM release for this package; however, there is nothing\nstopping you from using the tarballs or git repository to use this package\nconventionally using NPM.\n\n## Benchmarks\n\n| Language | Library | Unicode | Time |\n| -------- | ------- | ------- | ---- |\n| ATS | `edit-distance` |  | 67.61 ns |\n| Rust | `levenshtein-rs` | X | 137.4 ns\n| Rust | `strsim` | X | 140.4 ns\n| Haskell | `edit-distance` | X | 413.5 ns |\n| C | n/a |  | 93.70 ns |\n\nNote that these benchmarks use `libgc` for ATS and C and thus ATS and\nC functions may be faster if you use manual memory management.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Fedit-distance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmchale%2Fedit-distance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Fedit-distance/lists"}