noun

pedantry

ped·ant·ry, PED-uhn-tree, from French

An irritating focus on small rules or facts, especially when used to show off one's knowledge.

“Her pedantry about grammar slowed down the meeting.”

In the picture: The guest's attention to a trivial detail irritates everyone else.

Similar and opposite

Similar: nitpicking, hair-splitting

Where it comes from

From French pédanterie, formed from a word for a schoolteacher or a person who shows off learning.