Romansh is one of the descendant languages of the spoken Latin language of the Roman Empire, which by the 5th century AD replaced the Celtic and Raetic languages previously spoken in the area. Romansh retains a small number of words from these languages. Romansh has also been strongly influenced by German in vocabulary and morphosyntax. The language gradually retreated to its current area over the centuries, being replaced in other areas by Alemannic and Bavarian dialects. The earliest writing identified as Romansh dates from the 10th or 11th century, although major works did not appear until the 16th century, when several regional written varieties began to develop. During the 19th century the area where the language was spoken declined, but the Romansh speakers had a literary revival and started a language movement dedicated to halting the decline of the language.