grammaR: Package "grammaR": Recursively generated text and story...

Description Details

Description

This package was built to help a hobby writer write things better using code. We often reuse phrases and words – this package helps us generate a dictionary and use that dictionary to vary our words. So, "he said" becomes "he smiled" and "fear" becomes "distress", and before you know it, you have a brand new story.

Details

There are a few different functions that may be helpful to you. You can use the makeNewDictionary command to interactively build your first dictionary; you can use the makeGrammarFromStory function to build a starting grammar, by paragraph, for your newest story, and you can use spinStory to find matching values between your dictionary and your story to spin.


ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.