Skip to content

How can I generate sentence in English #386

Answered by bchavez
eugenia4it asked this question in Q&A
Discussion options

You must be logged in to vote

Bogus does not have artificial intelligence and cannot generate perfectly grammatically correct English sentences on its own in any thoughtful coherent way. So, you have a couple of options:

  1. Use WaffelGenerator.Bogus extension which tries to generate better "English" sentences
  2. Get a large chunk of text, like the US Constitution or some other free eBook and parse sentences from them.
  3. Use a method in Bogus.Text in Bogus Premium that already does (option 2) for you.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eugenia4it
Comment options

Answer selected by bchavez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants