Compiling and testing the lexicon