Saka, or Sakan, was a variety of Eastern Iranian languages, attested from the ancient Buddhist kingdoms of Khotan, Kashgar and Tumshuq in the Tarim Basin, in what is now southern Xinjiang, China. It is a Middle Iranian language. The two kingdoms differed in dialect, their speech known as Khotanese and Tumshuqese. The Saka rulers of the western regions of the Indian subcontinent, such as the Indo-Scythians and Western Satraps, spoke practically the same language. Documents on wood and paper were written in modified Brahmi script with the addition of extra characters over time and unusual conjuncts such as ys for z. The documents date from the fourth to the eleventh century. Tumshuqese was more archaic than Khotanese, but it is much less understood because it appears in fewer manuscripts compared to Khotanese. The Khotanese dialect is believed to share features with the modern Wakhi and Pashto. Saka was known as "Hvatanai" in contemporary documents. Many Prakrit terms were borrowed from Khotanese into the Tocharian languages. Saka The two known dialects of Saka are associated with a movement of the Scythians. No invasion of the region is recorded in Chinese records and one theory is that two tribes of the Saka, speaking the two dialects, settled in the region in about 200 BC before the Chinese accounts commence. The Khotanese dialect is attested in texts between the 7th and 10th centuries, though some fragments are dated to the 5th and 6th centuries. The far more limited material in the Tumshuqese dialect cannot be dated with precision, but most of it is thought to date to the late 7th or the 8th century. The Saka language became extinct after invading Turkic Muslims conquered the Kingdom of Khotan in the Islamicisation and Turkicisation of Xinjiang. In the 11th century, it was remarked by Mahmud al-Kashgari that the people of Khotan still had their own language and script and did not know Turkic well. According to Kashgari some non-Turkic languages like the Kanchaki and Sogdian were still used in some areas.