{"id":37960319,"url":"https://github.com/kari/markov-namegen","last_synced_at":"2026-01-16T18:03:48.481Z","repository":{"id":208370308,"uuid":"721440068","full_name":"kari/markov-namegen","owner":"kari","description":"Markov chain based name generator in TypeScript","archived":false,"fork":false,"pushed_at":"2024-03-02T14:41:21.000Z","size":42,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T08:07:54.542Z","etag":null,"topics":["markov-chain","name-generator","namegen","random","ts","typescript","typescript-library"],"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/kari.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":"2023-11-21T04:06:49.000Z","updated_at":"2024-06-05T09:48:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"79dae28a-7fb7-4490-afcc-89042324418a","html_url":"https://github.com/kari/markov-namegen","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.04761904761904767,"last_synced_commit":"d3f05fdd58f1d99df8733b747111912907ed9134"},"previous_names":["kari/markov-namegen"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kari/markov-namegen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kari%2Fmarkov-namegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kari%2Fmarkov-namegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kari%2Fmarkov-namegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kari%2Fmarkov-namegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kari","download_url":"https://codeload.github.com/kari/markov-namegen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kari%2Fmarkov-namegen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["markov-chain","name-generator","namegen","random","ts","typescript","typescript-library"],"created_at":"2026-01-16T18:03:47.888Z","updated_at":"2026-01-16T18:03:48.474Z","avatar_url":"https://github.com/kari.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markov-namegen\n\nThis is a TypeScript port of [markov-namegen-lib](https://github.com/Tw1ddle/markov-namegen-lib). It is a Markov chain based name or word generator library.\n\n## Features\n\nOffers most of the features available in the reference Haxe implementation\n\n- A simplified [Katz back-off](https://en.wikipedia.org/wiki/Katz%27s_back-off_model) using high order models - look up to \"n\" characters back.\n- Sort and filter generated strings by length, start, end, and content.\n- [Dirichlet prior](https://en.wikipedia.org/wiki/Dirichlet_distribution#Special_cases) parameter.\n\n## Usage\n\n```ts\nconst data = [\"lots\", \"of\", \"words\", \"to\", \"learn\", \"from\"];\nconst namegen = new NameGenerator(data, 3, 0, false);\nconsole.log(namegen.generate(5, 11, \"\", \"\", \"\", \"\"));\n```\n\nor if you want to generate a lot of names in one go\n\n```ts\nconsole.log(namegen.generateNames(20, 5, 11, \"\", \"\", \"\", \"\"))\n```\n\nFor training data and word lists, see [the original project's `word_lists` folder](https://github.com/Tw1ddle/markov-namegen-lib/tree/master/word_lists).\n\n## Notes\n\n- The original Haxe implementation [can target Javascript](https://haxe.org/manual/target-javascript.html), so both of these can ultimately compile/transpile down to that. So if you are just looking for a JavaScript implementation, you might want to use the original instead.\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkari%2Fmarkov-namegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkari%2Fmarkov-namegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkari%2Fmarkov-namegen/lists"}