{"id":22006374,"url":"https://github.com/tom-wolfe/markov-typescript","last_synced_at":"2026-03-10T20:32:55.566Z","repository":{"id":57291398,"uuid":"95878691","full_name":"tom-wolfe/markov-typescript","owner":"tom-wolfe","description":"A Markov Chain library written in TypeScript, inspired by otac0n/markov and chriscore/MarkovSharp","archived":false,"fork":false,"pushed_at":"2023-06-22T00:46:44.000Z","size":271,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-05T18:45:00.075Z","etag":null,"topics":["generator","markov","markov-chain","markov-model","random","random-generation","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tom-wolfe.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":"2017-06-30T10:44:52.000Z","updated_at":"2025-03-11T13:45:56.000Z","dependencies_parsed_at":"2024-12-03T08:31:59.367Z","dependency_job_id":null,"html_url":"https://github.com/tom-wolfe/markov-typescript","commit_stats":null,"previous_names":["trwolfe13/markov-typescript"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tom-wolfe/markov-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-wolfe%2Fmarkov-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-wolfe%2Fmarkov-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-wolfe%2Fmarkov-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-wolfe%2Fmarkov-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tom-wolfe","download_url":"https://codeload.github.com/tom-wolfe/markov-typescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-wolfe%2Fmarkov-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30352877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["generator","markov","markov-chain","markov-model","random","random-generation","typescript"],"created_at":"2024-11-30T01:12:00.830Z","updated_at":"2026-03-10T20:32:55.529Z","avatar_url":"https://github.com/tom-wolfe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markov-typescript [![NPM version](https://badge.fury.io/js/markov-typescript.svg)](http://badge.fury.io/js/markov-typescript)\n\n[![Build Status](https://travis-ci.org/trwolfe13/markov-typescript.svg?branch=master)](https://travis-ci.org/trwolfe13/markov-typescript) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/78837c971b4a49f88c512feff12f4cd4)](https://www.codacy.com/app/trwolfe13/markov-typescript?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=trwolfe13/markov-typescript\u0026amp;utm_campaign=Badge_Grade) [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/78837c971b4a49f88c512feff12f4cd4)](https://www.codacy.com/app/trwolfe13/markov-typescript?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=trwolfe13/markov-typescript\u0026utm_campaign=Badge_Coverage)\n\nA Markov Chain library written in TypeScript, inspired by [otac0n/markov](https://www.github.com/otac0n/markov) and [chriscore/MarkovSharp](https://www.github.com/chriscore/MarkovSharp).\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Installing\n\n```batchfile\nnpm i --save markov-typescript\n```\n\n### Usage\n\nImport types from package:\n\n```typescript\nimport * as Markov from \"markov-typescript\";\n```\n\nCode sample\n\n```typescript\nconst chain = new MarkovChain\u003cstring\u003e(2);\nchain.learn(\"the quick brown fox jumped over the lazy dog\".split(\" \"));\nchain.learn(\"the quick brown dog jumped over the lazy cat\".split(\" \"));\nchain.learn(\"the quick brown cat jumped over the lazy fox\".split(\" \"));\nfor (let x = 0; x \u003c 10; x++) {\n    console.log(chain.walk().join(\" \"));\n}\n```\n\n## Running the Tests\n\n```batchfile\nnpm run test\n```\n\n## Building the project\n\n```batchfile\nnpm run build\n```\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/trwolfe13/markov-typescript/tags).\n\n## Authors\n\n* **Tom Wolfe** - *Initial work* - [trwolfe13](https://github.com/trwolfe13)\n\nSee also the list of [contributors](https://github.com/trwolfe13/markov-typescript/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n\n* Thanks to [otac0n](https://www.github.com/otac0n) for the original .NET codebase.\n* Thanks to [chriscore](https://www.github.com/chriscore) for the second reference and unit tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-wolfe%2Fmarkov-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftom-wolfe%2Fmarkov-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-wolfe%2Fmarkov-typescript/lists"}