>.< I just have a pre-memorized definition in my head (pre-memorized from answering the asme question so many times X.x, not rote learning it)
Commutator in a motor:
Commutator reverses direction of current through the coil every half-turn (whenever coil reaches position perpendicular to the magnetic field). Commutator achievse this by alternating contacts between ocil ends and external power supply terminals; thsi results in reversal of magnetic forces acting on the coil, thereby maintaining a torque (and thus rotation) of consistent direction. Without commutator, coil will oscillate about position perpendicular to the magnetic field until it comes to a halt at that position.
Commutator in a generator
Commutator reverses polarity of the output current every half turn (whenever coil reach position perpendicular to the magnetic field), thereby producing a variable DC output current (as coil current switches direction every half turn as well.