A person with specialized knowledge or skills, especially one who is socially awkward; (in a weaker sense) an intellectual; a smart person.
An engineer or scientist, especially one engaged in technological or military research.
A person who makes an excessive or tedious show of their knowledge, especially regarding rules of vocabulary and grammar.
A person who is overly concerned with formal rules and trivial points of learning.
Pedantic.