Yeah, that problem is a real pain. As I mentioned in my post it's the bit I'm not happy with. I wonder how the readability tool does it; that seems to do a very good job.
It seems that OTS uses a word frequency strategy, so the algorithm is similar or identical to the one I demoed. Interesting.