The rules that govern the permissible combinations of sounds within syllables and words in a language.