pedanticism (n.)
19c., from pedantic + -ism. Earlier was pedantism (1590s).