an inferior officer of justice appointed chiefly to assist the ordinary judge with his opinion and advice.