get lexicon function