{"id":17044785,"url":"https://github.com/keredson/wordle_solver","last_synced_at":"2025-10-12T09:16:29.719Z","repository":{"id":72908009,"uuid":"452885049","full_name":"keredson/wordle_solver","owner":"keredson","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-28T00:26:44.000Z","size":540,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T02:29:30.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keredson.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":"2022-01-27T23:59:25.000Z","updated_at":"2022-01-28T00:12:24.000Z","dependencies_parsed_at":"2023-05-26T01:00:09.651Z","dependency_job_id":null,"html_url":"https://github.com/keredson/wordle_solver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keredson/wordle_solver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keredson%2Fwordle_solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keredson%2Fwordle_solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keredson%2Fwordle_solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keredson%2Fwordle_solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keredson","download_url":"https://codeload.github.com/keredson/wordle_solver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keredson%2Fwordle_solver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010965,"owners_count":26084837,"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-10-12T02:00:06.719Z","response_time":53,"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-14T09:35:30.453Z","updated_at":"2025-10-12T09:16:29.704Z","avatar_url":"https://github.com/keredson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wordle Solver\n=============\n\nAbout\n-----\nI finally looked at Wordle today.  I was never very good at anagrams (nor ever thought games based on \nthem were particularly interesting), but thought a character frequency algorithm would probably do \npretty well.\n\nI didn't look at their source code beforehand.  Hence I used an ngram model I had lying around from a few years\nback (to build the corpus of 5 letter words).  There are differences between it and the official one, which is\nwhy `suggest(n=4)` returns multiple options.\n\nExample Run\n-----------\n\n```python\n$ python\nPython 3.9.7 (default, Sep 10 2021, 14:59:43) \n[GCC 11.2.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e from wordle_solver import WordleSolver\n\u003e\u003e\u003e w = WordleSolver()\nloaded 12915 words with char freqs: [('a', 7316), ('b', 1684), ('c', 1981), ('d', 2274), ('e', 6084), ('f', 937), ('g', 1613), ('h', 1983), ('i', 4399), ('j', 472), ('k', 1558), ('l', 3366), ('m', 2104), ('n', 3749), ('o', 4426), ('p', 1630), ('q', 147), ('r', 4300), ('s', 4996), ('t', 3064), ('u', 2522), ('v', 753), ('w', 766), ('x', 276), ('y', 1638), ('z', 537)]\n\u003e\u003e\u003e w.suggest()\n[('arose', 27122), ('aeros', 27122), ('seria', 27095), ('riesa', 27095)]\n\u003e\u003e\u003e w.gray('arse')\n\u003e\u003e\u003e w.yellow('o',3)\n\u003e\u003e\u003e w.suggest()\n[('tonic', 689), ('ntico', 689), ('nicot', 689), ('conti', 689)]\n\u003e\u003e\u003e w.gray('ic')\n\u003e\u003e\u003e w.yellow('t',1)\n\u003e\u003e\u003e w.green('o',2)\n\u003e\u003e\u003e w.yellow('n',3)\n\u003e\u003e\u003e w.suggest()\n[('mount', 4), ('jotun', 4), ('fount', 4)]\n\u003e\u003e\u003e \n```\n\n![image](https://user-images.githubusercontent.com/2049665/151464974-d0a8863d-1fdb-4771-8e76-129dfe036139.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeredson%2Fwordle_solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeredson%2Fwordle_solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeredson%2Fwordle_solver/lists"}