Interestingly, that's exactly what computer scientists have been trying to get AIs to do for the last 60 or so years.
Tiens, tiens, c'est exactement ce que les spécialistes tentent d'inculquer aux robots intelligents depuis 60 ans.