I've got a different theory. An algorithm yes, I always thought it was generated by favouriting. I think similar stories are generated by who's faved what, so members repeatedly favouriting the same stories groups them together.
I feel like I didn't explain that very well.
There will be typos.