Lexicography refers to the art and science of compiling dictionaries. It involves gathering, organizing, and defining words with their meanings, pronunciations, and usage examples to create a useful reference. Le-xi-co-gra-phy is a field that deals with making dictionaries.
Full definition