This is from NYTimes:
And again and again, and closer and closer, it returns to a speeding commuter train, a recurrence that artfully foreshadows the story’s nifty repetition compulsion.
How can this sentence end with two nouns? What does “nifty repetition compulsion” mean?