{"id":13746692,"url":"https://github.com/pboyd/randtxt","last_synced_at":"2026-03-12T22:33:32.462Z","repository":{"id":137745287,"uuid":"150193447","full_name":"pboyd/randtxt","owner":"pboyd","description":"Random text generator","archived":false,"fork":false,"pushed_at":"2018-11-10T12:10:35.000Z","size":161,"stargazers_count":69,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-09T07:40:48.639Z","etag":null,"topics":["golang","markov","random-text"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pboyd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-09-25T01:59:49.000Z","updated_at":"2024-01-28T22:36:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb934af7-0b33-4a13-83f8-7f4c34b97841","html_url":"https://github.com/pboyd/randtxt","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pboyd/randtxt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboyd%2Frandtxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboyd%2Frandtxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboyd%2Frandtxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboyd%2Frandtxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pboyd","download_url":"https://codeload.github.com/pboyd/randtxt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboyd%2Frandtxt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30446448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"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":["golang","markov","random-text"],"created_at":"2024-08-03T06:00:58.830Z","updated_at":"2026-03-12T22:33:32.434Z","avatar_url":"https://github.com/pboyd.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# randtxt [![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/pboyd/randtxt)\n\nGenerates random text from Markov chains of tagged source text.\n\nAn example chain is included which was derived from [Plato's\nIon](https://www.gutenberg.org/ebooks/1635):\n\n```sh\n$ go get github.com/pboyd/randtxt\n$ go run github.com/pboyd/randtxt/cmd/gentext -chain $GOPATH/src/github.com/pboyd/randtxt/testfiles/ion/trigram.mkv\n```\n\n\u003e Have you already forgotten what you were saying? A rhapsode ought to\n\u003e interpret the mind of the poet. For the rhapsode ought to interpret the mind\n\u003e of the poet. For the poet is a light and winged and holy thing, and there is\n\u003e Phanosthenes of Andros, and Heraclides of Clazomenae, whom they have also\n\u003e appointed to the command of their armies and to other offices, although\n\u003e aliens, after they had shown their merit. And will they not choose Ion the\n\u003e Ephesian to be their general, and honour him, if he prove himself worthy?\n\nTo build a chain, use the [Stanford POS\nTagger](https://nlp.stanford.edu/software/tagger.shtml) to generate tagged\ntext, then run `cmd/readtsv`. For example:\n\n```sh\ngo run github.com/pboyd/randtxt/cmd/readtsv -chain output.mkv $GOPATH/src/github.com/pboyd/randtxt/testfiles/ion/tagged.tsv\n```\n\nI wrote about the design [here](https://pboyd.io/posts/random-text/).\n\n# License\n\nThis package is released under the terms of the Apache 2.0 license. See LICENSE.TXT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboyd%2Frandtxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpboyd%2Frandtxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboyd%2Frandtxt/lists"}