You give it a training dataset, I guess. For automated translation, I hear many companies train their algos with European Commission open datasets (example). The EU pays a small army of translators to render official documents into 20+ languages, so it is a precious resource (and free – the data are open). If that’s true, it’s not surprising that algos skew towards a professional, rather than personal, use of language.