Nov-14-2019, 02:31 AM
A lot of this depends on how you structure the story files and how you signal you need a word (and what type). One method, since you control the story text, would be to have a key character that identifies that a word is needed, followed by the type of word. You can then pick up that word type and ask verbatim for that to be entered, after which you substitute that word in the string. For example, you could use the pipe as your signal character. A sentence in the story could be "I thought I saw a |noun , but it turned out to be a |adjective |noun ." Your program would look for pipes (|), take the next word and use it as the prompt, then substitute the entry for the pipe and word. All types of words would then be treated the same.
Just a thought.
Just a thought.