Amir Khusro ca. 1300 referred to this language of his writings as Dahlavi ('of Delhi') or Hindavi (हिन्दवी, ہندوی 'of Hindustan '). During this period, Hindustani was used by Sufis in promulgating their message across the Indian subcontinent .  After the advent of the Mughals in the subcontinent, Hindustani acquired more Persian loanwords. Rekhta ('mixture') and Hindi (of 'Hindustan')  became popular names for the same language until the 18th century.  The name Urdu appeared around 1780.  During the British Raj , the term Hindustani was used by British officials.  In 1796, John Borthwick Gilchrist published a "A Grammar of the Hindoostanee Language".   Upon partition , India and Pakistan established national standards that they called Hindi and Urdu, respectively, and attempted to make distinct, with the result that Hindustani commonly, but mistakenly, came to be seen as a mixture of Hindi and Urdu.