Place a sheet of paper on the carpet.
Lay a pencil on the paper.
With the palm of your hand, roll the pencil backwards and forwards.
The paper will move in the direction of the pile.
It's worth noting that if you try this in, for example, a doorway where pile reversal has occured, the paper will move in the new direction, not the the direction from manufacture.
Safe and happy cleaning

The Ken