This is a decent way of doing text-processing. It's not the most generalized as "story." would be a different word from "story" in the dictionary.