That sounds like pattern-matching to me.
For example, you’ve watched hours and hours of sit-coms. You notice that the story of your life starts to feel strangely familiar, but you can’t figure out how it’s going to work out until you suddenly “stick” your life against (match it to) one of the sit-com stories.