I'm pretty sure something can be cooked up like that. Not by me, though, I gave up trying to write ID plugins when Javascript got better, faster, and stronger, and mostly version-independent and totally (almost) platform-independent.
Writing ID plugins is difficult. You need extensive knowledge of your InDesign version, your OS, and not to forget C++ (on Windows; Objective-C on the Mac). ID uses a set of public libraries, but even that is no relief, because these are so exotic that their programmers don't feel like explaining even the basic concepts (at least, that's how it seems to me
).
You could suggest this in the Adobe InDesign SDK Forum, but since writing plugins is so difficult and time-consuming — and, not to mention, you have to start over for each new version of ID — the general vibe I get from that forum is no-one is interested in writing stuff just for the heck of it.
Do you have any ideas on how it ought to work? Just like GREP styles do? (GREP styles can concatenate, and apply different styles on top of each other. I can't imagine how that would work for paragraph styles …)