{"id":21890764,"url":"https://github.com/chantastic/compare-words","last_synced_at":"2025-04-15T13:39:12.514Z","repository":{"id":57204566,"uuid":"448394809","full_name":"chantastic/compare-words","owner":"chantastic","description":"A wordle guess-validation functions","archived":false,"fork":false,"pushed_at":"2022-01-18T18:19:46.000Z","size":186,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T20:36:40.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/chantastic.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":"2022-01-15T21:27:42.000Z","updated_at":"2024-09-26T12:25:58.000Z","dependencies_parsed_at":"2022-09-18T00:51:29.394Z","dependency_job_id":null,"html_url":"https://github.com/chantastic/compare-words","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fcompare-words","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fcompare-words/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fcompare-words/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fcompare-words/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chantastic","download_url":"https://codeload.github.com/chantastic/compare-words/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249081516,"owners_count":21209712,"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":[],"created_at":"2024-11-28T12:16:43.444Z","updated_at":"2025-04-15T13:39:12.493Z","avatar_url":"https://github.com/chantastic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Word Match\n\n`compare-words` is a small utility for assessing how much one word matches another.\n\nIt's inspired by [https://www.powerlanguage.co.uk/wordle/](Wordle).\n\n## Overview\n\n- Takes two words of any size\n- The second is compared to the first\n- Compares words for precise and non-precise letter matches\n- Returns an array of tuples revealing the second word letters and their precision against the first\n\n## Example\n\n```js\nimport assess from \"compare-words\";\n\nassess(\"begal\", \"beans\");\n```\n\n**result**\n\n```js\n[\n  [\"b\", \"correct\"],\n  [\"e\", \"correct\"],\n  [\"a\", \"present\"],\n  [\"n\", \"absent\"],\n  [\"s\", \"absent\"],\n];\n```\n\n## Install\n\n```bash\nnpm i compare-words\n```\n\n## Resources\n\n- [source](./index.mjs)\n- [tests](./test.mjs)\n- [implementation nates](./notes.md)\n\nCopyright @ Michael Chan\n[Licensed MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2Fcompare-words","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchantastic%2Fcompare-words","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2Fcompare-words/lists"}