khmer is the official language of cambodia but this man spoke a dialect of khmer which captain scarburg , a linguist , understood as northern khmer ; fortunately , the captain had studied this dialect in preparation for this mission .