{"id":15789522,"url":"https://github.com/seishun/mark","last_synced_at":"2025-06-20T17:38:11.306Z","repository":{"id":5068390,"uuid":"6230280","full_name":"seishun/mark","owner":"seishun","description":"A basic Markov chain implementation for text generation for Node.js","archived":false,"fork":false,"pushed_at":"2012-10-16T21:33:33.000Z","size":109,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T20:03:57.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"pluginaweek/state_machine","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seishun.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}},"created_at":"2012-10-15T16:32:38.000Z","updated_at":"2024-06-27T01:16:41.000Z","dependencies_parsed_at":"2022-08-29T16:42:09.831Z","dependency_job_id":null,"html_url":"https://github.com/seishun/mark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seishun/mark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seishun%2Fmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seishun%2Fmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seishun%2Fmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seishun%2Fmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seishun","download_url":"https://codeload.github.com/seishun/mark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seishun%2Fmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259521514,"owners_count":22870446,"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-10-04T22:02:03.577Z","updated_at":"2025-06-12T20:04:03.318Z","avatar_url":"https://github.com/seishun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mark\n====\n\nA basic Markov chain implementation for text generation for Node.js\n\nMarkov.py port (part of the Talho project https://github.com/eurekafag/Talho/blob/master/modules/markov.py)\n\n## How to use\n\n\n\n```js\nvar markov = new (require('mark'))('mongodb://user:password@alex.mongohq.com:port/db');\n```\n\n\nAdding words:\n\n```js\nmarkov.addWords(string, callback);\n\nmarkov.addWords('The quick brown fox jumps over the lazy dog', function(result){\n  //callback function for error handling\n});\n```\nYou must feed it full sentences for best results.\n\nBuilding chain:\n\n```js\nmarkov.buildChain(length, callback);\n\nmarkov.buildChain(10, function(result){\n  //callback function that will display or handle result\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseishun%2Fmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseishun%2Fmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseishun%2Fmark/lists"}