Delightfully, docs for text adventure game libraries offer choices in the structure that match text game UIs! https://inform7.com/extensions/Jon Ingold/Interactive Parsing/index.html (I suppose it makes total sense for the target audience.)