{"id":18113502,"url":"https://github.com/ix/ruffini","last_synced_at":"2025-04-06T09:11:44.009Z","repository":{"id":56893791,"uuid":"164629293","full_name":"ix/ruffini","owner":"ix","description":"a markov library for ruby which emphasizes minimalism and a heightened degree of control","archived":false,"fork":false,"pushed_at":"2019-01-08T14:07:19.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T10:41:48.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/ix.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}},"created_at":"2019-01-08T10:58:19.000Z","updated_at":"2019-10-18T17:10:04.000Z","dependencies_parsed_at":"2022-08-21T01:20:15.245Z","dependency_job_id":null,"html_url":"https://github.com/ix/ruffini","commit_stats":null,"previous_names":["ralsei/ruffini"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ix%2Fruffini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ix%2Fruffini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ix%2Fruffini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ix%2Fruffini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ix","download_url":"https://codeload.github.com/ix/ruffini/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457803,"owners_count":20941906,"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-11-01T02:09:00.875Z","updated_at":"2025-04-06T09:11:43.978Z","avatar_url":"https://github.com/ix.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ruffini\n=======\n\nRuffini is a markov text library that is small, straightforward\nand allows you to do things like set the dictionary entry from \nwhich new text will be generated.\n\nCheck out this usage example:\n\n```ruby\nrequire 'ruffini'\n\nEXAMPLE = \u003c\u003c~TEXT \n  I like apples and strawberries.\n  I like cheese and ham.\n  I like tea and coffee.\n  I like sunsets and rainy days.\nTEXT\n\n# first parameter denotes the 'depth' of the database\ndatabase = Ruffini::Markov.new(1)\n\ndatabase.parse! EXAMPLE\n\n# generate up to 10 words at random\nputs database.generate(10)\n\n# provide an initial string to start generating from!\nputs database.generate(10, \"I\")\n\n# we could save the database for later use! \n# database.save! \"my_database.markov\"\n\n# then load it like this\n# database = Ruffini::Markov.new(1, \"my_database.markov\")\n# depth must remain the same!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fix%2Fruffini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fix%2Fruffini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fix%2Fruffini/lists"}