"making an undue or inappropriate display of learning, absurdly learned," formed in English c. 1600, from pedant + -ic. The French equivalent is pédantesque. Perhaps first attested in John Donne's "Sunne Rising," where he bids the morning sun let him and his love linger in bed, telling it, "Sawcy pedantique wretch, goe chide Late schooleboyes." Related: Pedantical (1580s); pedantically.
word-forming element making nouns implying a practice, system, doctrine, etc., from French -isme or directly from Latin -isma, -ismus (source also of Italian, Spanish -ismo, Dutch, German -ismus), from Greek -ismos, noun ending signifying the practice or teaching of a thing, from the stem of verbs in -izein, a verb-forming element denoting the doing of the noun or adjective to which it is attached. For distinction of use, see -ity. The related Greek suffix -isma(t)- affects some forms.
Others are reading
<a href="https://www.etymonline.com/word/pedanticism">Etymology of pedanticism by etymonline</a>
Harper, D. (n.d.). Etymology of pedanticism. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/pedanticism