{"id":13442531,"url":"https://github.com/vindarel/fuzzy-match","last_synced_at":"2026-01-19T06:01:03.387Z","repository":{"id":67525187,"uuid":"292615046","full_name":"vindarel/fuzzy-match","owner":"vindarel","description":"Fuzzy match candidates from an input string.","archived":false,"fork":false,"pushed_at":"2020-12-21T22:31:44.000Z","size":10,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T22:29:01.366Z","etag":null,"topics":["common-lisp","fuzzy-match-candidates"],"latest_commit_sha":null,"homepage":"","language":"Common Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vindarel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-09-03T15:54:06.000Z","updated_at":"2025-02-18T09:04:38.000Z","dependencies_parsed_at":"2023-02-20T20:30:17.170Z","dependency_job_id":null,"html_url":"https://github.com/vindarel/fuzzy-match","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vindarel/fuzzy-match","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Ffuzzy-match","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Ffuzzy-match/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Ffuzzy-match/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Ffuzzy-match/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vindarel","download_url":"https://codeload.github.com/vindarel/fuzzy-match/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vindarel%2Ffuzzy-match/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"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":["common-lisp","fuzzy-match-candidates"],"created_at":"2024-07-31T03:01:46.891Z","updated_at":"2026-01-19T06:01:03.380Z","avatar_url":"https://github.com/vindarel.png","language":"Common Lisp","funding_links":[],"categories":["Common Lisp"],"sub_categories":[],"readme":"# Fuzzy-match\n\nFuzzy match candidates from an input string.\n\nOn Quicklisp and [Ultralisp](https://ultralisp.org/).\n\n~~~lisp\nCL-USER\u003e (fuzzy-match \"hl\" '(\"foo\" \"bar\" \"hello\" \"hey!\"))\n(\"hello\" \"hey!\" \"foo\" \"bar\")\n~~~\n\n~~~lisp\nCL-USER\u003e (fuzzy-match \"zp\" '(\"foo\" \"zepellin\" \"bar: zep\"))\n(\"zepellin\" \"bar: zep\" \"foo\")\n~~~\n\nTo give a list of non-string candidates, use the `:key` argument, a\nfunction that will be `funcall`-ed on each candidate to get its string\nrepresentation.\n\n```lisp\n  (defstruct candidate\n    (string)\n    (stuff))\n\n  (defparameter *objects*\n    (list (make-candidate :string \"project-switch\")\n          (make-candidate :string \"bananas\")))\n\n  (fuzzy-match \"proj ws\" *objects* :key #'candidate-string)\n```\n\nThe parameters are hand-picked for the results to feel natural. A\ncandidate that starts with the input substring should appear\nfirst. For example, we use the Damerau-Levenshtein distance thanks to\nthe `MK-STRING-METRICS` library under the hood, but we don't obey to\nits result.\n\n# CHANGELOG\n\n- 0.2 \u003c2025-08-08\u003e:\n  - use a `:key` parameter to work with compound objects instead of `:suggestions-display`.\n  - use a score threshold\n  - regression: with no adaptative threshold so far, a short input string might not get results. E.g. searching for \"bf\" might not return \"buffer-switch\".\n    - or in `(fuzzy-match \"[\" '(\"http://[1:0:0:2::3:0.]/\" \"foo\") :threshold 0.01)` we need a low threshold.\n- 0.1: initial\n\n\n# Nyxt origin\n\nThis code was extracted from the Nyxt browser. Original authors: Ambrevar, Vindarel.\n\n## Other projects using this\n\nWe know of:\n\n- [cl-autocorrect](https://github.com/moneylobster/cl-autocorrect)\n- Lem editor (soon©)\n\n# Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindarel%2Ffuzzy-match","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvindarel%2Ffuzzy-match","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvindarel%2Ffuzzy-match/lists"}