noun
pedantry; showing off one's learning; pedantic disposition
Often used critically to describe someone who flaunts knowledge unnecessarily or takes pleasure in obscure facts. Can refer to the act or the personality trait.
彼の話はいつも衒学趣味で、聞いているとうんざりする。
His talk is always full of pedantry, and it gets tiresome to listen to.
People with a pedantic disposition tend to show off their knowledge.