return correct language type