The permitted arrangements of sounds in a language are determined by its phonotactics, which specify the possible combinations of phonemes (distinct sounds) that can occur within words. Phonotactics establish rules for which sounds can appear at the beginning, middle, and end of syllables, as well as any restrictions on consonant clusters or vowel sequences. These rules vary by language and help shape the characteristic sound patterns of a language.