lexicography (n.)
"the writing of dictionaries," 1670s, from lexico- + -graphy. Related: Lexicographic; lexicographical.