It's often used in words related to legal matters, such as:
* Lexicon: A dictionary or vocabulary of a language.
* Lexicographer: A person who compiles dictionaries.
* Lexical: Relating to words or vocabulary.
* Lexicography: The practice of compiling dictionaries.
* Lexicon: A dictionary or vocabulary of a language.
* Lexicographic: Relating to the arrangement of words in a dictionary.
However, "lex" can also be used in other contexts, like:
* Lexical: Relating to words or vocabulary (as mentioned above).
* Lexer: A component in a compiler that analyzes a program's source code to identify individual words (tokens) and symbols.
So, while "lex" primarily relates to laws and rules, its usage can extend to other areas, particularly those involving words and vocabulary.