Haha no these are not programmed with algorithms they are trained with data. In the case of ChatGPT they feed it just about everything they can find. It's not a programmed algorithm making decisions it's dependent on the training