{"id":19824749,"url":"https://github.com/stephangeorg/trigram-similarity","last_synced_at":"2025-05-01T13:31:39.999Z","repository":{"id":50880914,"uuid":"368518631","full_name":"StephanGeorg/trigram-similarity","owner":"StephanGeorg","description":"Determining the similarity of alphanumeric text based on trigram matching.","archived":false,"fork":false,"pushed_at":"2021-10-25T11:09:32.000Z","size":237,"stargazers_count":14,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T01:01:48.934Z","etag":null,"topics":["ngrams","postgres","similarity","text-similarity","trigram","trigrams"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/StephanGeorg.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":"2021-05-18T12:19:44.000Z","updated_at":"2025-01-19T04:39:08.000Z","dependencies_parsed_at":"2022-08-28T05:21:28.112Z","dependency_job_id":null,"html_url":"https://github.com/StephanGeorg/trigram-similarity","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Ftrigram-similarity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Ftrigram-similarity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Ftrigram-similarity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanGeorg%2Ftrigram-similarity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephanGeorg","download_url":"https://codeload.github.com/StephanGeorg/trigram-similarity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251881709,"owners_count":21659146,"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":["ngrams","postgres","similarity","text-similarity","trigram","trigrams"],"created_at":"2024-11-12T11:05:46.061Z","updated_at":"2025-05-01T13:31:39.712Z","avatar_url":"https://github.com/StephanGeorg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trigram-similarity [![npm version](https://badge.fury.io/js/trigram-similarity.svg)](https://badge.fury.io/js/trigram-similarity)\n\nThe trigram-similarity module provides functions and operators for determining the similarity of alphanumeric text based on trigram matching.\nThis is the JavaScript implementation of Postgres [pg_trgm](https://www.postgresql.org/docs/13/pgtrgm.html) and returns a number that indicates how \nsimilar the two arguments are. \n\nThe range of the result is **zero** (indicating that the two strings are completely dissimilar) to **one** (indicating \nthat the two strings are identical). \n\nIf you want to learn more about the concept see [this post](https://stackoverflow.com/a/43158586/1410482).\n\n## Installation\n\n```\nnpm i trigram-similarity\n```\n\n## Usage\n\n```javascript\nimport trigramSimilarity from 'trigram-similarity';\n```\n\n```javascript\nconst similarity = trigramSimilarity('Chateau blanc', 'chateau cheval blanc');\n// 0.7368421052631579\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephangeorg%2Ftrigram-similarity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephangeorg%2Ftrigram-similarity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephangeorg%2Ftrigram-similarity/lists"}