klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 295 forks source link

"Extending Twine" suggestion: option to provide format-specific story statistics functions #950

Open webbedspace opened 3 years ago

webbedspace commented 3 years ago

One big problem I've always had with the story statistics box is that it doesn't differentiate between macros and actual prose. It'd be nice if story formats could provide some functions that could be run against passage text that filter out all the prose or macros, so that more accurate stats can be calculated. (And potentially add a "Characters of code:" statistic as well, or even more complex stuff like "Global variables:")

klembot commented 2 years ago

Interesting idea if we can arrive at a consensus that would be broad enough for all story formats. For example, Chapbook doesn't have a local/global variable distinction.