Phonology is how sounds pattern and function in a given language.