wit

noun

The natural ability to perceive and understand; intelligence.

Practical intelligence; shrewdness or resourcefulness.

Sound mental faculties; sanity.

The ability to express oneself intelligently in a playful or humorous manner, often in overturning audience expectations.

A person noted for this ability, especially in conversation.