{"id":16718794,"url":"https://github.com/planeshifter/anagrams","last_synced_at":"2025-08-23T03:33:06.802Z","repository":{"id":26109714,"uuid":"29554007","full_name":"Planeshifter/anagrams","owner":"Planeshifter","description":"find anagrams and similar sounding words","archived":false,"fork":false,"pushed_at":"2015-02-25T19:29:55.000Z","size":244,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-20T03:21:54.745Z","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/Planeshifter.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":"2015-01-20T21:50:26.000Z","updated_at":"2016-11-08T02:09:04.000Z","dependencies_parsed_at":"2022-07-27T06:16:20.501Z","dependency_job_id":null,"html_url":"https://github.com/Planeshifter/anagrams","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Planeshifter/anagrams","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Planeshifter%2Fanagrams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Planeshifter%2Fanagrams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Planeshifter%2Fanagrams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Planeshifter%2Fanagrams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Planeshifter","download_url":"https://codeload.github.com/Planeshifter/anagrams/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Planeshifter%2Fanagrams/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271737421,"owners_count":24812112,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-12T21:38:34.188Z","updated_at":"2025-08-23T03:33:06.762Z","avatar_url":"https://github.com/Planeshifter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anagrams\nfind anagrams and similar sounding words\n\n## Run the example\n\n```js\nnode example.js\n```\n\n## Unit Tests\n\nRun tests via the command `npm test`\n\n## API\n\n### findAnagrams(words)\nFor the input array of `words`, words which are anagrams are grouped together. The function returns an array of arrays, with each inner array corresponding to a set of anagrams.\n\nExample:\n```js\nlib.findAnagrams( [stop, post, mundane, unarmed, manured,\nunnamed]);\n/*\n  returns  \n  [\n    [ 'mundane', 'unnamed' ],\n    [ 'unarmed', 'manured' ],\n    [ 'stop', 'post' ]\n  ]\n*/\n```\n\n### findSimilarSounding(words)\nSimilar to `findAnagrams`, but groups together words via the *Double Metaphone*\n\n### loadWordsFromFile(filename)\nLoads synchronously a \\*.txt file from disk which is assumed to have a single word on each line. The function returns an array of all the words.\n\n### findAnagramsOf(word, anagrams)\nTo solve the related problem of finding all anagrams of a given word, the\nfunction findAnagram is implemented. The second parameter `anagrams` expects\nan output of `findAnagrams()`, which is used in searching for anagrams of the\nsupplied `word`.\n\nExample:\n```js\nvar words = lib.loadWordsFromFile(\"./data/big-wordlist.txt\");\nvar anagrams = lib.findAnagrams(word);\nlib.findAnagramsOf(\"spot\", anagrams);\n// returns [ 'stop', 'pots', 'tops', 'post', 'spot' ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaneshifter%2Fanagrams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplaneshifter%2Fanagrams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplaneshifter%2Fanagrams/lists"}