Ah, this is cool -- looks like in (py)tracery you can create "agreement" between different rules (e.g. ensuring names are referenced later with appropriate pronouns) by using either of the two syntaxes shown here. I did not know this!
https://gist.github.com/stochaztic/bd7f766d61846ec9f80ded1ccc5ce920
This is handy for a future mastodon bot I'm working on https://pastebin.com/ZJJYKUsd
