Consonant Changes
Latvian has generally regular changes due to palatalization. It's most common in the 2nd declension nouns ' plural but it also occurs in some verbs, like slodzīt and mācēt in the mixed conjugation.
If the consonant or consonant pair before the ending matches one on this list, it will usually change. If not, it usually won't. There are always exceptions , like nākt, whose k changes to c, but they're not too common.
Whether or not a word is a verb or noun matters in the case of c and dz.
**noun** c → č : lā **c** is → lā **č** i **verb** c → k : mā **c** ēt → mā **k** u **noun** dz → dž : da **dz** is → da **dž** is **verb** dz → g : slo **dz** it → slo **g** u
Of course, please remember that the examples show the palatalization and the word itself changing its ending to nominative plural or genitive plural (nouns) or 1st person present singular indicative (verbs).
Otherwise, the changes are the same regardless of word type.
l → ļ : cā **l** is → cā **ļ** i n → ņ : dze **n** is → dze **ņ** i s → š : la **s** is → la **š** i z → ž : vē **z** is → vē **ž** i t → š : bi **t** e → bī **š** u d → ž : brie **d** is → brie **ž** i p → pj : zie **p** es → zie **pj** u b → bj : gul **b** is → gul **bj** i m → mj : kur **m** is → kur **mj** i v → vj : zi **v** is → zi **vj** u sl → šļ : šķēr **sl** is → šķēr **šļ** i zl → žļ : zi **zl** is → zi **žļ** i sn → šņ : alk **sn** is → alk **šņ** i zn → žņ : zvaig **zn** e → zvaig **žņ** u ln → ļņ : vi **ln** is → vi **ļņ** u