Latvian names, like in most European cultures, consist of two main elements: the given name (vārds) followed by family name (uzvārds). During the Soviet occupation (1940 - 1991) the practice of giving a middle name was discouraged, but since the restoration of Independence Latvian legislation again allows giving of up to two given names and it has become more common to give a middle name to children.
Latvian male names end in 1st or 2nd declension masculine endings, either -s/-š or -is (with a handful of mostly foreign exceptions ending in indeclinable -o, such as , Raivo, Gvido, Bruno, Oto and only a couple belonging to the 3rd declension ending in -us, such as Ingus, Mikus, Edžus, Zemgus.) Latvian female names have the feminine 4th or 5th declension endings -a or -e respectively.
The vocative case is used when addressing someone directly, for example, Jāni for Jānis. The diminutive form is often used to express endearment or when addressing children, for example, addressing Jānis as Jānīti (vocative diminutive).
Writing of Latvian names always conform to the highly phonetic Latvian orthography and in the case of foreign born Latvian nationals or marriages between Latvian women and foreigners (whence they assume the family name of their husband) the foreign names are modified to conform to the phonetic spelling and to acquire the respective case ending. For example, Barack Obama is Baraks Obama, while George Bush is Džordžs Bušs.
This has given rise to at least half a dozen lawsuits over the last couple decades, mostly ethnic Russian Latvian nationals not content with addition of case endings as well as a Latvian woman contesting her foreign husband's name being transcribed phonetically in her documents (Mentzen alias Mencena v. Latvia case) where the plaintiffs were turned down as well as legal proceedings by a Latvian couple to allow them to register their child as Otto (instead of Oto) and a claim filed with UN HRC by a Russian-Jewish Latvian national Leonid Raihman whose claims were upheld.
Before the emancipation from serfdom (1817 in Courland, 1819 in Vidzeme, 1861 in Latgale) only noblemen, free craftsmen or people living in towns had surnames. Therefore, the oldest Latvian surnames originate from German or Low German, reflecting the dominance of German as an official language in Latvia till the 19th century. Examples: Meijers/Meijere (German: Meier, farm administrator; akin to Mayor), Millers/Millere (German: Müller, miller), Šmits/Šmite (German: Schmidt, smith), Šulcs/Šulca (German: Schulze, constable), Ulmanis (German: Ullmann, a person from Ulm), Godmanis (a God-man), Pētersons (son of Peter). Some Latvian surnames, mainly from Latgale are of Polish or Belorussian origin by changing the final -ski/-cki to -skis/-ckis, -czyk to -čiks or -vich/-wicz to -vičs, such as Sokolovkis/Sokolovska, Baldunčiks/Baldunčika or Ratkevičs/Ratkeviča.