{"id":16520003,"url":"https://github.com/schmich/spicy-proton","last_synced_at":"2025-04-05T15:07:13.784Z","repository":{"id":16609043,"uuid":"80269198","full_name":"schmich/spicy-proton","owner":"schmich","description":"Generate a random English adjective-noun word pair in Ruby","archived":false,"fork":false,"pushed_at":"2023-08-19T21:52:46.000Z","size":516,"stargazers_count":98,"open_issues_count":2,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T07:44:37.179Z","etag":null,"topics":["adjective","adverb","fun","generator","names","noun","random","ruby","verb"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/spicy-proton","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/schmich.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":"2017-01-28T05:54:06.000Z","updated_at":"2024-06-19T00:07:01.249Z","dependencies_parsed_at":"2024-06-19T00:07:00.377Z","dependency_job_id":"422add0b-7b5c-465d-bd6b-60d0835e8131","html_url":"https://github.com/schmich/spicy-proton","commit_stats":{"total_commits":74,"total_committers":13,"mean_commits":"5.6923076923076925","dds":"0.20270270270270274","last_synced_commit":"17ae08c9da882dd716729a8a73b868a9bcfb5eed"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmich%2Fspicy-proton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmich%2Fspicy-proton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmich%2Fspicy-proton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmich%2Fspicy-proton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schmich","download_url":"https://codeload.github.com/schmich/spicy-proton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353745,"owners_count":20925329,"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":["adjective","adverb","fun","generator","names","noun","random","ruby","verb"],"created_at":"2024-10-11T16:49:09.929Z","updated_at":"2025-04-05T15:07:13.724Z","avatar_url":"https://github.com/schmich.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spicy::Proton\n\nGenerate a random English adjective-noun word pair. Works with Ruby 1.9.x and newer.\n\n[![Gem Version](https://badge.fury.io/rb/spicy-proton.svg)](http://rubygems.org/gems/spicy-proton)\n[![Build Status](https://travis-ci.org/schmich/spicy-proton.svg?branch=master)](https://travis-ci.org/schmich/spicy-proton)\n\n## Quick Start\n\n`gem install spicy-proton`\n\n```ruby\nrequire 'spicy-proton'\n\nputs Spicy::Proton.pair\n# =\u003e \"decadent-inquisition\"\n```\n\n## Usage\n\n**Option 1: Class methods**\n\nWhen generating single or infrequent specimens, class methods are faster and use less memory.\n\n```ruby\nrequire 'spicy-proton'\n\nSpicy::Proton.adjective             # =\u003e \"extreme\"\nSpicy::Proton.noun                  # =\u003e \"loan\"\nSpicy::Proton.pair                  # =\u003e \"opportune-spacesuit\"\nSpicy::Proton.pair(':')             # =\u003e \"hip:squash\"\nSpicy::Proton.adverb                # =\u003e \"energetically\"\nSpicy::Proton.verb                  # =\u003e \"refrained\"\nSpicy::Proton.format('%a/%a/%n')    # =\u003e \"dapper/festive/fedora\"\nSpicy::Proton.format('%b %v')       # =\u003e \"artfully stained\"\n\n# With length constraints.\nSpicy::Proton.adjective(max: 5)     # =\u003e \"dank\"\nSpicy::Proton.noun(min: 10)         # =\u003e \"interpolation\"\nSpicy::Proton.adjective(length: 8)  # =\u003e \"medieval\"\nSpicy::Proton.noun(min: 5, max: 7)  # =\u003e \"dolphin\"\nSpicy::Proton.adverb(min: 0)        # =\u003e \"prophetically\"\nSpicy::Proton.verb(max: 100)        # =\u003e \"sparkles\"\n```\n\n**Option 2: Instance methods**\n\nWhen generating multiple specimens, instance methods are faster. The instance keeps the word corpus in memory. The instance methods are the same as their class method counterparts.\n\n```ruby\nrequire 'spicy-proton'\n\ngen = Spicy::Proton.new\n1000.times do \n  gen.adjective\n  gen.noun(min: 7)\n  gen.pair\n  gen.pair('.')\n  gen.adverb(length: 6)\n  gen.verb(max: 5)\n  gen.format('The %a %n %b %v the %n.')\nend\n```\n\nInstances also provide raw word lists in length-alphabetic order:\n\n```ruby\ngen.adjectives    # =\u003e [\"aft\", \"apt\", \"bad\", \"big\", ...]\ngen.nouns         # =\u003e [\"ad\", \"ax, \"ox\", \"pi\", ...]\ngen.adverbs       # =\u003e [\"no\", \"aft\", \"ago\", \"all\", ...]\ngen.verbs         # =\u003e [\"am\", \"be\", \"do\", \"go\", ...]\n```\n\n## Credits\n\nInspired by [btford/adj-noun](https://github.com/btford/adj-noun). Thanks to [NLTK](http://www.nltk.org/) for the word corpus.\n\n## License\n\nCopyright \u0026copy; 2017 Chris Schmich  \nMIT License. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmich%2Fspicy-proton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschmich%2Fspicy-proton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmich%2Fspicy-proton/lists"}