Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to get a random word from the entire corpus #24

Open
schmich opened this issue Apr 16, 2022 · 0 comments
Open

Add ability to get a random word from the entire corpus #24

schmich opened this issue Apr 16, 2022 · 0 comments
Assignees

Comments

@schmich
Copy link
Owner

schmich commented Apr 16, 2022

Right now, random words must be picked from a specific category (noun, adjective, ...). There should be a way to get a random word across all categories.

  • Support class and instance methods: Spicy::Proton.word, gen.word
  • Support constraints: gen.word(min: 2, max: 5)
  • Support formatters: Spicy::Proton.format('%w %w %w')
  • Support word list: gen.words gives everything in the corpus
  • Update readme
@schmich schmich self-assigned this Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant