I think it is time to open source this tool so that we can discuss more complex scripts in the Bitcoin Script channel. : )
I believe in this week I will be able to clean the code. In fact, the implementation is very simple, the core part is just to replace the definition of word to the correct position.