It the audience is a general audience, unknown to the writer, the formal language is more appropriat. Thet is why most non-fiction book are written in standard english. Where writers seek to be more familiar with their audience and treat them like friends, they may use less formal language, for example, some journalism, some advertising, a novel where the narrator speaks directly ti the reader.