pub fn doctor_text(document: &Value) -> (String, bool)
Formats doctor diagnostics and reports whether the composition is valid.