{"id":17685555,"url":"https://github.com/adamisntdead/markov-chains","last_synced_at":"2025-08-16T08:08:33.659Z","repository":{"id":143990984,"uuid":"134182797","full_name":"adamisntdead/markov-chains","owner":"adamisntdead","description":"Markov Chains Implemented in Rust","archived":false,"fork":false,"pushed_at":"2018-05-20T20:07:51.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T09:53:51.479Z","etag":null,"topics":["markov","markov-chain","markov-text","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/adamisntdead.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-20T20:07:34.000Z","updated_at":"2023-09-08T17:40:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8f0fe73-5bd1-4809-a5af-a6255bae06f1","html_url":"https://github.com/adamisntdead/markov-chains","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adamisntdead/markov-chains","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamisntdead%2Fmarkov-chains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamisntdead%2Fmarkov-chains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamisntdead%2Fmarkov-chains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamisntdead%2Fmarkov-chains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamisntdead","download_url":"https://codeload.github.com/adamisntdead/markov-chains/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamisntdead%2Fmarkov-chains/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270684384,"owners_count":24627783,"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-16T02:00:11.002Z","response_time":91,"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":["markov","markov-chain","markov-text","rust"],"created_at":"2024-10-24T10:28:15.184Z","updated_at":"2025-08-16T08:08:33.637Z","avatar_url":"https://github.com/adamisntdead.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markov Chains\n\n\u003e An implementation of text based [markov chains](https://en.wikipedia.org/wiki/Markov_chain) in Rust. \n\nThe main use of this is for the generation of text, and thus is not expandable for other uses. If you do need a more geeric implementation / library, please see the [markov](https://crates.io/crates/markov) or [markov-chain](https://crates.io/crates/markov-chain) crates.\n\n## Example\n\n```rust\nfn main() {\n    let tokens = include_str!(\"../input.txt\")\n        .split_whitespace()\n        .map(|x| String::from(x))\n        .collect();\n\n    let cache = create_cache(tokens);\n    let text = generate_text(cache, 500);\n    println!(\"{}\", text);\n}\n```\n\nPlease note that this library is not available as a crate as of yet, due to the non generic nature of the library.\n\nThis may or may not be changed in the near future.\n\n## License\n\nMIT.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamisntdead%2Fmarkov-chains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamisntdead%2Fmarkov-chains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamisntdead%2Fmarkov-chains/lists"}