Demographics of Croatia
Croatian replaced Latin as the official language of the Croatian government in 1847. The Croatian lect is generally viewed as one of the three standard varieties of the Shtokavian dialect of Serbo-Croatian, a South Slavic language. Croatian is written using the Latin alphabet and there are three major dialects spoken on the territory of Croatia, with the Shtokavian idiom used as the literary standard. The Chakavian and Kajkavian dialects are distinguished by their lexicon, phonology, and syntax.
Bosnian language
Bosnian is based on the most widespread dialect of Serbo-Croatian, Shtokavian, more specifically on Eastern Herzegovinian, which is also the basis of Standard Croatian, Serbian, and Montenegrin. Until the dissolution of SFR Yugoslavia, they were treated as a unitary Serbo-Croatian language, and that term is still used in English to subsume the common base (vocabulary, grammar and syntax) of what are today officially four national standards, although this term is controversial for native speakers, and paraphrases such as "Serbo-Croato-Bosnian" (SCB) or "Bosnian-Croatian-Serbian" (BCS) are therefore sometimes used instead, especially in diplomatic circles.