{"id":20631047,"url":"https://github.com/gfarrell/markov-writer-py","last_synced_at":"2026-05-19T09:31:22.089Z","repository":{"id":40986009,"uuid":"145046948","full_name":"gfarrell/markov-writer-py","owner":"gfarrell","description":"Text generator based on markov chains, implemented in python (just for fun)","archived":false,"fork":false,"pushed_at":"2022-12-08T02:46:37.000Z","size":14,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T09:06:30.545Z","etag":null,"topics":["flask","markov-chain","python","shakespeare-plays","text-generation"],"latest_commit_sha":null,"homepage":"http://shakespeare.gtf.io","language":"Python","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/gfarrell.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":"2018-08-16T22:57:15.000Z","updated_at":"2020-02-03T16:00:26.000Z","dependencies_parsed_at":"2023-01-24T06:21:00.493Z","dependency_job_id":null,"html_url":"https://github.com/gfarrell/markov-writer-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gfarrell/markov-writer-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfarrell%2Fmarkov-writer-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfarrell%2Fmarkov-writer-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfarrell%2Fmarkov-writer-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfarrell%2Fmarkov-writer-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfarrell","download_url":"https://codeload.github.com/gfarrell/markov-writer-py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfarrell%2Fmarkov-writer-py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261518985,"owners_count":23171227,"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":["flask","markov-chain","python","shakespeare-plays","text-generation"],"created_at":"2024-11-16T14:10:39.399Z","updated_at":"2026-05-19T09:31:17.068Z","avatar_url":"https://github.com/gfarrell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markov Text Generator\n\nGenerates text based on some input text. Currently designed to parse Hamlet and\nwrite like any of the characters. Downloads the text from the internet.\n\n## Installation\n\nRequires python3, best run inside a virtualenv.\n\n    # requires python3\n    # setup virtualenv\n    python3 -m venv ./env\n    # activate env\n    . ./env/bin/activate\n    # install requirements\n    pip install -r requirements.txt\n\n## Usage\n\n### Command line usage\n\n    from sources.shakespeare import load, plays\n    from markov import write_like_this\n\n    speeches = load(plays[\"hamlet\"])\n    speech = write_like_this(speeches[\"HAMLET\"])\n\n### Running a server\n\nYou can run a server to generate speeches from your favourite characters! Fire\nit up as follows:\n\n    python application.py\n\n#### List plays\n\n    GET /plays\n\n#### List characters\n\n    GET /characters/\u003cplay\u003e\n\n#### Generate a speech\n\n    GET /speech/\u003cplay\u003e/\u003ccharacter\u003e\n\n## Sample Output\n\n### Hamlet\n\n\u003e aside nay speak 'sblood there seek out at a divinity that ever the ominous horse hath made am easier to make the king's mess 'tis not shame to note that i for the death have it is fashion i' the mean my word for god's love make known now my weakness and thereabout of his visage together\n\n### Ophelia\n\n\u003e could beauty my lord you now receive them\n\n### Laertes\n\n\u003e think it my father comes a woodcock to my lord\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfarrell%2Fmarkov-writer-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfarrell%2Fmarkov-writer-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfarrell%2Fmarkov-writer-py/lists"}