pytracery
pytracery copied to clipboard
Python port of Kate Compton's Tracery text expansion library.
If I pass a sentence containing commas in to a modifier, the `params` are split on simple commas: ``` rules={ 'origin': '''here's my sentence: #test.uppercase.echo(this is, my sentence, "with a...
Is it possible to define a set of actions for a character in my ruleset: ``` rules = { ... destination_options: ['went to the beach', 'strolled to the shop', 'ran...
Travis CI is no longer working, so I've replaced it with GitHub Actions. Here's a sample build: https://github.com/hugovk/pytracery/actions/runs/12341947658/job/34441209716 I set it to only test the upstream supported versions, which are...
* Switched the json module for pyjson5 to support json5 (comments, yay) * moved the test grammar out into its own file.
Looks like someone else owns Kate's old domain. I opened it on my phone and had a bunch of alerts thrown in my face. I changed the link to an...