Pedantic describes someone who is excessively concerned with minor details or rules, often in a way that is annoying or shows off knowledge. 'Bookish' is a synonym that captures the overly academic or formal nature of a pedantic person. The other options are unrelated.